Changes between Initial Version and Version 2 of Ticket #16622
- Timestamp:
- Nov 29, 2020, 1:42:35 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16622 – Description
initial v2 1 1 This is hrev54741. 2 2 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.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.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. 4 4 5 5 If memory mapped files are consuming memory, they should be included in `system_info.used_pages`.