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

increasing swapping since 8.102

Hi,

have anyone seen something similar and resolved it?
We have one ASG220 in HA. RAM Usage is about 60% but the swapping is steadily increasing. Same on a Software Version with 2GB RAM and also around 60% RAM usage. I'm wondering where this swapping comes from. Rebooting is the last solution.

Regards

Achim


This thread was automatically locked due to age.
Parents
  • Hi,

    have anyone seen something similar and resolved it?
    We have one ASG220 in HA. RAM Usage is about 60% but the swapping is steadily increasing. Same on a Software Version with 2GB RAM and also around 60% RAM usage. I'm wondering where this swapping comes from. Rebooting is the last solution.

    Regards

    Achim


    the early swapping is from a "misconfiguration" of the kernel swapping by Astaro.  I saw this as well and am familiar with this phenomenon  The default kernel swappiness is 60.  What needs to be done is to set that to zero or maybe 20.  This means the system will actually evacuate cache ram BEFORE heading to the many orders of magnitude slower disk.  If you have active support this tweak voids your support though.  So you need to add more ram or if you are feeling adventurous you can do the following:

    log into ssh as root
    cd /etc
    joe sysctl.conf
    add vm.swappiness=0 under the last line
    hold down control press k then press x
    reboot
Reply
  • Hi,

    have anyone seen something similar and resolved it?
    We have one ASG220 in HA. RAM Usage is about 60% but the swapping is steadily increasing. Same on a Software Version with 2GB RAM and also around 60% RAM usage. I'm wondering where this swapping comes from. Rebooting is the last solution.

    Regards

    Achim


    the early swapping is from a "misconfiguration" of the kernel swapping by Astaro.  I saw this as well and am familiar with this phenomenon  The default kernel swappiness is 60.  What needs to be done is to set that to zero or maybe 20.  This means the system will actually evacuate cache ram BEFORE heading to the many orders of magnitude slower disk.  If you have active support this tweak voids your support though.  So you need to add more ram or if you are feeling adventurous you can do the following:

    log into ssh as root
    cd /etc
    joe sysctl.conf
    add vm.swappiness=0 under the last line
    hold down control press k then press x
    reboot
Children
  • There is no real consensus on swappiness hence the high default setting of 60 as william mentioned. This default setting is used by a few different distros and is not limited to astaro. 

    I always use 10-20 range as recommended by william but keep in mind that swappiness setting is no substitute to the lack of ram. If you have 1GB ram and are running local content database with swappiness setting of 0, one of your daemons might die unexpectedly due to lack of ram. 

    The old time unix/linux admins like no swapping for speed and efficiency but for a firewall like astaro, your setup may or may not let you experience the performance increase by limiting the swap usage. 

    Hope that helps.

    Regards 
    Bill.