Nicolas Kovacs wrote:
Le 09/09/2017 à 15:14, Robert Nichols a écrit :
Every system that runs continuously for more that a few days will have some pages that were used once when some long-running process started and were never referenced again. Those pages will eventually migrate out to swap, and that's the best place for them. Right now, I see that this system has been up for 16 days and has ~270MB of swap used. I typically see ~500MB of swap used when the system has been running a while longer.
So, in other words, there's no need to worry if a little swap is used when the system's been running non-stop for a couple months?
It´s nothing unusual and a good thing when it means that stuff not needed in memory is swapped out.
What is the advantage of emptying the cache supposed to be? I´ve had servers with the uptime-counter flowing over after years of uptime and never flushed the cache.