NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
xsnrg
Nov 21, 2013Aspirant
swappiness issue
On the 3220:
# cat /proc/sys/vm/swappiness
0
This should probably be set to 1 or at least something higher than 0. Having this set at 0 causes the kernel to kill processes it deems idle instead of swapping them to disk. In my case, running a defrag through frontview takes enough system memory (on a 4G machine) that the kernel starts killing things to free resources. One of the things it kills is the webserver daemon. You see the problem here. The webserver is the web management interface of course.
Yes, swapping to disk will be a lot slower, but it should prevent the management interface from dying. If you did not have ssh enabled at this point, a restart is likely in your future. If you have ssh, you get the ability to issue a service apache2 restart.
# cat /proc/sys/vm/swappiness
0
This should probably be set to 1 or at least something higher than 0. Having this set at 0 causes the kernel to kill processes it deems idle instead of swapping them to disk. In my case, running a defrag through frontview takes enough system memory (on a 4G machine) that the kernel starts killing things to free resources. One of the things it kills is the webserver daemon. You see the problem here. The webserver is the web management interface of course.
Yes, swapping to disk will be a lot slower, but it should prevent the management interface from dying. If you did not have ssh enabled at this point, a restart is likely in your future. If you have ssh, you get the ability to issue a service apache2 restart.
4 Replies
Replies have been turned off for this discussion
- roygaardAspirantI totally agree ... swapping makes things MUCH better.
I've set it to 60 (linux default) and - no more hangs now.
Regards,
Roy - chirpaLuminaryQnap boxes use the default 60 also.
- mangroveApprenticeDo they use a swap file or a swap partition in OS6?
- mdgm-ntgrNETGEAR Employee Retired/dev/md1 is used for swap
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!