Re:In C, how do you know if the dynamic allocation succeeded?
by yc12340 on Sunday November 07, 2021 @09:39PM
(#29145690)
This sounds like it would cause LRU caches to lose their LRU properties...
Re:In C, how do you know if the dynamic allocation succeeded?
by josefx on Monday November 08, 2021 @12:37AM
(#29146376)
It doesn't need to reserve a specific page during allocation, just ensure that the number of reserved pages is smaller than the total amount of pages. I would expect at least read only caches to mostly behave like they currently do on a system with over commit enabled.
Couldn't the system just reserve the pages for future use by the application but still use them for caching until the application actually tries to use them?