[5.800] Swap Usage

Uh...Is it a problem when my box starts using swap. I have 512MB of RAM and am using HTTP, DNS, SOCKS and POP3 proxies. Virus and Content filtering turned on. I noticed that it was using only a little of swap when it first started after the installation. However it has steadily grown to 35MB is this normal?

I am only using 350MB of my 512MB of RAM. Why does Astaro use swap at all? It would be better to run from RAM surely?

Just my two cents.
Parents Reply Children
  • I am using nearly all features of ASL (for home use). System has 256MB of RAM and 666 MHZ CPU. It swaps more than 100MB at peaks, but it's still running fine. So don't worry. A litte bit of swap usage is normal.

    Xeno
  • Ok my swap usage has grown to 213MB. All I am using is HTTP Proxy with surf control, virus protection and spyware protection. POP3 Proxy with virus and spam protection. DNS Proxy, SOCKS Proxy and IPS with anomaly protection turned on. I am using around 380MB or my 512MB RAM. Is this normal? Also had to restart my POP3 Proxy as it was not letting my clients connect to their mail servers.
  • [ QUOTE ]
    Ok my swap usage has grown to 213MB. All I am using is HTTP Proxy with surf control, virus protection and spyware protection. POP3 Proxy with virus and spam protection. DNS Proxy, SOCKS Proxy and IPS with anomaly protection turned on. I am using around 380MB or my 512MB RAM. Is this normal? Also had to restart my POP3 Proxy as it was not letting my clients connect to their mail servers. 

    [/ QUOTE ]
    right now I wouldlet it ride.  Remember the 512 specification is the minimum for v6 and the beta is a beta.  I am willing to bet squid is chewing up ram, like it does with its default settings).  I am willing to bet you can greatly reduce RAM usage by installing my squid tweaks that i have posted a few times. Squid in its default configuration will grab ram for its file cache first and then disk second.  My tweaks switch it to disk first and ram hardly at all.   If you want to test the system's stability login via ssh..switch to root and type swapoff -a .  This will turn off swap completly.  This may lead to instabilility though.  Try my squid tweaks first..[:)]

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • [ QUOTE ]
    Ok my swap usage has grown to 213MB. All I am using is HTTP Proxy with surf control, virus protection and spyware protection. POP3 Proxy with virus and spam protection. DNS Proxy, SOCKS Proxy and IPS with anomaly protection turned on. I am using around 380MB or my 512MB RAM. Is this normal? Also had to restart my POP3 Proxy as it was not letting my clients connect to their mail servers. 

    [/ QUOTE ]

    One more thing.  The 2.6 kernel has a parameter to control its swapping called swappiness.  By default the parameter is set to swappiness=60.  THe system will agressively swap to maintain free memory.  You can reduce the system's swapping behavior by lowering the value in /etc/sysctl.conf.  Put in the value vm.swappiness=20 (or whatver.)  I would not go below 20 myself.  Some run it at 10 without issue.  I have two 2.6x based servers here with swappiness set to 20 and they run fine. 

    Combine the squid tweaks i mentioned earlier with swappiness tuning and things should be ok.  

    From just what i gather i think the squid tweaks will help more.  2.6 is a much better manager of memory than 2.4.  Also what are your load averages.  If they are low then I would not be too concerend about the swap usage expecially consdering the agressivly swapping 2.6 does by default.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • The pop3 proxy has issues which are noted elsewhere in this forum.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Could you please post the output of 'ps faux' or Webadmin -> Reporting -> Advanced -> Process List? There you should find the process which uses most memory. Also send the output of 'free'.

    Xeno
  • where he says:
    Also had to restart my POP3 Proxy as it was not letting my clients connect to their mail servers.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow