You linked to a very generic, blanket statement that there were
memory leaks fixed between 2.6.20 and 2.6.22.5. It doesn't refer to architecture, or usage, or anything else. I didn't see anything relevant in the kernel changelog, so you can't just assume that there's a kernel
memory leak in the context of its use on the ReadyNAS because some guy on LKML said some
memory leaks were fixed. Also, we don't use an off-the-shelf processor. There is no upstream support for our chip, so all kernel porting has to be done in-house, and it's no small task, as you can probably see by doing a diff between the stock upstream 2.6.17.8 and our kernel source code.
Now, if there is a reproducible
memory leak in the kernel, we're more than happy to fix it. And if you can give us enough information to reproduce the issue here, that would be wonderful. But we haven't been able to reproduce your issue here yet, and we've had systems up and running for well over a month at a time. Here's some data from a normal bootup with 1GB RAM.
- Code: Select all
nas-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-1C