This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

When should I worry about swap usage?

I've installed two new ASG 220s with HA, IPS, and web and email security on.  For the first few days RAM hovered around 65% with no swap usage.  About 5 days in swap usage suddenly jumped to 10%.  About a week later swap jumped to 20%.  3 days later takes us to today, and my swap usage has jumped to 30%.  Over this time RAM usage has been fairly stable, hovering in the mid to high 60s and occasionally hitting low 70s.

Should I be worried about the increase in swap usage?


This thread was automatically locked due to age.
Parents
  • We have adjusted default swappiness to a setting of 30, just as a heads up. Using a swappiness of 0 will actually cause some applications to load much slower than they would normally otherwise, depending on the size of the process and the frequency with which it is called upon.
  • Angelo, are you repeating what "they" say, or can you name processes where you've seen this yourself?  William's scientific method looks sound to me, so it might be worth "challenging" the developers with this thread.

    Just a thought...

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Angelo, are you repeating what "they" say, or can you name processes where you've seen this yourself?  William's scientific method looks sound to me, so it might be worth "challenging" the developers with this thread.

    Just a thought...

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
  • Angelo, are you repeating what "they" say, or can you name processes where you've seen this yourself?  William's scientific method looks sound to me, so it might be worth "challenging" the developers with this thread.

    I had used william's method for tweaking squid a little till they changed to in house proxy. I think swappiness has been talked about extensively and even the original linux developers are not really sure which way they like it, thats why they left it for us to decide[:O] 

    I had tried the swappiness value of 0 when astaro default was 60 but really didn't see any major improvement over default. Most linux admins and admins in general don't like swapping period. If you can afford the cheap ram why would you want to swap. But I think the problem is with the astaro kernel itself. It likes to swap. I have 1gb ram and even if I only run a few services, in a few days, I will have a couple of megs swapped out with swappiness at 0. I can run almost all services (light load at home) and the swap behavior doesn't chage much and the swap usage still goes up to only a couple of megs. 

    All in all, on a server, with a fast enough processor and a few megs of swap, you probably won't notice the difference as much as you would on a workstation so I just quit obsessing about it. Otherwise at one time, I was taking drastic measures by running swapoff/swapon as cron jobs right before everybody got to the office just to load the swap back in memory[:D] I know not the best idea but it does work. By the way here is my top and as you can see after 16 days, its still only swapping around 2megs with IPS, single AV http proxy, mail av proxy, and vpn.

    Obviously the orignial poster's memory usage does not agree with mine and hence you are hearing william talk about it passionately. By the way welcome back william, hadn't seen you in a while.