Date: Fri, 29 Jun 2007 13:09:34 +0400 From: Yuri Pankov <yuri@darklight.org.ru> To: Rudy Rucker <crapsh@monkeybrains.net> Cc: freebsd-questions@freebsd.org Subject: Re: gdk-pixbuf is stat stat stat stating my files Message-ID: <20070629090934.GC1382@darklight.org.ru> In-Reply-To: <4684C163.1090503@monkeybrains.net> References: <4684C163.1090503@monkeybrains.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--XWOWbaMNXpFDWE00 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 6= 0=20 > 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=20 > '^stat("//usr/local/share/icons/gnome/22x22/status/stock_volume-min.png'= =20 > /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) =3D 5 (0x5) > > > So, here are the questions: > why does gdk-pixbuf have to stat every icon 125 times for a total of=20 > 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=20 > (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= =20 > (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 --XWOWbaMNXpFDWE00 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBGhMxOeoAklVFrLdgRAgiwAKCQA0jdaStL6M0rbU3Lqhfa72TQzgCffbxo wnXi5WsuLcQWBscF5D3b+0w= =TJX9 -----END PGP SIGNATURE----- --XWOWbaMNXpFDWE00--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070629090934.GC1382>