Moderator: chirpa
Skywalker wrote:Are you running SlimServer? I've known SlimServer to leak memory in the past (like a lot of other big perl programs tend to do).
print "apps.value ", $mems{'MemTotal'}
-$mems{'MemFree'}
-$mems{'Buffers'}
-$mems{'Cached'}
-$mems{'SwapCached'}
-$mems{'Slab'}
-$mems{'PageTables'}
-$mems{'VmallocUsed'}
,"\n";
warewolf wrote:Speaking of kernel bugs, where's the kernel source (and any modification patches) for 2.6.17.8ReasyNAS? I'd like to see if I can figure out what's going on, but this is poking in the dark.
Linux readynas 2.6.17.8ReadyNAS #1 Mon Dec 17 19:35:18 PST 2007 padre unknownwarewolf wrote:I'm not sure where to post this, but I think I have a memory leak somewhere in kernel space in this "final beta" release of the ReadyNAS OS.
I'm no stranger to Linux, but from what I can tell it's not an application memory leak, but a kernel memory leak.
Specs:
ReadyNAS NV+ running Raidiator 4.00c1-p2. 1gb of memory (tested twice), 4x1TB disks.
Addons added: ssh, root ssh, apt
The kernel runs out of memory, then invokes the OOM killer and kills off nearly everything. The first time the box died I had to hit the power button -- it was completely unmanageable via the network (ssh, hXXps, no go -- the processes had been killed).
13:38 <warewolf> sweet, slabtop works like a champ
13:39 <warewolf> OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
13:39 <warewolf> 24480 23899 97% 0.05K 90 272 1440K buffer_head
13:39 <warewolf> 10112 10106 99% 0.97K 632 16 10112K task_struct
13:39 <warewolf> looks like task_struct is leaking?
13:40 <jdike> there aren't 10K processes on the system?
13:40 <warewolf> there's 74.
13:40 <warewolf> # ps auwwwx | wc -l 74
13:40 <jdike> yeah
13:40 <jdike> 10106 would be a bit excessivenas-01-0E-1C:~# more /proc/meminfo
MemTotal: 1010720 kB
MemFree: 957312 kB
Buffers: 14080 kB
Cached: 37392 kB
SwapCached: 0 kB
Active: 37504 kB
Inactive: 21520 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 1010720 kB
LowFree: 957312 kB
SwapTotal: 255968 kB
SwapFree: 255968 kB
Dirty: 32 kB
Writeback: 0 kB
Mapped: 14400 kB
Slab: 5040 kB
CommitLimit: 862400 kB
Committed_AS: 21424 kB
PageTables: 0 kB
VmallocTotal: 131008 kB
VmallocUsed: 1056 kB
VmallocChunk: 129408 kB
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.4 0.0 2000 880 ? Ss 09:32 0:04 init [3]
root 2 0.0 0.0 0 0 ? RN 09:32 0:00 [ksoftirqd/0]
root 3 0.0 0.0 0 0 ? S< 09:32 0:00 [events/0]
root 4 0.0 0.0 0 0 ? S< 09:32 0:00 [khelper]
root 5 0.0 0.0 0 0 ? S< 09:32 0:00 [kthread]
root 10 0.0 0.0 0 0 ? S< 09:32 0:00 [kblockd/0]
root 13 0.0 0.0 0 0 ? S< 09:32 0:00 [khubd]
root 41 0.0 0.0 0 0 ? S 09:32 0:00 [pdflush]
root 42 0.0 0.0 0 0 ? S 09:32 0:00 [pdflush]
root 43 0.0 0.0 0 0 ? S 09:32 0:00 [kswapd0]
root 44 0.0 0.0 0 0 ? S< 09:32 0:00 [aio/0]
root 45 0.0 0.0 0 0 ? S< 09:32 0:00 [cifsoplockd]
root 46 0.0 0.0 0 0 ? S< 09:32 0:00 [cifsdnotifyd]
root 92 0.0 0.0 0 0 ? S< 09:32 0:00 [kvblade]
root 93 0.0 0.0 0 0 ? S 09:32 0:00 [mtdblockd]
root 106 0.0 0.0 0 0 ? S 09:32 0:00 [hotplug-sata]
root 116 0.0 0.0 0 0 ? S 09:33 0:00 [djsyncd]
root 117 0.0 0.0 0 0 ? S 09:33 0:00 [djcheckd]
root 120 0.0 0.0 0 0 ? S 09:33 0:00 [hotplug-gmac]
root 293 0.0 0.0 0 0 ? S< 09:33 0:00 [kjournald]
root 576 0.0 0.0 0 0 ? S< 09:33 0:00 [kjournald]
daemon 616 0.0 0.0 2240 624 ? Ss 09:33 0:00 /sbin/portmap
root 625 0.0 0.0 2128 960 ? Ss 09:33 0:00 /sbin/syslogd -m 0
daemon 629 0.0 0.0 2480 864 ? Ss 09:33 0:00 /usr/sbin/atd
root 635 0.0 0.0 2016 720 ? Ss 09:33 0:00 /sbin/klogd -x -c 3
root 637 0.0 0.0 2000 704 ? Ss 09:33 0:00 /usr/sbin/inetd
admin 653 0.0 0.1 3648 1808 ? Ss 09:33 0:00 avahi-daemon: running [nas-01-0E-1C.local]
root 654 0.0 0.1 2656 1264 ? Ss 09:33 0:00 /usr/sbin/cron
root 661 0.0 0.1 4672 1792 ? Ss 09:33 0:00 /usr/sbin/cupsd
root 684 0.0 0.4 10160 4688 ? Ss 09:33 0:00 /usr/sbin/smbd -D
root 698 0.0 0.3 10160 3680 ? S 09:33 0:00 /usr/sbin/smbd -D
root 880 0.0 0.0 2000 272 ? Ss 09:33 0:00 udhcpc -i eth0 -H nas-01-0E-1C -n
root 896 0.0 0.1 2224 1120 ? Ss 09:33 0:00 /frontview/bin/monitor_enclosure
root 999 0.0 0.2 5680 2432 ttyS1 Ss 09:34 0:00 -bash
root 1007 0.0 0.2 8704 2560 ? Ss 09:34 0:00 nmbd -D
root 1019 0.0 0.0 2000 832 ? Ss 09:34 0:00 /usr/sbin/upnpd -a 192.168.7.178
root 1023 0.0 0.1 3424 1072 ? S 09:34 0:00 /usr/sbin/cnid_metad
root 1028 0.0 0.2 8080 2480 ? S 09:34 0:00 /usr/sbin/afpd -U uams_dhx.so,uams_clrtxt.so,uams_guest.so -c 50 -n nas-01-0E-1Cwarewolf wrote:Edit: Independent verification from a kernel developer I located on IRC:
- Code: Select all
13:38 <warewolf> sweet, slabtop works like a champ
13:39 <warewolf> OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
13:39 <warewolf> 24480 23899 97% 0.05K 90 272 1440K buffer_head
13:39 <warewolf> 10112 10106 99% 0.97K 632 16 10112K task_struct
13:39 <warewolf> looks like task_struct is leaking?
13:40 <jdike> there aren't 10K processes on the system?
13:40 <warewolf> there's 74.
13:40 <warewolf> # ps auwwwx | wc -l 74
13:40 <jdike> yeah
13:40 <jdike> 10106 would be a bit excessive
Okay guys I've done the work for you guys, and identified the problem. What next?
Return to Public RAIDiator Beta for ReadyNAS NV+/Duo/1100
Users browsing this forum: No registered users and 5 guests