4 ms·
It might be that the processes are genuinely eating your RAM, but on most unix-like OSs, RAM usage doesn't work quite the way people expect and it may be you're
by seanhunter 10y ago
It might be that the processes are genuinely eating your RAM, but on most unix-like OSs, RAM usage doesn't work quite the way people expect and it may be you're misunderstanding. Many pages of forked or threaded processes can be copy-on-write, so it actually costs the OS nothing to have multiple processes sharing them. They only actually become separate pages when the process actually writes to them.
What this means is that you can't get a true picture of the ram usage just by adding as you will in fact be double-counting any read-only pages that are shared using COW.
- aluhut 10y agoThe true picture is that I have a performance issue that forces me to look at the RAM usage in the first place. As I've wrote below: I had one addon (ublock) on Chrome while my FF is so full with addons that I have to look up what they actually do from time to time ;)