gdk-pixbuf is stat stat stat stating my files

Yuri Pankov yuri at darklight.org.ru
Fri Jun 29 09:10:23 UTC 2007


On Fri, Jun 29, 2007 at 01:22:59AM -0700, Rudy Rucker wrote:
>
> My desktop is REAL slow.
>
> Here is an example that something is awry.. if I run
> # truss -o /tmp/truss xfce4-tips
> and click CLOSE immediately when the window is launched (it takes about 60 
> seconds) the truss file is large (76MB):
> # ls -s /tmp/truss
>  76128 /tmp/truss
> # grep -c '/usr/local/share/icons/gnome' /tmp/truss
>  531404
> # find /usr/local/share/icons/gnome | wc -l
>  5597
> # grep 
> '^stat("//usr/local/share/icons/gnome/22x22/status/stock_volume-min.png' 
> /tmp/truss | grep volume-min | wc -l
>  125
>
> Things seem to go ape shit after this line in the truss output:
> open("/usr/local/etc/gtk-2.0/gdk-pixbuf.loaders",O_RDONLY,00) = 5 (0x5)
>
>
> So, here are the questions:
> why does gdk-pixbuf have to stat every icon 125 times for a total of 
> 500,000+ stats just to launch one little window?
>
> I can repeat the process with 'Terminal' and other programs...
>
>
> System info
> FreeBSD monchichi.monkeybrains.net 6.2-STABLE FreeBSD 6.2-STABLE i386 
> (running on an AMD)
> gdk-pixbuf-0.22.0_6
> xfce-4.4.1_1
>
>
> THanks for any tips... running cvsup right now and attempting to upgrade 
> (if possible) pixbuf

See gtk-update-icon-cache(1) manpage and try running it as root with -f
flag. Permissions on icon-theme.cache files is the reason I can think
of.


HTH,
Yuri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070629/4dd70924/attachment.pgp


More information about the freebsd-questions mailing list