-
RSS Links
Categories
- /bike
- /blog
- /categoryless
- /coffee
- /dev/random
- /food
- /freenetworks
- /friends
- /funny
- /geek
- /GirTheCadillac
- /Lebowski
- /Life
- /LifeWithDog
- /me
- /metrix
- /music
- /National Wireless Summit 2006
- /phonecamera
- /photo
- /potpourri
- /seadrunks
- /seattle
- /seattlewireless
- /shmoocon
- /softball
- /StupidShellTricks
- /sysadmin
- /travel
- /unix
- /work
- cons
- pyramid
Archives
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- December 2008
- December 2007
- August 2007
- July 2007
- May 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- June 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- February 2004
- January 2004
- December 2003
- November 2003
- August 2003
READYNAS NV+ Kernel Out of memory
Decided recently to pick up a Readynas NV+ to supplement our file storage at the office. I have the Readynas Duo at home and have been quite happy with it. It is a linux based NAS appliance and after installing a few add-ons you can have a remote root shell and apt packages to install things like munin and NRPE which happen to be what I use for monitoring.
As with most NAS appliances it supports SMB, AFP and FTP. It also can run an rsync daemon. Or with shell access you can setup cron jobs, run rsync from the shell just like a normal linux box. Other features which I don’t use include support for Apple’s Time Machine, Squeezebox, a web based bittorrent client and a handful of other stuff.
After I set the device up I figured I would burn it in for a couple of days to make sure everything was happy. I had upgraded the RAM from the default 256mb to 1 gig because I had read some benchmarking reports that indicated a noticeable increase in I/O performance. Much to my surprise with little or no activity for a day or two I got message from Nagios that it could not talk to the NRPE instance on the device. It was still responding to pings but all services on the device were horked. I rebooted it and checked the logs to find a bunch of “kernel: out of memory” messages indicating that both RAM and swap were entirely consumed and the kernel was attempting to kill off processes in an attempt to recover:
This seemed to be obviously a memory leak, however after some quick searching and ad-hoc research I found no obvious answers and decided to shelve it for a while.
Today I finally came across this thread where at least a few other people had the same problem. The person reporting the problem was also running the munin client on his Readynas as well.
So it appeared to be a kernel memory leak that in this case was triggered by bash which is used in a bunch of the munin plugins. I just upgraded to the firmware release posted on the mentioned thread and have noticed a huge difference already. I think its great that netgear finally fixed this problem. I also think its great that openness of their product allowed customers to troubleshoot it for them, however I was not all that impressed that it took them almost a year to get the issue resolved.