0
After long time running, computers always become slow. Rebooting generally make them faster. But how does this happen?
Initally I thought this might be related to memory usage. But recently I learned the concept of virtual memory. I think if I close all unnecessary processes, which cause kernel to destroy their page tables and thus release/free their usage of (at least virtual) memory, the system should be as clear as just startup.
But actually that doesn't work. Where am I wrong? Please suppose linux environment if necessary.
1
Personally I have never experienced that, at least in Linux (unless there have been stability issues, but I suppose you're not talking about such). However, Linux memory management doesn't work as you seem to expect, at least for RAM, as it will try to use all of it (for buffers/cache). It does some balancing between swapping out pages to disk to gain more buffer/cache room and keeping pages in RAM to improve responsiveness. This can be controlled by swappiness (v2.6->) which you can try out if you suspect being hit by virtual memory management.
– zagrimsan – 2014-08-01T05:55:11.6202You should also provide more evidence on the status of your system to be able to hold the assumption you represent in the question title (that memory isn't cleanly collected after process termination). – zagrimsan – 2014-08-01T05:56:24.503