From owner-freebsd-questions@FreeBSD.ORG Fri Jun 29 09:10:23 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68EDF16A400 for ; Fri, 29 Jun 2007 09:10:23 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (darklight.org.ru [194.186.18.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2235C13C48A for ; Fri, 29 Jun 2007 09:10:21 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.1/8.14.1) with ESMTP id l5T99aqi046144; Fri, 29 Jun 2007 13:09:37 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Received: (from yuri@localhost) by darklight.org.ru (8.14.1/8.14.1/Submit) id l5T99ZhL046143; Fri, 29 Jun 2007 13:09:35 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Date: Fri, 29 Jun 2007 13:09:34 +0400 From: Yuri Pankov To: Rudy Rucker Message-ID: <20070629090934.GC1382@darklight.org.ru> References: <4684C163.1090503@monkeybrains.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XWOWbaMNXpFDWE00" Content-Disposition: inline In-Reply-To: <4684C163.1090503@monkeybrains.net> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (darklight.org.ru [127.0.0.1]); Fri, 29 Jun 2007 13:09:37 +0400 (MSD) Cc: freebsd-questions@freebsd.org Subject: Re: gdk-pixbuf is stat stat stat stating my files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 09:10:23 -0000 --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--