Summary: | gnome-base/gnome-shell-3.2.1-r3 needs a lot of memory, feature or bug? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | jlec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugzilla.gnome.org/show_bug.cgi?id=642652 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 436384 | ||
Attachments: | The result of 'cat /proc/`pidof gnome-shell`/smaps > proc_pidof-gnome-shell_smaps.txt' |
Description
Juergen Rose
2012-01-20 09:33:00 UTC
These numbers don't tell much. Content of /proc/`pidof gnome-shell`/smaps while it has a lot of RSS would be much more useful to look at. That said, I noticed a few memory leak fixes going into 3.2.2, but supposedly small (and smaps should show the lots of memory is under [heap] then). Hello Mart, Thanks for your comment. If I understand the output of /proc/`pidof gnome-shell`/smaps (ca. 492 KB) correctly, the largest components (with respect to Size) are: 023a4000-1720b000 rw-p 00000000 00:00 0 [heap] Size: 342428 kB Rss: 336012 kB and 7fbc9dd17000-7fbca4000000 r--p 00000000 fe:00 1228814 /usr/share/icons/hicolor/icon-theme.cache Size: 101284 kB Rss: 148 kB The largest componenents (witht respect to Rss) are: 023a4000-1720b000 rw-p 00000000 00:00 0 [heap] Size: 342428 kB Rss: 336012 kB 7fbcac000000-7fbcb0000000 rw-p 00000000 00:00 0 Size: 65536 kB Rss: 65444 kB 7fbcc0000000-7fbcc4000000 rw-p 00000000 00:00 0 Size: 65536 kB Rss: 65420 kB 7fbccc000000-7fbcd0000000 rw-p 00000000 00:00 0 Size: 65536 kB Rss: 65188 kB 7fbcec000000-7fbcf0000000 rw-p 00000000 00:00 0 Size: 65536 kB Rss: 65456 kB But I can't assess, whether this is normal or not. Created attachment 299387 [details]
The result of 'cat /proc/`pidof gnome-shell`/smaps > proc_pidof-gnome-shell_smaps.txt'
BTW., the system is a laptop, where 'uptime' says that the laptop is already 8 days running. But in these 8 days the system was in several sleeping states as 'suspend to ram' or 'suspend do disk'. On a second system (desktop) with an uptime of 3 days I get similar memory values for gnome-shell: op - 13:41:04 up 3 days, 19:43, 14 users, load average: 0.01, 0.10, 0.13 Tasks: 220 total, 1 running, 219 sleeping, 0 stopped, 0 zombie Cpu(s): 3.2%us, 1.8%sy, 0.0%ni, 94.3%id, 0.6%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 8168096k total, 7298540k used, 869556k free, 656760k buffers Swap: 33575840k total, 54852k used, 33520988k free, 3500416k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5032 root 20 0 252m 119m 4136 S 7 1.5 80:43.84 Xorg 20446 rose 20 0 1534m 436m 31m S 6 5.5 59:40.97 firefox 6223 rose 20 0 1727m 683m 25m S 6 8.6 123:56.78 gnome-shell root@moose:/home/rose/ISOs(48)# cat /proc/`pidof gnome-shell`/smaps ... 0243c000-0fa55000 rw-p 00000000 00:00 0 [heap] Size: 219236 kB Rss: 218620 kB ... 7fa129be9000-7fa130000000 r--p 00000000 fd:00 5158636 /usr/share/icons/hicolor/icon-theme.cache Size: 102492 kB Rss: 2528 kB ... 7fa138000000-7fa13c000000 rw-p 00000000 00:00 0 Size: 65536 kB Rss: 65536 kB ... Please try mutter-3.2.2 and gnome-shell-3.2.2.1, they should fix some memory leaks. (In reply to comment #5) > Please try mutter-3.2.2 and gnome-shell-3.2.2.1, they should fix some memory > leaks. It seems me, that I still have the issue. gnome-shell needs not as much memory as before, but it still needs a lot of memory: rose@lynx:/home/rose(3)$ qlist -Iv mutter x11-wm/mutter-3.2.2 rose@lynx:/home/rose(4)$ qlist -Iv gnome-shell app-admin/eselect-gnome-shell-extensions-20111211 gnome-base/gnome-shell-3.2.2.1 gnome-extra/gnome-shell-extensions-3.2.2 gnome-extra/gnome-shell-frippery-0.3.6 gnome-shell needs more 1.3GB virtual memory and 220 GB residental memory: Top shows PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 29971 rose 20 0 1312m 227m 25m S 1.3 5.8 7:03.52 gnome-shell From /proc/`pidof gnome-shell`/smaps I see that icon-theme.cache needs more than 100 MB: 00ab6000-069dc000 rw-p 00000000 00:00 0 [heap] Size: 97432 kB Rss: 96872 kB ... 7ff7bdd2f000-7ff7c4000000 r--p 00000000 fe:00 2915148 /usr/share/icons/hicolor/icon-theme.cache Size: 101188 kB Rss: 12 kB ... 7ff7dcfc7000-7ff7e1600000 r--p 00000000 fe:00 1236994 /usr/share/icons/gnome/icon-theme.cache Size: 71908 kB Rss: 1936 kB ... 7ff7e7ffe000-7ff7ebfff000 rw-s 00000000 00:13 14732112 /dev/shm/pulse-shm-2652673977 Size: 65540 kB Rss: 148 kB ... 7ff7f0000000-7ff7f1fcb000 rw-p 00000000 00:00 0 Size: 32556 kB Rss: 32556 kB (In reply to comment #7) > It seems me, that I still have the issue. gnome-shell needs not as much memory > as before, but it still needs a lot of memory At least there is some improvement. I don't think anyone on the gentoo gnome team understands gnome-shell and mutter internals well enough to find remaining memory leaks on their own, so you should probably talk directly to upstream. There are already two upstream bugs filed about abnormal gnome-shell memory usage: https://bugzilla.gnome.org/show_bug.cgi?id=642652 and https://bugzilla.gnome.org/show_bug.cgi?id=665678 > From /proc/`pidof gnome-shell`/smaps I see that icon-theme.cache needs more > than 100 MB: No, it's using only 12 kB, look at the rss line :) Now gnome-shell needs more than 2GB of resident memory: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 18212 rose 20 0 2102m 756m 19m D 22.9 9.5 4599:42 firefox 14588 rose 20 0 3229m 2.1g 16m S 20.6 26.5 1283:43 gnome-shell 14333 root 20 0 518m 191m 3608 S 12.6 2.4 1156:17 Xorg How is the consumption in gnome 3.4 or 3.6 ? To make sure this is not due to a buggy extension, please make sure you have running bare shell. I've experienced some extensions like system-monitor-extension that for some reason make gnome-shell memory grow overtime, quite rapidly. No update from reporters. Closing. |