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

A wrinkle with using the local content http filter database

Astaro has hte kernel swappiness set to 60.  I ahve 2 gigs of ram in my machine and as per the following thread I am using hte mem option:
https://community.sophos.com/products/unified-threat-management/astaroorg/f/55/t/44899

However since my ram usage stays below 40% there's no reason for the box to touch swap.  It turns out the default swappiness of the 2.6 linux kernel is 60.  This means the machine is more likely to keep files cached in ram and nOT evacuate them to disk when needed.  The swappiness value should be reduced to zero..here's how:

login as root to the box
joe /etc/sysctl.conf
at the bottom type vm.swappiness=0
ctrl-k x
reboot the box.


This thread was automatically locked due to age.
Parents
  • Right, if your system never swaps, then lowering the swappiness variable won't change anything.

    Barry
  • Right, if your system never swaps, then lowering the swappiness variable won't change anything.

    Barry


    if you aren't swapping then lowering the value of swappiness makes sure than only in extreme memory pressure circumstances(like if you have a gig of logs files to do accounting on in one run..) the machine won't swap and you won't take the performance hit of trying to use the hdd as ram.  What this does is instruct the kernel to give up the page cache for programs instead of forcing programs to the disk.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

Reply
  • Right, if your system never swaps, then lowering the swappiness variable won't change anything.

    Barry


    if you aren't swapping then lowering the value of swappiness makes sure than only in extreme memory pressure circumstances(like if you have a gig of logs files to do accounting on in one run..) the machine won't swap and you won't take the performance hit of trying to use the hdd as ram.  What this does is instruct the kernel to give up the page cache for programs instead of forcing programs to the disk.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

Children