2 ms·
The OS uses almost all the ram in your system (it just doesn't tell you because then users complain that their OS is too ram heavy). The primary thing it uses i
by adgjlsfhk1 1y ago
The OS uses almost all the ram in your system (it just doesn't tell you because then users complain that their OS is too ram heavy). The primary thing it uses it for is caching as much of your storage system as possible. (e.g. all of the filesystem metadata and most of the files anyone on the system has touched recently). As such, if you have RAM that hasn't been touched recently, the OS can page it out and make the rest of the system faster.
- adastra22 1y agoAt the cost of tanking performance for the less frequently used code path. Sometimes it is more important to optimize in ways that minimize worst case performance rather than a marginal improvement to typical work loads. This is often the case for distributed systems, e.g. SaaS backends.
- bayindirh 1y agoYou can request things from Kernel, like pinning cores or telling kernel not swap your pages out (see mlockall() / madvise()). The easiest way affecting everything running on the system might not be the best or even the correct way to do things. There's always more than one way to solve a problem. Reading the Full Manual (TM) is important.