NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
luite
Mar 30, 2013Aspirant
Duo V2 out of memory prevention?
How familiar is it to you waking up finding your readinas responding to ping only - no https or ssh at all? You pull the plug :( for an unclean restart and after a restart you are good to go again. T...
luite
Apr 01, 2013Aspirant
Update 2 -Looks like that processes that are 'niced' are more likely to be killed due to the calculation of the out-of-memory killer. It also appears that readynas is configured to run apache-ssl with a nice value. This is generally a good idea, but it also means it is more likely to kill apache-ssl than it is to kill minidlna.
So far my best bet is (1) to not use minidlna at all or (2) make sure those processes are 'niced' more strongly than apache-ssl. Moreover, if the real culprit memory hog can be killed that should also mean that the system would become/remain responsive... I hope?
Here's the rather unelgant script I've put in /etc/rc2.d/S99renice to try to accomplish this
So far my best bet is (1) to not use minidlna at all or (2) make sure those processes are 'niced' more strongly than apache-ssl. Moreover, if the real culprit memory hog can be killed that should also mean that the system would become/remain responsive... I hope?
Here's the rather unelgant script I've put in /etc/rc2.d/S99renice to try to accomplish this
#!/bin/bash
#renice minidlna -> high value = low priority and more like to be killed by OOM (out of memory manager)
if [ ! -z "`pidof minidlna`" ]
then
renice -n 10 `pidof minidlna`
echo "Reniced minidlna to 10"
else
echo "minidlna not running while trying to renice"
fi
#renice sshd -> low value = high priority and less likely to be killed by OOM
if [ ! -z "`pidof minidlna`" ]
then
renice -n -1 `pidof sshd`
echo "Reniced sshd to -1"
else
echo "sshd not running while trying to renice"
fi
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!