Like described 2 posts up, I've setup swap memory on my USB HDD and I've noticed swap memory being used up to 26MBytes till now! The router can really use this extra virtual memory it seems. This extensive use of memory is mostly caused by the giFT daemon, which requires heaps of RAM sometimes.
Code:
total: used: free: shared: buffers: cached:
Mem: 14725120 13430784 1294336 0 704512 3579904
Swap: 32862208 26611712 6250496
MemTotal: 14380 kB
MemFree: 1264 kB
MemShared: 0 kB
Buffers: 688 kB
Cached: 2016 kB
SwapCached: 1480 kB
Active: 4368 kB
Inactive: 3708 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14380 kB
LowFree: 1264 kB
SwapTotal: 32092 kB
SwapFree: 6104 kB
Code:
Mem: 13240K used, 1140K free, 0K shrd, 300K buff, 7328K cached
Load average: 2.33, 2.32, 1.70 (State: S=sleeping R=running, W=waiting)
PID USER STATUS RSS PPID %CPU %MEM COMMAND
1049 root D 5700 1 56.1 39.6 ld.so.1
1187 root S 228 1012 11.2 1.5 giFTwakeup
1296 root R 220 1295 3.2 1.5 top
778 root SW 0 1 2.0 0.0 usb-storage-0
4 root SW 0 1 0.3 0.0 kswapd
488 root S 36 1 0.1 0.2 telnetd
1032 root S 140 983 0.0 0.9 watchdog
512 root S 140 1 0.0 0.9 httpd
1006 root S 128 1 0.0 0.8 nmbd
970 root S 76 1 0.0 0.5 stupid-ftpd
826 root S 36 1 0.0 0.2 udhcpc
317 root S 20 1 0.0 0.1 klogd
305 root S 20 1 0.0 0.1 syslogd
1013 root S 12 1 0.0 0.0 busybox_httpd
1012 root S 12 998 0.0 0.0 giftd.sh
1295 root S 8 488 0.0 0.0 sh
1005 root S 4 1 0.0 0.0 dropbear
3 root RWN 0 1 0.0 0.0 ksoftirqd_CPU0
8 root SW 0 1 0.0 0.0 mtdblockd
(ld.so.1 is the giFT daemon)
Strange thing though: The giFT daemon and the other processes do not account to 26 MB swap + 12 MB RAM. But I must say I don't exactly know how Linux handles swap memory, it might be buffer space as well.
Anyone an idea why Linux uses so much swap space?
Edit:
OMG, now all the swap space is used...
Code:
total: used: free: shared: buffers: cached:
Mem: 14725120 13234176 1490944 0 667648 1847296
Swap: 32862208 32862208 0
MemTotal: 14380 kB
MemFree: 1456 kB
MemShared: 0 kB
Buffers: 652 kB
Cached: 1740 kB
SwapCached: 64 kB
Active: 2948 kB
Inactive: 4880 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14380 kB
LowFree: 1456 kB
SwapTotal: 32092 kB
SwapFree: 0 kB