Bugzilla – Bug 348183
gnome-main-menu startup time > 1min + 100% CPU
Last modified: 2008-04-01 00:45:41 UTC
The gnome-main-menu needs more than 1min to startup (means for the button to appear in the panel) on my system (Core 2 Duo, 1gb ram) and during this 1min or more it maxes out my CPU. This is valid not only on startup, but also if I kill it and then run it myself from the terminal. I am attaching strace log if that helps identify the problem.
Created attachment 187295 [details] strace log
Wow, this is really bad... Could you please get an strace again but with these options? strace -ttt -f -o /tmp/output.txt /usr/lib/gnome-main-menu/main-menu This will give us timestamps in the log, which will make it easier to understand.
Created attachment 187330 [details] new strace log
Ugh... several things: * Gnome-main-menu is spending 30 seconds reading *all* your ~4300 thumbnails. I wonder why it tries to read them all. This is a bug we need to fix, but in the meantime you could try wiping your ~/.thumbnails and see if that improves things. * Your icon cache is not up to date, and so application icons are being read individually instead of using the cache. You can run SuSEconfig as root to fix this. * Finally, did you put the strace log file in your home directory? We are getting thousands of inotify events there; this happens when you start creating a log while also monitoring it :) You can use a log file in /tmp in the future to keep this from happening. Could you please run these: grep -i uri ~/.recently-used | wc -l grep -i href ~/.recently-used.xbel | wc -l and paste the output? I suspect that main-menu tries to read the thumbnails for *all* your recent files, even if it's only going to display a few of them.
Created attachment 187465 [details] Annotated strace This is the annotated version of your strace log; we'll use it for reference later when fixing main-menu's performance problems. Grep for "FMQ" in the log to see the annotations.
JPR says there may be a fix for this in SLED10.
Unfortunately I will be able to test in a month, because I will be spending my time in a different country till the 10th January.
Ivan, any update?
(In reply to comment #4 from Federico Mena Quintero) > > Could you please run these: > > grep -i uri ~/.recently-used | wc -l > grep -i href ~/.recently-used.xbel | wc -l > > and paste the output? I suspect that main-menu tries to read the thumbnails > for *all* your recent files, even if it's only going to display a few of them. > [~]$ grep -i uri ~/.recently-used | wc -l 11 [~]$ grep -i href ~/.recently-used.xbel | wc -l 4113
(In reply to comment #8 from Andreas Jaeger) > Ivan, any update? > I am using gnome-main-menu-0.9.8-120.7 from GNOME:STABLE and there is no difference. Is there another package I should try?
*** This bug has been marked as a duplicate of bug 230478 ***