Changes between Initial Version and Version 2 of Ticket #16622


Ignore:
Timestamp:
Nov 29, 2020, 1:42:35 PM (3 years ago)
Author:
X512
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16622 – Description

    initial v2  
    11This is hrev54741.
    22
    3 As discussed [https://discuss.haiku-os.org/t/app-server-font-cache-is-causing-high-cpu-load-in-low-resource-manager-thread-and-cause-mysterious-resource-exhaustment/10147/13 here], mapping files to read-only areas almost not affect `system_info.used_pages` that is used by most memory inspecting utilities, but it actually consumes memory and make allocations not possible if too many files are mapped. `system_info.needed_memory` provides correct information about free memory but is also seems to include disk cache that can be freed to release memory for allocations.
     3As discussed [https://discuss.haiku-os.org/t/app-server-font-cache-is-causing-high-cpu-load-in-low-resource-manager-thread-and-cause-mysterious-resource-exhaustment/10147/13 here], mapping files to read-only areas almost not affect `system_info.used_pages` that is used by most memory inspecting utilities, but it actually consumes memory and make allocations not possible if too many files are mapped. `system_info.free_memory` provides correct information about free memory but is also seems to include disk cache that can be freed to release memory for allocations.
    44
    55If memory mapped files are consuming memory, they should be included in `system_info.used_pages`.