NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
AndrewT1
May 15, 2013Aspirant
NAS 104 locking up
Hi.. I having an intermittently problem with my NAS 104 (sw 6.0.5) after a few days of operation the unit freezes , no response from the web or Power button. The only way to recover is to remove th...
roygaard
Nov 25, 2013Aspirant
Hi!
I think I've fixed my RN104-box by changing the swappiness-value. Per (readynas-)default the swappiness is set to "0". This means that swapping will only be done if there is no more RAM left. This is - in my oppinion - a bad decision. Because of this slow onboard-controller there maybe is not enough time to swap-out when your processes hit the end of the RAM. My MySQL-instance always got kicked which shot the rsyslog-daemon to death and so on...
I changed the swappiness by adding a row to the end of the file /etc/sysctl.conf:
Changing this value makes the setting reboot-aware / persistent.
You have to be "ROOT" (via ssh) to change these settings.
You can use this statement on the commandline :
This change is static and has only to be done once...
You'll have to reboot after changing this settings.
__________________________________________________
If you are not brave enough to change this system-file or want to check the behavior you can use following statement:
Remember: This is a dynamic change and has to be done every time after a reboot!!!
Have fun and good luck,
Roy
I think I've fixed my RN104-box by changing the swappiness-value. Per (readynas-)default the swappiness is set to "0". This means that swapping will only be done if there is no more RAM left. This is - in my oppinion - a bad decision. Because of this slow onboard-controller there maybe is not enough time to swap-out when your processes hit the end of the RAM. My MySQL-instance always got kicked which shot the rsyslog-daemon to death and so on...
I changed the swappiness by adding a row to the end of the file /etc/sysctl.conf:
swappiness = 60
100 = swap everything (= also stupid and makes everything very slow)
60 = Linux default
0 = no swap - only swap if there is no more RAM (readynas-default)
Changing this value makes the setting reboot-aware / persistent.
You have to be "ROOT" (via ssh) to change these settings.
You can use this statement on the commandline :
echo swappiness = 60 >> /etc/sysctl.conf
This change is static and has only to be done once...
You'll have to reboot after changing this settings.
__________________________________________________
If you are not brave enough to change this system-file or want to check the behavior you can use following statement:
sysctl -w vm.swappiness=60
Remember: This is a dynamic change and has to be done every time after a reboot!!!
Have fun and good luck,
Roy
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!