From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FD9wf-0005uv-2M for garchives@archives.gentoo.org; Sun, 26 Feb 2006 00:39:29 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1Q0bv2h018632; Sun, 26 Feb 2006 00:37:57 GMT Received: from Princeton.EDU (postoffice02.Princeton.EDU [128.112.130.38]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1Q0UInH030578 for ; Sun, 26 Feb 2006 00:30:19 GMT Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.12.9/8.12.9) with ESMTP id k1Q0UIYU013001 for ; Sat, 25 Feb 2006 19:30:18 -0500 (EST) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id k1Q0UH3P023101 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Sat, 25 Feb 2006 19:30:18 -0500 (EST) Received: by sep.dynalias.net (Postfix, from userid 1001) id CD45918BDA7; Sat, 25 Feb 2006 19:30:24 -0500 (EST) Date: Sat, 25 Feb 2006 19:30:24 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Acroread 7.0.5-r1 very slow startup Message-ID: <20060226003024.GB5183@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20060225233544.GA2865@putty> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060225233544.GA2865@putty> User-Agent: Mutt/1.5.11 X-Archives-Salt: ad2500c0-58dd-419b-9d2e-cae8727d0086 X-Archives-Hash: e903630ccf45ae8bd7f2c53d124d5c84 On Sat, Feb 25, 2006 at 08:35:44PM -0300, Penguin Lover Urs Schuetz squawked: > strace acroread > shows that acroread 7.0.5-r1 uses a very long time with fonts > and nonexistent directories like /usr/psres and > /usr/share/fonts/afms//usr/share/fonts/afms: > > ... > open("/usr/X11R6/lib/X11/fonts/Type1/fences.ttf", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory) > open("/usr/X11R6/lib/X11/fonts/Type1/l048013t.pfa", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory) > getdents64(5, /* 0 entries */, 4096) = 0 > close(5) = 0 > ... > > and "hangs" here for about 10 seconds, with CPU 100% used. This > happens nine times during startup. > from the forums: http://forums.gentoo.org//viewtopic-t-420754-highlight-acroread.html?sid=5118566558bdce7510b095567e7b6d4c the file ~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst stores a list of all the fonts on your system (which, in my case, gives 9387 entries) and apparently it tries to open those one by one on startup and look inside (what for, I don't know). A temporary work around is provide in the link above, which amounts to removing that font file prior to starting acroread. If I do that, acroread starts under 5 seconds for every one of the five times I tried. Notice that /usr/bin/acroread is just a batch file to launch the executable, so if you are adventurous, you can go dig inside it a bit. W -- Seen in LINAC @ Fermi National Accelerator Laboratory: (A series of signs, each with a different "name") This 7833 Power Amplifier Tube is to be Called: Gassy Sparky Leaky Old Number 9 Just Plain Dead Nick O'Tyme Sortir en Pantoufles: up 105 days, 16:47 -- gentoo-user@gentoo.org mailing list