4 ms·
You are over complicating. In general applications don't manage their ram usage based on available resources they just take what they need until your system st
by michaelmrose 7y ago
You are over complicating.
In general applications don't manage their ram usage based on available resources they just take what they need until your system starts swapping.
The OS manages memory and evicts cache to make use for applications when they request it. The good thing about a cached file is that it is available on disk to be reread any time you like.
- nitrogen 7y agoI've used applications that will specifically allocate (available memory * x) or similar because they or their plugins can't handle ENOMEM or the Windows equivalent, and they do not want to swap.