Bug 395056

Summary: gtk-update-icon-cache is called during installation of packages (and takes about 54+ MB RAM)
Product: [openSUSE] openSUSE 11.0 Reporter: Lukas Ocilka <locilka>
Component: GNOMEAssignee: Stanislav Brabec <sbrabec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: coolo, federico
Version: Beta 3plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: All installed RPMs

Description Lukas Ocilka 2008-05-28 12:59:03 UTC
Created attachment 218606 [details]
All installed RPMs

As we are trying to minimize memory comsumptions during installation, we are always living on the edge. It's hard to debug it but I accidentally found that script gtk-update-icon-cache is called (not only once) during the installation of packages. I saw taking it about 54 MB RAM (via top) which is just too much.

Issues:

  * Too much memory used
    (is it spossible to enhance it for 11.1?)

  * Too much time spent as it is called more times during installation
    (would be nice to call in SUSEconfig, or not at all ;))
Comment 1 JP Rosevear 2008-05-28 13:03:40 UTC
It is generally run from SuSEConfig, but see bug 365649 where we were kind of told to run it from every package.
Comment 2 Stanislav Brabec 2008-05-28 14:29:57 UTC
As commented in bug 365649 comment 29, it is an expected consequence of running gtk-update-icon-cache for particular packages.

Probably complete list of packages actually calling it in Factory:
dogtail
banshee-1
NetworkManager-gnome
Comment 3 Lukas Ocilka 2008-05-28 14:34:10 UTC
Stando, as the script is called from SUSEconfig anyway (in oS 11.0), please, fix them not to call it during installation (YAST_IS_RUNNING=instsys).

Coolo?
Comment 4 Lukas Ocilka 2008-05-28 14:41:14 UTC
So, please, fix.
Comment 5 Stanislav Brabec 2008-05-28 15:26:31 UTC
Done. No package should call gtk-update-icon-cache on its own. SuSEconfig must do it before running installed packages.
Comment 6 Pavol Rusnak 2008-06-09 12:43:31 UTC
Installing package via zypper does not call gtk-update-icon-cache : see #398351