LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-13-2011, 06:22 AM   #1
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Rep: Reputation: Disabled
Problem with excessive RAM usage and no obvious culprit


I have run into a problem with my desktop using roughly 50% RAM (w/o buffers or cache) while running a limited set of applications (fbterm, tmux, weechat, ncmpc, rtorrent) on the command line. This usage only increases roughly 5-10% when starting X (an addition of xcompmgr, awesome wm, zim, parcellite, 2x conky (one replacing root-tails functionality), plus firefox and other apps that may or may not be running from time to time). (h)top is reporting programs only using roughly .1-.2% per proccess and roughly 100 processes (current look at top shows 120 processes, only 32 of which are registering any usage over 0.0%)

The RAM usage when in the console (which I will add is about 150MB after boot) is totally unreasonable and I need some direction on trying to find out what is using all of this RAM.

System:
Distro: Arch Linux
RAM: 2G
CPU: AMD 64 x2 4800+
HDD: 3x WD Black 750G (RAID 5 on partition 2 (swap) and 3 (root), RAID 1 on partition 1 (boot). LVM over root partition)
GPU: Nvidia 8400 GS
 
Old 05-13-2011, 06:42 AM   #2
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,968

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by Dralnu View Post
50% RAM (w/o buffers or cache)
I'm not sure what you mean by "w/o buffers or cache", so I'm not sure your issue isn't the usual one (user confusion about how to interpret the output of free, rather than an actual Linux problem).

Anyway, you haven't given enough info for anyone to diagnose the problem

At least post the output of free (and tell us the conditions under which that was done).

The output of cat /proc/meminfo would give a bit more detail.

Last edited by johnsfine; 05-13-2011 at 06:43 AM.
 
Old 05-13-2011, 07:06 AM   #3
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
Free output:

Code:
             total       used       free     shared    buffers     cached
Mem:       2059460    1953276     106184          0     429896     407572
-/+ buffers/cache:    1115808     943652
Swap:      2096124          0    2096124
Meminfo:

Code:
MemTotal:        2059460 kB
MemFree:          106888 kB
Buffers:          426996 kB
Cached:           414604 kB
SwapCached:            0 kB
Active:           545896 kB
Inactive:         572204 kB
Active(anon):     195984 kB
Inactive(anon):    86624 kB
Active(file):     349912 kB
Inactive(file):   485580 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2096124 kB
SwapFree:        2096124 kB
Dirty:                44 kB
Writeback:             0 kB
AnonPages:        276540 kB
Mapped:            33004 kB
Shmem:              6108 kB
Slab:             750776 kB
SReclaimable:     734620 kB
SUnreclaim:        16156 kB
KernelStack:        1280 kB
PageTables:         6100 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3125852 kB
Committed_AS:     677768 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      321552 kB
VmallocChunk:   34359371260 kB
HardwareCorrupted:     0 kB
AnonHugePages:     28672 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       59008 kB
DirectMap2M:     2037760 kB
ps aux output:
Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   3904   624 ?        Ss   03:08   0:00 init [3]  
root         2  0.0  0.0      0     0 ?        S    03:08   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    03:08   0:03 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S    03:08   0:05 [kworker/0:0]
root         6  0.0  0.0      0     0 ?        S    03:08   0:00 [migration/0]
root         7  0.0  0.0      0     0 ?        S    03:08   0:00 [watchdog/0]
root         8  0.0  0.0      0     0 ?        S    03:08   0:00 [migration/1]
root        10  0.0  0.0      0     0 ?        S    03:08   0:06 [ksoftirqd/1]
root        12  0.0  0.0      0     0 ?        S    03:08   0:00 [watchdog/1]
root        13  0.0  0.0      0     0 ?        S<   03:08   0:00 [cpuset]
root        14  0.0  0.0      0     0 ?        S<   03:08   0:00 [khelper]
root        15  0.0  0.0      0     0 ?        S<   03:08   0:00 [netns]
root        16  0.0  0.0      0     0 ?        S    03:08   0:00 [sync_supers]
root        17  0.0  0.0      0     0 ?        S    03:08   0:00 [bdi-default]
root        18  0.0  0.0      0     0 ?        S<   03:08   0:00 [kblockd]
root        19  0.0  0.0      0     0 ?        S<   03:08   0:00 [kacpid]
root        20  0.0  0.0      0     0 ?        S<   03:08   0:00 [kacpi_notify]
root        21  0.0  0.0      0     0 ?        S<   03:08   0:00 [kacpi_hotplug]
root        51  0.0  0.0      0     0 ?        S    03:08   0:00 [khungtaskd]
root        52  0.1  0.0      0     0 ?        S    03:08   0:15 [kswapd0]
root        53  0.0  0.0      0     0 ?        SN   03:08   0:00 [ksmd]
root        54  0.0  0.0      0     0 ?        SN   03:08   0:01 [khugepaged]
root        55  0.0  0.0      0     0 ?        S    03:08   0:00 [fsnotify_mark]
root        56  0.0  0.0      0     0 ?        S<   03:08   0:00 [aio]
root        57  0.0  0.0      0     0 ?        S<   03:08   0:00 [crypto]
root        59  0.0  0.0      0     0 ?        S<   03:08   0:00 [kthrotld]
root       494  0.0  0.0      0     0 ?        S<   03:08   0:00 [ata_sff]
root       498  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_0]
root       499  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_1]
root       500  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_2]
root       501  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_3]
root       502  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_4]
root       503  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_5]
root       506  0.0  0.0      0     0 ?        S    03:08   0:00 [kworker/u:3]
root       507  0.0  0.0      0     0 ?        S    03:08   0:00 [kworker/u:4]
root       594  0.0  0.0      0     0 ?        S<   03:08   0:00 [md]
root       604  0.0  0.0      0     0 ?        S    03:08   0:00 [md0_raid1]
root       613  0.0  0.0      0     0 ?        S    03:08   0:00 [md1_raid5]
root       621  0.0  0.0      0     0 ?        S    03:08   0:11 [md2_raid5]
root       626  0.0  0.0      0     0 ?        S<   03:08   0:00 [kdmflush]
root       630  0.0  0.0      0     0 ?        S<   03:08   0:00 [kdmflush]
root       634  0.0  0.0      0     0 ?        S<   03:08   0:00 [kdmflush]
root       645  0.0  0.0      0     0 ?        S    03:08   0:00 [jbd2/dm-0-8]
root       646  0.0  0.0      0     0 ?        S<   03:08   0:00 [ext4-dio-unwrit]
root       689  0.0  0.0  10840  1364 ?        Ss   03:08   0:00 /sbin/udevd --daemon
root      1177  0.0  0.0  10744  1012 ?        S    03:08   0:00 /sbin/udevd --daemon
root      1178  0.0  0.0  10744  1000 ?        S    03:08   0:00 /sbin/udevd --daemon
root      1310  0.0  0.0      0     0 ?        S<   03:08   0:00 [kpsmoused]
root      1413  0.0  0.0      0     0 ?        S    03:08   0:10 [kworker/0:2]
root      1415  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_6]
root      1419  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_7]
root      1618  0.0  0.0      0     0 ?        S<   03:08   0:00 [edac-poller]
root      1646  0.0  0.0      0     0 ?        S    03:08   0:00 [khubd]
root      1647  0.0  0.0      0     0 ?        S<   03:08   0:00 [kondemand]
root      1710  0.0  0.0      0     0 ?        S<   03:08   0:00 [kvm-irqfd-clean]
root      2030  0.0  0.0      0     0 ?        S<   03:08   0:00 [hd-audio0]
root      2093  0.0  0.0      0     0 ?        S    03:08   0:00 [scsi_eh_8]
root      2096  0.0  0.0      0     0 ?        S    03:08   0:09 [usb-storage]
root      3200  0.0  0.0      0     0 ?        S    03:08   0:00 [jbd2/dm-1-8]
root      3201  0.0  0.0      0     0 ?        S<   03:08   0:00 [ext4-dio-unwrit]
root      3202  0.0  0.0      0     0 ?        S    03:08   0:00 [jbd2/dm-2-8]
root      3203  0.0  0.0      0     0 ?        S<   03:08   0:00 [ext4-dio-unwrit]
root      3206  0.0  0.0      0     0 ?        S    03:08   0:04 [jbd2/sdd1-8]
root      3207  0.0  0.0      0     0 ?        S<   03:08   0:00 [ext4-dio-unwrit]
root      3307  0.0  0.0  28352   344 ?        S    03:08   0:00 supervising syslog-ng
root      3308  0.0  0.1  57948  2388 ?        Ss   03:08   0:00 /usr/sbin/syslog-ng
root      3360  0.0  0.0   3896   596 ?        Ss   03:08   0:00 /usr/sbin/acpid
daemon    3361  0.0  0.0  10156   324 ?        Ss   03:08   0:00 /usr/sbin/atd
dbus      3379  0.0  0.0  12760   792 ?        Ss   03:08   0:00 /usr/bin/dbus-daemon --system
mpd       3387  0.0  0.5 291456 10864 ?        Ssl  03:09   0:13 /usr/bin/mpd /etc/mpd.conf
root      3392  0.0  0.0  12296  1000 ?        S    03:09   0:00 /usr/sbin/smartd
root      3394  0.0  0.0      0     0 ?        S    03:09   0:00 [flush-254:0]
root      3413  0.0  0.0   8212   296 ?        Ss   03:09   0:00 /sbin/dhcpcd -q eth0
root      3451  0.0  0.0   3900   576 tty2     Ss+  03:09   0:00 /sbin/agetty -8 38400 tty2 linux
root      3452  0.0  0.0   3900   576 tty3     Ss+  03:09   0:00 /sbin/agetty -8 38400 tty3 linux
root      3453  0.0  0.0   3900   576 tty4     Ss+  03:09   0:00 /sbin/agetty -8 38400 tty4 linux
root      3454  0.0  0.0   3900   572 tty5     Ss+  03:09   0:00 /sbin/agetty -8 38400 tty5 linux
root      3455  0.0  0.0   3900   576 tty6     Ss+  03:09   0:00 /sbin/agetty -8 38400 tty6 linux
root      3473  0.0  0.0  18256   888 ?        Ss   03:09   0:00 /usr/sbin/ntpd
ntp       3474  0.0  0.0  14044   800 ?        S    03:09   0:00 /usr/sbin/ntpd
root      3476  0.0  0.0   5996   680 ?        Ss   03:09   0:00 /usr/sbin/crond -S -l info
user       3483  0.0  0.0   8044   584 ?        Ss   03:09   0:00 dtach -n /tmp/rtorrent.dtach /usr/bin/rtorrent
user       3487  0.2  0.9 164512 20516 pts/0    Ss+  03:09   0:36 /usr/bin/rtorrent
privoxy   3488  0.2  0.0 117804  1876 ?        Ss   03:09   0:31 /usr/sbin/privoxy --user privoxy privoxy --pidfile /var/run/privoxy.pid /etc/privoxy/config
bitlbee   3489  0.0  0.0  35528   936 ?        Ss   03:09   0:00 /usr/sbin/bitlbee -F
root      3552  0.0  0.0  45584  1004 tty1     Ss   03:10   0:00 /bin/login --    
user       3553  0.0  0.1  15524  2184 tty1     S    03:10   0:00 -bash
user       3608 37.8  0.5  49464 11372 tty1     S+   03:12  89:42 fbterm
user       3610  0.0  0.1  15524  2236 pts/1    Ss   03:12   0:00 /bin/bash
user       3643  0.0  0.0  17964  1880 ?        Ss   03:13   0:09 tmux
user       3645  0.0  0.1  15524  2196 pts/2    Ss   03:13   0:00 -bash
user       3655  0.0  0.1  15648  2232 pts/3    Ss   03:13   0:00 -bash
user       3661  0.0  0.1  15524  2236 pts/4    Ss   03:13   0:00 -bash
user       3671  0.0  0.4  91392  9024 pts/3    S+   03:13   0:03 weechat-curses
bitlbee   3673  0.0  0.1  40276  3172 ?        S    03:13   0:00 /usr/sbin/bitlbee -F
user       3693  0.0  0.1  24480  2076 pts/2    S+   03:15   0:00 ncmpc
root      3897  0.0  0.0      0     0 ?        S    05:02   0:02 [kworker/1:0]
user       3954  0.0  0.1  15524  2196 pts/5    Ss+  05:38   0:00 -bash
user       4074  0.3  0.0  10768  1120 pts/4    S+   05:41   0:19 top
root      4772  0.1  0.0      0     0 ?        S    05:54   0:05 [flush-254:1]
root      6481  0.0  0.0      0     0 ?        S    06:16   0:01 [kworker/1:1]
user       8911  0.0  0.1  15524  2220 pts/6    Ss   06:46   0:00 -bash
user       9025  0.0  0.0  17160  2016 pts/6    S+   06:48   0:00 man tmux
user       9035  0.0  0.0  10464   928 pts/6    S+   06:48   0:00 less -s
user       9063  0.0  0.1  15524  2208 pts/7    Ss+  06:49   0:00 -bash
user       9322  0.0  0.0  13292  1704 pts/1    S+   06:54   0:00 /bin/sh /usr/bin/startx
user       9339  0.0  0.0  15560   776 pts/1    S+   06:54   0:00 xinit /home/user/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.jyOOIXlzgp
root      9340  7.0  0.9 119936 20588 tty7     S<s+ 06:54   1:03 /usr/bin/X -nolisten tcp :0 -auth /tmp/serverauth.jyOOIXlzgp
user       9343  0.0  0.0  13292  1596 pts/1    S    06:54   0:00 sh /home/user/.xinitrc
user       9345  0.2  0.3 109960  8188 pts/1    SN   06:54   0:02 parcellite
user       9346  0.1  0.0  26572  1172 pts/1    SN   06:54   0:01 /usr/bin/xcompmgr
user       9348  1.7  0.2 284212  4144 pts/1    SNl  06:54   0:15 /usr/bin/conky -c .conkyrc
user       9349  0.1  0.1  68808  3432 pts/1    SN   06:54   0:01 /usr/bin/conky -c .conkyrc_logs
user       9350  0.9  0.5 151148 11160 pts/1    S    06:54   0:08 /usr/bin/awesome
user       9351  0.0  0.3  91856  7936 pts/1    S    06:54   0:00 /usr/bin/urxvtd -q -f -o
user       9364  0.0  0.0  19832   544 pts/1    S    06:54   0:00 dbus-launch --autolaunch b15d82cfbe4d40b441cf012e00000d46 --binary-syntax --close-stderr
user       9367  0.0  0.0  12760   868 ?        Ss   06:54   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
user       9374  0.0  0.5 116816 10612 ?        SNl  06:54   0:00 /usr/bin/python2 /usr/bin/zim
user       9375  0.0  1.2 292340 25180 ?        SNl  06:54   0:00 /usr/bin/python2 /usr/bin/zim
user       9379 17.3  8.6 589480 177708 ?       Ssl  06:54   2:34 firefox
user       9496  0.0  0.1  15624  2228 pts/8    Ss+  06:56   0:00 bash
root      9782  0.3  0.0      0     0 ?        S    07:00   0:01 [flush-8:48]
root     10141  0.0  0.0      0     0 ?        S    07:05   0:00 [kworker/1:2]
user      10189  0.0  0.1  15524  2176 pts/9    Ss   07:06   0:00 bash
user      10383  0.0  0.0  10372  1192 pts/9    R+   07:09   0:00 ps aux
All run within a few seconds of each other (free -> ps aux -> cat /proc/meminfo).

Last edited by Dralnu; 05-13-2011 at 07:13 AM.
 
Old 05-13-2011, 07:18 AM   #4
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
Just rebooted and grabbed all the info from the fresh system (text-only enviroment)

free:
Code:
             total       used       free     shared    buffers     cached
Mem:       2059460     253464    1805996          0      16256      83796
-/+ buffers/cache:     153412    1906048
Swap:      2096124          0    2096124
meminfo:
Code:
MemTotal:        2059460 kB
MemFree:         1803968 kB
Buffers:           16268 kB
Cached:            83816 kB
SwapCached:            0 kB
Active:            65336 kB
Inactive:          81900 kB
Active(anon):      47160 kB
Inactive(anon):      240 kB
Active(file):      18176 kB
Inactive(file):    81660 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2096124 kB
SwapFree:        2096124 kB
Dirty:               104 kB
Writeback:             0 kB
AnonPages:         47136 kB
Mapped:            25084 kB
Shmem:               264 kB
Slab:              30604 kB
SReclaimable:      15796 kB
SUnreclaim:        14808 kB
KernelStack:         920 kB
PageTables:         2612 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3125852 kB
Committed_AS:     112104 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      288696 kB
VmallocChunk:   34359423060 kB
HardwareCorrupted:     0 kB
AnonHugePages:     10240 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       11904 kB
DirectMap2M:     2084864 kB
ps aux:
Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.7  0.0   3904   640 ?        Ss   07:13   0:00 init [3]  
root         2  0.0  0.0      0     0 ?        S    07:13   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    07:13   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/0:0]
root         5  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/u:0]
root         6  0.0  0.0      0     0 ?        S    07:13   0:00 [migration/0]
root         7  0.0  0.0      0     0 ?        S    07:13   0:00 [watchdog/0]
root         8  0.0  0.0      0     0 ?        S    07:13   0:00 [migration/1]
root         9  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/1:0]
root        10  0.0  0.0      0     0 ?        S    07:13   0:00 [ksoftirqd/1]
root        11  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/0:1]
root        12  0.0  0.0      0     0 ?        S    07:13   0:00 [watchdog/1]
root        13  0.0  0.0      0     0 ?        S<   07:13   0:00 [cpuset]
root        14  0.0  0.0      0     0 ?        S<   07:13   0:00 [khelper]
root        15  0.0  0.0      0     0 ?        S<   07:13   0:00 [netns]
root        16  0.0  0.0      0     0 ?        S    07:13   0:00 [sync_supers]
root        17  0.0  0.0      0     0 ?        S    07:13   0:00 [bdi-default]
root        18  0.0  0.0      0     0 ?        S<   07:13   0:00 [kblockd]
root        19  0.0  0.0      0     0 ?        S<   07:13   0:00 [kacpid]
root        20  0.0  0.0      0     0 ?        S<   07:13   0:00 [kacpi_notify]
root        21  0.0  0.0      0     0 ?        S<   07:13   0:00 [kacpi_hotplug]
root        22  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/1:1]
root        51  0.0  0.0      0     0 ?        S    07:13   0:00 [khungtaskd]
root        52  0.0  0.0      0     0 ?        S    07:13   0:00 [kswapd0]
root        53  0.0  0.0      0     0 ?        SN   07:13   0:00 [ksmd]
root        54  0.0  0.0      0     0 ?        SN   07:13   0:00 [khugepaged]
root        55  0.0  0.0      0     0 ?        S    07:13   0:00 [fsnotify_mark]
root        56  0.0  0.0      0     0 ?        S<   07:13   0:00 [aio]
root        57  0.0  0.0      0     0 ?        S<   07:13   0:00 [crypto]
root        59  0.0  0.0      0     0 ?        S<   07:13   0:00 [kthrotld]
root        64  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/1:2]
root       491  0.0  0.0      0     0 ?        S<   07:13   0:00 [ata_sff]
root       495  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_0]
root       496  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_1]
root       497  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_2]
root       498  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_3]
root       499  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_4]
root       500  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_5]
root       501  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/u:1]
root       502  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/u:2]
root       503  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/u:3]
root       504  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/u:4]
root       505  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/u:5]
root       506  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/u:6]
root       591  0.0  0.0      0     0 ?        S<   07:13   0:00 [md]
root       601  0.0  0.0      0     0 ?        S    07:13   0:00 [md0_raid1]
root       610  0.0  0.0      0     0 ?        S    07:13   0:00 [md1_raid5]
root       618  0.0  0.0      0     0 ?        S    07:13   0:00 [md2_raid5]
root       623  0.0  0.0      0     0 ?        S<   07:13   0:00 [kdmflush]
root       627  0.0  0.0      0     0 ?        S<   07:13   0:00 [kdmflush]
root       631  0.0  0.0      0     0 ?        S<   07:13   0:00 [kdmflush]
root       643  0.0  0.0      0     0 ?        S    07:13   0:00 [jbd2/dm-0-8]
root       644  0.0  0.0      0     0 ?        S<   07:13   0:00 [ext4-dio-unwrit]
root       684  0.0  0.0  10852  1396 ?        Ss   07:13   0:00 /sbin/udevd --daemon
root      1230  0.0  0.0      0     0 ?        S<   07:13   0:00 [kpsmoused]
root      1260  0.0  0.0  10736  1004 ?        S    07:13   0:00 /sbin/udevd --daemon
root      1261  0.0  0.0  10736  1004 ?        S    07:13   0:00 /sbin/udevd --daemon
root      1273  0.0  0.0      0     0 ?        S    07:13   0:00 [kworker/0:2]
root      1564  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_6]
root      1565  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_7]
root      1597  0.0  0.0      0     0 ?        S    07:13   0:00 [khubd]
root      1727  0.0  0.0      0     0 ?        S<   07:13   0:00 [edac-poller]
root      1814  0.0  0.0      0     0 ?        S<   07:13   0:00 [kondemand]
root      1837  0.0  0.0      0     0 ?        S<   07:13   0:00 [kvm-irqfd-clean]
root      1978  0.0  0.0      0     0 ?        S<   07:13   0:00 [hd-audio0]
root      2071  0.0  0.0      0     0 ?        S    07:13   0:00 [scsi_eh_8]
root      2072  0.0  0.0      0     0 ?        S    07:13   0:00 [usb-storage]
root      3188  0.0  0.0      0     0 ?        S    07:13   0:00 [jbd2/dm-1-8]
root      3189  0.0  0.0      0     0 ?        S<   07:13   0:00 [ext4-dio-unwrit]
root      3190  0.0  0.0      0     0 ?        S    07:13   0:00 [jbd2/dm-2-8]
root      3191  0.0  0.0      0     0 ?        S<   07:13   0:00 [ext4-dio-unwrit]
root      3194  0.0  0.0      0     0 ?        S    07:13   0:00 [jbd2/sdd1-8]
root      3195  0.0  0.0      0     0 ?        S<   07:13   0:00 [ext4-dio-unwrit]
root      3295  0.0  0.0  28352   400 ?        S    07:13   0:00 supervising syslog-ng
root      3296  0.0  0.1  57948  2968 ?        Ss   07:13   0:00 /usr/sbin/syslog-ng
root      3349  0.0  0.0   3896   608 ?        Ss   07:13   0:00 /usr/sbin/acpid
daemon    3354  0.0  0.0  10156   332 ?        Ss   07:13   0:00 /usr/sbin/atd
dbus      3361  0.0  0.0  12760   776 ?        Ss   07:13   0:00 /usr/bin/dbus-daemon --system
mpd       3374  0.0  0.3 217116  6672 ?        Ssl  07:13   0:00 /usr/bin/mpd /etc/mpd.conf
root      3379  0.0  0.0  12296   780 ?        S    07:13   0:00 /usr/sbin/smartd
root      3380  0.0  0.0      0     0 ?        S    07:13   0:00 [flush-9:0]
root      3381  0.0  0.0      0     0 ?        S    07:13   0:00 [flush-254:0]
root      3382  0.0  0.0      0     0 ?        S    07:13   0:00 [flush-254:1]
root      3383  0.0  0.0      0     0 ?        S    07:13   0:00 [flush-254:2]
root      3384  0.0  0.0      0     0 ?        S    07:13   0:00 [flush-8:48]
root      3400  0.0  0.0   8212   344 ?        Ss   07:13   0:00 /sbin/dhcpcd -q eth0
root      3442  0.0  0.0  45584  1276 tty1     Ss   07:13   0:00 /bin/login --    
root      3443  0.0  0.0   3900   592 tty2     Ss+  07:13   0:00 /sbin/agetty -8 38400 tty2 linux
root      3444  0.0  0.0   3900   588 tty3     Ss+  07:13   0:00 /sbin/agetty -8 38400 tty3 linux
root      3445  0.0  0.0   3900   592 tty4     Ss+  07:13   0:00 /sbin/agetty -8 38400 tty4 linux
root      3446  0.0  0.0   3900   588 tty5     Ss+  07:13   0:00 /sbin/agetty -8 38400 tty5 linux
root      3447  0.0  0.0   3900   592 tty6     Ss+  07:13   0:00 /sbin/agetty -8 38400 tty6 linux
root      3463  0.0  0.0  18256   888 ?        Ss   07:13   0:00 /usr/sbin/ntpd
ntp       3464  0.0  0.0  14044   820 ?        S    07:13   0:00 /usr/sbin/ntpd
root      3468  0.0  0.0   5996   668 ?        Ss   07:13   0:00 /usr/sbin/crond -S -l info
privoxy   3470  0.0  0.0  15144  1096 ?        Ss   07:13   0:00 /usr/sbin/privoxy --user privoxy privoxy --pidfile /var/run/privoxy.pid /etc/privoxy/config
user       3473  0.0  0.0   8044   592 ?        Ss   07:13   0:00 dtach -n /tmp/rtorrent.dtach /usr/bin/rtorrent
user       3475  1.4  0.9 162884 19084 pts/0    Ss+  07:13   0:01 /usr/bin/rtorrent
bitlbee   3476  0.0  0.0  35528  1000 ?        Ss   07:13   0:00 /usr/sbin/bitlbee -F
user       3493  0.0  0.1  15624  2256 tty1     S    07:13   0:00 -bash
user       3501  2.0  1.0  49332 21496 tty1     S+   07:13   0:01 fbterm
user       3503  0.0  0.1  15624  2212 pts/1    Ss   07:13   0:00 /bin/bash
user       3506  0.0  0.0  15340  1016 pts/1    S+   07:13   0:00 tmux
user       3508  0.2  0.0  17704  1672 ?        Ss   07:13   0:00 tmux
user       3510  0.0  0.1  15624  2224 pts/2    Ss   07:13   0:00 -bash
user       3520  0.0  0.1  15624  2228 pts/3    Ss   07:14   0:00 -bash
user       3527  0.0  0.1  15624  2224 pts/4    Ss   07:14   0:00 -bash
user       3538  1.7  0.0  11316  1544 pts/4    S+   07:14   0:00 htop
user       3539  1.3  0.5  91256 10936 pts/3    S+   07:14   0:00 weechat-curses
bitlbee   3541  0.1  0.1  40276  3656 ?        S    07:14   0:00 /usr/sbin/bitlbee -F
user       3542  0.0  0.1  24480  2252 pts/2    S+   07:14   0:00 ncmpc
user       3544  0.1  0.1  15624  2244 pts/5    Ss   07:14   0:00 -bash
user       3556  0.0  0.0  10372  1188 pts/5    R+   07:15   0:00 ps aux

Last edited by Dralnu; 05-13-2011 at 07:23 AM.
 
Old 05-13-2011, 07:26 AM   #5
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
The situation that brought up my posting is that last night I noticed a rather high RAM (~50%) usage while doing very little on the system (fbterm, tmux, weechat-curses, ncmpc) and after rebooting (and seeing a RAM usage around the 150-160MB range) left the system sit overnight unused to return and see that RAM usage was nearly 50% yet again.
 
Old 05-13-2011, 07:34 AM   #6
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,968

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by Dralnu View Post
Meminfo:
That looks more informative than what I have on my systems. I guess you're using a newer kernel than I have. I wish I knew where those extra details were documented, because I'm not 100% sure what each line means.

But the important part is pretty obvious:

Code:
Slab:             750776 kB
SReclaimable:     734620 kB
In case you don't know, those "slab" statistics describe memory used inside the kernel. There are several kinds of cache with slab memory. The fact that almost all your slab use is "Reclaimable" indicates that it is some kind(s) of cache. Any caching in slab memory is not included when free reports the amount of "cache".

I don't know how reclaimable that "Reclaimable" slab memory actually is. I assume that with memory pressure it could be reclaimed for use as other kinds of slab memory. But can it be reclaimed all the way out of the kernel and used as user memory? I don't know.

You could gain some understanding by looking in /proc/slabinfo and see which use is absurdly high.

As I understand slabinfo, to get the size reported by any line, you multiply the last number before the first colon by the second to last number at the end, and multiply that by 4KB. For example on my system (look at the two numbers I marked in red in this line):
Code:
ext3_inode_cache  2982787 2982810    760    5    1 : tunables   54   27    8 : slabdata 596562 596562      0
That shows the ext3_inode_cache on my system is using 2386248KB

It would be interesting to run a program that makes heavy use of memory and see if that program forces some of the reclaimable slab memory all the way out of the kernel and into use space.

Last edited by johnsfine; 05-13-2011 at 07:52 AM.
 
Old 05-13-2011, 08:23 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,806

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Use slabtop - much easier.
 
1 members found this post helpful.
Old 05-13-2011, 08:42 AM   #8
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
Kernel is 2.6.38.6, just so you know.

Here is slab info.

Code:
slabinfo - version: 2.1
# name            <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
UDPLITEv6              0      0   1024   16    4 : tunables    0    0    0 : slabdata      0      0      0
UDPv6                 32     32   1024   16    4 : tunables    0    0    0 : slabdata      2      2      0
tw_sock_TCPv6         16     16    256   16    1 : tunables    0    0    0 : slabdata      1      1      0
TCPv6                 34     34   1856   17    8 : tunables    0    0    0 : slabdata      2      2      0
nf_conntrack_ffffffff818d9fc0    146    156    312   26    2 : tunables    0    0    0 : slabdata      6      6      0
ext2_inode_cache      39     57    848   19    4 : tunables    0    0    0 : slabdata      3      3      0
kvm_async_pf           0      0    144   28    1 : tunables    0    0    0 : slabdata      0      0      0
kvm_vcpu               0      0  14056    2    8 : tunables    0    0    0 : slabdata      0      0      0
kvm_pte_chain          0      0     56   73    1 : tunables    0    0    0 : slabdata      0      0      0
nv_stack_t            30     30  12288    2    8 : tunables    0    0    0 : slabdata     15     15      0
ext4_groupinfo_2k  27330  27330    136   30    1 : tunables    0    0    0 : slabdata    911    911      0
ext4_inode_cache  475194 493595    960   17    4 : tunables    0    0    0 : slabdata  29035  29035      0
ext4_xattr             0      0     88   46    1 : tunables    0    0    0 : slabdata      0      0      0
ext4_free_data       146    146     56   73    1 : tunables    0    0    0 : slabdata      2      2      0
ext4_allocation_context     56     56    144   28    1 : tunables    0    0    0 : slabdata      2      2      0
ext4_io_end            0      0   1128   29    8 : tunables    0    0    0 : slabdata      0      0      0
jbd2_journal_handle    340    340     24  170    1 : tunables    0    0    0 : slabdata      2      2      0
jbd2_journal_head     86    324    112   36    1 : tunables    0    0    0 : slabdata      9      9      0
jbd2_revoke_table    512    512     16  256    1 : tunables    0    0    0 : slabdata      2      2      0
jbd2_revoke_record    256    256     32  128    1 : tunables    0    0    0 : slabdata      2      2      0
raid5-md1            525    525    640   25    4 : tunables    0    0    0 : slabdata     21     21      0
dm_uevent              0      0   2608   12    8 : tunables    0    0    0 : slabdata      0      0      0
dm_rq_target_io        0      0    392   20    2 : tunables    0    0    0 : slabdata      0      0      0
cfq_queue            152    153    240   17    1 : tunables    0    0    0 : slabdata      9      9      0
bsg_cmd                0      0    312   26    2 : tunables    0    0    0 : slabdata      0      0      0
mqueue_inode_cache     17     17    960   17    4 : tunables    0    0    0 : slabdata      1      1      0
hugetlbfs_inode_cache     24     24    656   24    4 : tunables    0    0    0 : slabdata      1      1      0
dquot                  0      0    256   16    1 : tunables    0    0    0 : slabdata      0      0      0
kioctx                21     21    384   21    2 : tunables    0    0    0 : slabdata      1      1      0
dnotify_mark         270    270    136   30    1 : tunables    0    0    0 : slabdata      9      9      0
pid_namespace          0      0   2112   15    8 : tunables    0    0    0 : slabdata      0      0      0
user_namespace         0      0   1072   30    8 : tunables    0    0    0 : slabdata      0      0      0
posix_timers_cache      0      0    176   23    1 : tunables    0    0    0 : slabdata      0      0      0
UDP-Lite               0      0    832   19    4 : tunables    0    0    0 : slabdata      0      0      0
xfrm_dst_cache         0      0    448   18    2 : tunables    0    0    0 : slabdata      0      0      0
ip_fib_hash           46     46     88   46    1 : tunables    0    0    0 : slabdata      1      1      0
arp_cache            253    450    320   25    2 : tunables    0    0    0 : slabdata     18     18      0
RAW                   94     95    832   19    4 : tunables    0    0    0 : slabdata      5      5      0
UDP                   38     38    832   19    4 : tunables    0    0    0 : slabdata      2      2      0
tw_sock_TCP           42     42    192   21    1 : tunables    0    0    0 : slabdata      2      2      0
TCP                   49     76   1664   19    8 : tunables    0    0    0 : slabdata      4      4      0
blkdev_queue          36     36   1752   18    8 : tunables    0    0    0 : slabdata      2      2      0
blkdev_requests       98    115    352   23    2 : tunables    0    0    0 : slabdata      5      5      0
sock_inode_cache     151    230    704   23    4 : tunables    0    0    0 : slabdata     10     10      0
file_lock_cache       44     44    184   22    1 : tunables    0    0    0 : slabdata      2      2      0
net_namespace          0      0   2560   12    8 : tunables    0    0    0 : slabdata      0      0      0
shmem_inode_cache   1390   1425    848   19    4 : tunables    0    0    0 : slabdata     75     75      0
Acpi-ParseExt       2693   2912     72   56    1 : tunables    0    0    0 : slabdata     52     52      0
Acpi-Namespace      2197   2448     40  102    1 : tunables    0    0    0 : slabdata     24     24      0
task_delay_info      185    288    112   36    1 : tunables    0    0    0 : slabdata      8      8      0
taskstats             48     48    328   24    2 : tunables    0    0    0 : slabdata      2      2      0
proc_inode_cache     505    736    688   23    4 : tunables    0    0    0 : slabdata     32     32      0
sigqueue              50     50    160   25    1 : tunables    0    0    0 : slabdata      2      2      0
bdev_cache            36     36    896   18    4 : tunables    0    0    0 : slabdata      2      2      0
sysfs_dir_cache    25186  25194     80   51    1 : tunables    0    0    0 : slabdata    494    494      0
inode_cache         3095   4125    640   25    4 : tunables    0    0    0 : slabdata    165    165      0
dentry            110793 119511    192   21    1 : tunables    0    0    0 : slabdata   5691   5691      0
buffer_head       110538 152646    104   39    1 : tunables    0    0    0 : slabdata   3914   3914      0
vm_area_struct      3882   3960    184   22    1 : tunables    0    0    0 : slabdata    180    180      0
mm_struct             71    108    896   18    4 : tunables    0    0    0 : slabdata      6      6      0
files_cache           77    138    704   23    4 : tunables    0    0    0 : slabdata      6      6      0
signal_cache         146    240   1088   30    8 : tunables    0    0    0 : slabdata      8      8      0
sighand_cache        129    180   2112   15    8 : tunables    0    0    0 : slabdata     12     12      0
task_struct          167    234   1776   18    8 : tunables    0    0    0 : slabdata     13     13      0
anon_vma            2303   2346     40  102    1 : tunables    0    0    0 : slabdata     23     23      0
shared_policy_node   3640   3910     48   85    1 : tunables    0    0    0 : slabdata     46     46      0
numa_policy         1108   1190     24  170    1 : tunables    0    0    0 : slabdata      7      7      0
radix_tree_node    24276  24360    568   28    4 : tunables    0    0    0 : slabdata    870    870      0
idr_layer_cache      360    360    544   30    4 : tunables    0    0    0 : slabdata     12     12      0
dma-kmalloc-8192       0      0   8192    4    8 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-4096       0      0   4096    8    8 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-2048       0      0   2048   16    8 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-1024       0      0   1024   16    4 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-512       16     16    512   16    2 : tunables    0    0    0 : slabdata      1      1      0
dma-kmalloc-256        0      0    256   16    1 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-128        0      0    128   32    1 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-64         0      0     64   64    1 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-32         0      0     32  128    1 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-16         0      0     16  256    1 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-8          0      0      8  512    1 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-192        0      0    192   21    1 : tunables    0    0    0 : slabdata      0      0      0
dma-kmalloc-96         0      0     96   42    1 : tunables    0    0    0 : slabdata      0      0      0
kmalloc-8192          52     52   8192    4    8 : tunables    0    0    0 : slabdata     13     13      0
kmalloc-4096         240    240   4096    8    8 : tunables    0    0    0 : slabdata     30     30      0
kmalloc-2048         405    416   2048   16    8 : tunables    0    0    0 : slabdata     26     26      0
kmalloc-1024        1007   1088   1024   16    4 : tunables    0    0    0 : slabdata     68     68      0
kmalloc-512          823    848    512   16    2 : tunables    0    0    0 : slabdata     53     53      0
kmalloc-256          393    432    256   16    1 : tunables    0    0    0 : slabdata     27     27      0
kmalloc-128         1345   2016    128   32    1 : tunables    0    0    0 : slabdata     63     63      0
kmalloc-64         11554  11904     64   64    1 : tunables    0    0    0 : slabdata    186    186      0
kmalloc-32          1106   1152     32  128    1 : tunables    0    0    0 : slabdata      9      9      0
kmalloc-16          3834   3840     16  256    1 : tunables    0    0    0 : slabdata     15     15      0
kmalloc-8           6569   6656      8  512    1 : tunables    0    0    0 : slabdata     13     13      0
kmalloc-192         3384   3528    192   21    1 : tunables    0    0    0 : slabdata    168    168      0
kmalloc-96           916    924     96   42    1 : tunables    0    0    0 : slabdata     22     22      0
kmem_cache            42     42    192   21    1 : tunables    0    0    0 : slabdata      2      2      0
kmem_cache_node      192    192     64   64    1 : tunables    0    0    0 : slabdata      3      3      0
Looks like ext4_inode_cache is the chief culprit.
 
Old 05-13-2011, 09:16 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,806

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
As I said, use "slabtop -o" and dump it into a file.
I don't use ext4 a lot anymore, especially on arch, but on this F14 system which has a mix of ext3, ext4 (/home) and btrfs, the ext4 slabs hardly register.
But it's an older kernel.
 
Old 05-13-2011, 09:20 AM   #10
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,968

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by syg00 View Post
Use slabtop - much easier.
Thanks. After a quick look at man slaptop, I'll refine your suggestion. Use:

Code:
slaptop -sc
Edit: I tried -o with slabtop and can't get useful output (maybe a more current version is more useful). Whether redirected to a file or not, it puts in ESC sequences that delete the text from the screen immediately when displayed. So cat the resulting file erases what it displays and you see nothing. less the file lets you see it but garbled.

Quote:
Originally Posted by Dralnu View Post
Looks like ext4_inode_cache is the chief culprit.
If this inode cache releases memory all the way to user mode if necessary under memory pressure, then it is not a "culprit". The "culprit" is free not including this kind of reclaimable memory in its -/+ buffer/cache computation.

As long as the memory isn't being used for anything else, using it for inode caching is a very desirable behavior.

Last edited by johnsfine; 05-13-2011 at 09:33 AM.
 
Old 05-13-2011, 10:26 AM   #11
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by johnsfine
If this inode cache releases memory all the way to user mode if necessary under memory pressure, then it is not a "culprit". The "culprit" is free not including this kind of reclaimable memory in its -/+ buffer/cache computation.
There is truth to this. I will have to look into how the kernel (and probably ext4 specifically) handles memory pressure.

Just for fun, slabtop -o output. slabtop -sc > file.txt never exits and such makes it difficult to dump to a file.

Code:
 Active / Total Objects (% used)    : 752931 / 881576 (85.4%)
 Active / Total Slabs (% used)      : 40052 / 40052 (100.0%)
 Active / Total Caches (% used)     : 69 / 97 (71.1%)
 Active / Total Size (% used)       : 439069.01K / 475662.52K (92.3%)
 Minimum / Average / Maximum Object : 0.01K / 0.54K / 13.73K

  OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME                   
431229 410779  95%    0.94K  25371       17    405936K ext4_inode_cache       
176202 132863  75%    0.10K   4518       39     18072K buffer_head            
141015  87536  62%    0.19K   6715       21     26860K dentry                 
 27330  27330 100%    0.13K    911       30      3644K ext4_groupinfo_2k      
 25194  25186  99%    0.08K    494       51      1976K sysfs_dir_cache        
 18688  13197  70%    0.06K    292       64      1168K kmalloc-64             
 12292  10096  82%    0.55K    439       28      7024K radix_tree_node        
  6656   6568  98%    0.01K     13      512        52K kmalloc-8              
  4125   3388  82%    0.62K    165       25      2640K inode_cache            
  3982   3935  98%    0.18K    181       22       724K vm_area_struct         
  3840   3834  99%    0.02K     15      256        60K kmalloc-16             
  3654   3559  97%    0.19K    174       21       696K kmalloc-192            
  3570   3115  87%    0.05K     42       85       168K shared_policy_node     
  2912   2682  92%    0.07K     52       56       208K Acpi-ParseExt          
  2448   2250  91%    0.04K     24      102        96K Acpi-Namespace         
  2346   2268  96%    0.04K     23      102        92K anon_vma               
  1984   1368  68%    0.12K     62       32       248K kmalloc-128            
  1425   1393  97%    0.83K     75       19      1200K shmem_inode_cache      
  1190   1108  93%    0.02K      7      170        28K numa_policy            
  1152   1106  96%    0.03K      9      128        36K kmalloc-32             
  1120   1010  90%    1.00K     70       16      1120K kmalloc-1024           
   924    920  99%    0.09K     22       42        88K kmalloc-96             
   864    775  89%    0.50K     54       16       432K kmalloc-512            
   529    514  97%    0.67K     23       23       368K proc_inode_cache       
   525    525 100%    0.62K     21       25       336K raid5-md1              
   512    512 100%    0.02K      2      256         8K jbd2_revoke_table      
   448    394  87%    0.25K     28       16       112K kmalloc-256            
   400    395  98%    2.00K     25       16       800K kmalloc-2048           
   360    335  93%    0.53K     12       30       192K idr_layer_cache        
   340    340 100%    0.02K      2      170         8K jbd2_journal_handle    
   325    306  94%    0.31K     13       25       104K arp_cache              
   288    184  63%    0.11K      8       36        32K task_delay_info        
   270    270 100%    0.13K      9       30        36K dnotify_mark           
   256    256 100%    0.03K      2      128         8K jbd2_revoke_record     
   240    150  62%    1.06K      8       30       256K signal_cache           
   234    169  72%    1.73K     13       18       416K task_struct            
   207    150  72%    0.69K      9       23       144K sock_inode_cache       
   200    191  95%    4.00K     25        8       800K kmalloc-4096           
   195    137  70%    2.06K     13       15       416K sighand_cache          
   192    192 100%    0.06K      3       64        12K kmem_cache_node        
   182    151  82%    0.30K      7       26        56K nf_conntrack_ffffffff818d9fc0
   170    165  97%    0.23K     10       17        40K cfq_queue              
   146    146 100%    0.05K      2       73         8K ext4_free_data         
   144     84  58%    0.11K      4       36        16K jbd2_journal_head      
   138     77  55%    0.69K      6       23        96K files_cache            
   115     98  85%    0.34K      5       23        40K blkdev_requests        
   108     66  61%    0.88K      6       18        96K mm_struct              
    95     85  89%    0.81K      5       19        80K RAW                    
    76     48  63%    1.62K      4       19       128K TCP                    
    63     50  79%    0.19K      3       21        12K tw_sock_TCP            
    56     56 100%    0.14K      2       28         8K ext4_allocation_context
    52     51  98%    8.00K     13        4       416K kmalloc-8192           
    50     50 100%    0.16K      2       25         8K sigqueue               
    48     48 100%    0.32K      2       24        16K taskstats              
    46     46 100%    0.09K      1       46         4K ip_fib_hash            
    44     44 100%    0.18K      2       22         8K file_lock_cache        
    42     42 100%    0.19K      2       21         8K kmem_cache             
    38     38 100%    0.81K      2       19        32K UDP                    
    38     38 100%    0.83K      2       19        32K ext2_inode_cache       
    36     36 100%    0.88K      2       18        32K bdev_cache             
    36     36 100%    1.71K      2       18        64K blkdev_queue           
    34     34 100%    1.81K      2       17        64K TCPv6                  
    32     32 100%    1.00K      2       16        32K UDPv6                  
    30     30 100%   12.00K     15        2       480K nv_stack_t             
    24     24 100%    0.64K      1       24        16K hugetlbfs_inode_cache  
    21     21 100%    0.38K      1       21         8K kioctx                 
    17     17 100%    0.94K      1       17        16K mqueue_inode_cache     
    16     16 100%    0.50K      1       16         8K dma-kmalloc-512        
    16     16 100%    0.25K      1       16         4K tw_sock_TCPv6          
     0      0   0%    0.09K      0       42         0K dma-kmalloc-96         
     0      0   0%    0.19K      0       21         0K dma-kmalloc-192        
     0      0   0%    0.01K      0      512         0K dma-kmalloc-8
 
Old 05-13-2011, 10:44 AM   #12
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
I can saw with certainty that the inode_cache is cleared quite efficently. Tested using firefox and an apparent bug in it that managed to suck up not only most of my RAM, but started into swap.

Thanks for the help folks.
 
Old 05-13-2011, 07:27 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,806

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
From your first "ps" output I was going to mention firefox was a hog, but how is that news to anyone ?.
Allocating truckloads of (userspace) memory shouldn't necessarily translate into inordinate slab cache usage. You'd have to try real hard to have that happen. Lots (and I mean *lots*) of (temporary ?) files maybe.
With the slub allocator, slab pages are consolidated/released much more efficiently, so that would explain the clean-up once firefox went away.

Note that free (or any other userspace tool) can't report these slab caches - they aren't exposed except via slabinfo. They are not (directly) part of the (page) cache.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Excessive band-width usage = Major Problem! TheNewGuy2936 Linux - Security 14 04-27-2011 08:23 AM
Excessive RAM/swap usage Jinouchi Linux - Software 10 03-09-2009 09:59 AM
Excessive RAM usage on boot - unnecessary modules? Jinouchi Linux - Newbie 17 01-15-2009 03:30 PM
Excessive CPU Usage Smarajit Linux - Newbie 2 04-11-2007 11:02 AM
After upgrade, excessive RAM usage kuratkull Debian 2 11-05-2006 04:26 AM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration