FS#4413 - memory leak with kernel 2.16.2 & gnome 2.14

Attached to Project: Arch Linux
Opened by Benoit C (benoitc) - Saturday, 08 April 2006, 22:51 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 09 April 2006, 07:10 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Just noticed that all RAM & swap are used on my system with just gnome 2.14, firefox & gnome-terminal loaded :

[benoitc@marduk ~]$ free -m
total used free shared buffers cached
Mem: 1011 982 28 0 30 62
-/+ buffers/cache: 889 121
Swap: 1427 1254 172

top - 00:29:11 up 1:57, 1 user, load average: 0.34, 0.87, 1.58
Tasks: 100 total, 1 running, 99 sleeping, 0 stopped, 0 zombie
Cpu(s): 8.8% us, 4.5% sy, 3.5% ni, 77.9% id, 4.3% wa, 0.6% hi, 0.5% si
Mem: 1035492k total, 1015368k used, 20124k free, 33160k buffers
Swap: 1461904k total, 1283044k used, 178860k free, 67916k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4835 benoitc 15 0 128m 44m 8944 S 2.0 4.4 4:21.24 firefox-bin
4854 benoitc 15 0 33100 9m 6772 S 2.0 1.0 0:00.62 gnome-terminal
6400 benoitc 15 0 1960 952 708 R 2.0 0.1 0:00.01 top
1 root 16 0 1472 360 340 S 0.0 0.0 0:01.19 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.46 events/0
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
9 root 10 -5 0 0 0 S 0.0 0.0 0:01.44 kblockd/0
10 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
170 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
169 root 15 0 0 0 0 S 0.0 0.0 0:09.96 kswapd0
245 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 kseriod
292 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
956 root 17 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
This task depends upon

Closed by  arjan timmerman (blaasvis)
Tuesday, 11 April 2006, 21:44 GMT
Reason for closing:  Fixed
Comment by Gabriel Linder (raskolnikov) - Sunday, 09 April 2006, 12:39 GMT
Same config and same problem here. Switching from gnome-term to xterm helps a little (gnome term eats a lot of ram quickly), as do firefox even without flash/java. I removed things I do not really use yesterday (such as Beagle) but it doesn't help, too.
Comment by Jan de Groot (JGC) - Sunday, 09 April 2006, 13:28 GMT
Please post a view of top sorted by memory usage (shift-M)

I can't reproduce it here. I have both KDE and Gnome running at this moment, amarok playing with GStreamer engine over the network using ESD, gdm handling 2 login sessions, lots of firefoxes and epiphanies open, several gnome-terminals open, some nautilus views, running IE6 in wine, editing some simple images with gimp, beagle indexing my harddrive without having extended attributes enabled, etc etc:

total used free shared buffers cached
Mem: 1011 905 105 0 45 419
-/+ buffers/cache: 439 571
Swap: 486 0 486

Also, your gnome-terminal and firefox don't show up as big resource hogs, the memory allocated to your swap can no way be allocated to firefox/gnome-terminal, as they have small values for RSS and virt.
Comment by Gabriel Linder (raskolnikov) - Sunday, 09 April 2006, 13:50 GMT
I used some tweaks on firefox to limit its memory, so this is not accurate with what I had yesterday... Anyway, here are my actual outputs :

$ free -m
total used free shared buffers cached
Mem: 439 431 7 0 25 97
-/+ buffers/cache: 309 130
Swap: 729 98 630

(I had a lot more swap used yesterday)

$ top
top - 15:39:21 up 1 day, 14:16, 0 users, load average: 0.53, 0.33, 0.22
Tasks: 101 total, 1 running, 100 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.0% us, 0.8% sy, 0.0% ni, 92.5% id, 0.5% wa, 0.2% hi, 0.0% si
Mem: 450288k total, 440648k used, 9640k free, 25280k buffers
Swap: 746980k total, 101356k used, 645624k free, 98440k cached
top - 15:40:52 up 1 day, 14:18, 0 users, load average: 0.27, 0.28, 0.21
Tasks: 101 total, 4 running, 97 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.9% us, 1.0% sy, 0.0% ni, 94.1% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 450288k total, 442100k used, 8188k free, 25624k buffers
Swap: 746980k total, 101356k used, 645624k free, 99456k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2570 dargor 0 0 176m 96m 16m S 0.0 21.9 48:24.46 firefox-bin
2463 root 0 -1 221m 96m 8868 R 3.0 21.9 75:22.14 X
2597 dargor 0 0 108m 22m 9.9m S 0.0 5.1 0:27.81 thunderbird-bin
2509 dargor 0 0 65092 18m 10m S 0.0 4.3 0:21.46 nautilus
6034 dargor 0 0 56608 18m 11m S 0.0 4.1 0:26.68 bluefish
5930 dargor 0 0 50848 15m 9540 S 1.0 3.5 0:49.37 xchat
2521 dargor 0 0 44920 13m 8264 S 0.0 3.0 0:55.11 wnck-applet
2507 dargor 0 0 21436 10m 7656 S 0.0 2.4 0:22.62 gnome-panel
2503 dargor 0 0 38000 10m 6800 S 0.0 2.3 1:46.70 metacity
2368 root 0 0 19812 9m 4416 S 0.0 2.3 0:01.29 httpd
2526 dargor 0 0 33256 9784 7560 S 0.0 2.2 2:26.32 clock-applet
2537 dargor 0 0 55000 8872 6904 S 0.0 2.0 0:06.32 gweather-applet
2501 dargor 0 0 30180 8812 6804 S 0.0 2.0 0:36.66 gnome-settings-
2542 dargor 0 0 19344 8644 6648 R 0.0 1.9 0:45.10 stickynotes_app
5158 nobody 9 0 19812 8524 2632 S 0.0 1.9 0:00.00 httpd
5159 nobody 12 0 19812 8428 2564 S 0.0 1.9 0:00.00 httpd
6040 nobody 0 0 19812 8428 2560 S 0.0 1.9 0:00.00 httpd
Comment by arjan timmerman (blaasvis) - Monday, 10 April 2006, 08:34 GMT
beagle seems to have it share of problems, are you running beagle ?
Comment by Benoit C (benoitc) - Monday, 10 April 2006, 11:06 GMT
I uninstalled beagle and same problem. It seems that the problem occurs when you launch pacman in the terminal. The memory isn't free. Situations looks better since last upgrade of gnome-terminal. I don't know if it's related anyway. What kind of test could I do to help you ?
Comment by arjan timmerman (blaasvis) - Tuesday, 11 April 2006, 16:40 GMT
it seems a lot of mem leak fixes went into gnome 2.14.1 :)

try updating and see if it is fixed
Comment by Benoit C (benoitc) - Tuesday, 11 April 2006, 20:40 GMT
seems to work better yes :-) think bug could be close. Thanks

Loading...