Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2007 01:22:59 -0700
From:      Rudy Rucker <crapsh@monkeybrains.net>
To:        freebsd-questions@freebsd.org
Subject:   gdk-pixbuf is stat stat stat stating my files 
Message-ID:  <4684C163.1090503@monkeybrains.net>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4684C163.1090503>