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? Niki -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
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.
Le 09/09/2017 ? 18:11, hw a ?crit :> 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.OK. Thanks very much for the clarification. Cheers, Niki Kovacs -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
On 2017-09-09, Nicolas Kovacs <info at microlinux.fr> wrote:> > 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?As long as your system isn't thrashing swap it's totally fine. From what you've written it doesn't sound like you're thrashing. --keith -- kkeller at wombat.san-francisco.ca.us
On 09/09/2017 07:06 PM, Keith Keller wrote:> As long as your system isn't thrashing swap it's totally fine. From > what you've written it doesn't sound like you're thrashing.I should have mentioned earlier:? Run "vmstat 1" and watch the "si" and "so" columns to watch paging activity.