D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] X eating 300Mb (and other memory problems)

 

I'm a little confused about the memory usage on my laptop (or maybe I 
just can't add). Here are the first few lines from top, sorted by memory 
usage:

Mem:    511616k total,   379724k used,   131892k free,    12284k buffers
Swap:  1036152k total,     1244k used,  1034908k free,   233320k cached

   PID USER      NI S  VIRT  RES SWAP %CPU %MEM    TIME+  COMMAND
29070 simon      0 S  154m  52m 101m  0.0 10.4   0:28.43 firefox-bin
29110 simon      0 S  151m  47m 104m  0.0  9.4   0:12.80 thunderbird-bin
28735 root       0 R  313m  17m 295m  0.5  3.6   0:14.46 X
29046 simon      0 S 34968  15m  18m  0.0  3.2   0:00.49 konqueror
29052 simon      0 S 34968  15m  18m  0.0  3.2   0:00.48 konqueror
28963 simon      0 S 33004  13m  18m  0.0  2.8   0:00.98 uim-toolbar-gtk
29031 simon      0 S 32612  13m  18m  0.2  2.8   0:02.14 kicker
29054 simon      0 R 28312  13m  14m  0.2  2.7   0:01.01 yakuake
29019 simon      0 S 32208  12m  19m  0.0  2.5   0:00.87 kded
29029 simon      0 S 29044  12m  16m  0.0  2.5   0:01.65 kdesktop
29027 simon      0 S 28996  11m  17m  0.0  2.2   0:01.35 kwin
29055 simon      0 S 27224  10m  16m  0.0  2.0   0:00.19 krandrtray
29034 simon      0 S 28012 9904  17m  0.0  1.9   0:00.30 kxkb
29098 simon      0 S 32988 8904  23m  0.0  1.7   0:00.11 knotify
29026 simon      0 S 26288 7592  18m  0.0  1.5   0:00.06 ksmserver
28827 simon      0 S 27900 6076  21m  0.0  1.2   0:00.07 klauncher
29056 simon      0 S 26504 6068  19m  0.0  1.2   0:00.06 kalarmd
29017 simon      0 S 26736 6008  20m  0.0  1.2   0:00.06 klauncher

Just to clarify: VIRT = RES + SWAP, right?
Now, the last time I checked, 154 + 151 + 313 = 618, which is a lot than 
the 380 shown in the summary, and that's just taking the first 3 lines, 
never mind the countless other processes using up to 35Mb each.
Can anyone explain how 600Mb-1Gb of processes fit into 380Mb of RAM?

I know firefox and thunderbird are memory hogs- they eat 150Mb on every 
system I use them on, but X usually takes 50Mb at most- not the 300 odd 
I get on this system. I tried logging out and restarting X, but even 
with no-one logged in it shows as 260Mb or more.

As an aside, why on earth does krandrtray use 27Mb? It doesn't even do 
anything except call xrandr!

Any ideas?
Thanks
Simon

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html