delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/24/18:29:34

X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0703241629u2336ca19y26f0623371b941f5@mail.gmail.com>
Date: Sat, 24 Mar 2007 19:29:13 -0400
From: "Lev Bishop" <lev DOT bishop AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Slow performance following upgrade
In-Reply-To: <20070324211844.74102.qmail@nox.cx>
MIME-Version: 1.0
References: <20070323063821 DOT 19925 DOT qmail AT nox DOT cx> <ba40711f0703230656u6c5a4b91mdd9c0063ad12d96b AT mail DOT gmail DOT com> <20070323160832 DOT 16683 DOT qmail AT nox DOT cx> <ba40711f0703240833w75586099k42908d06f99b5e24 AT mail DOT gmail DOT com> <20070324211844 DOT 74102 DOT qmail AT nox DOT cx>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 3/24/07, Zak Johnson wrote:
> Lev Bishop wrote:
> > With the default fontconfig install, fc-cache tries to put the caches
> > in /var/cache/fontconfig and ~/.fontconfig. Check you can write and
> > create files in those directories.
>
> Thanks for the suggestions.  ~/.fontconfig did not exist;
> /var/cache/fontconfig was owned and writeable by me.  Just to be sure, I
> copied files into that directory successfully.  I rebooted to safe mode
> and ran "rm -rf /var/cache/fontconfig" (successfully, with no errors).
> Still at the command window with nothing else running, I ran "fc-cache
> --really-force --verbose" (sorry for the long lines):
<snip>
> fc-cache had created /var/cache/fontconfig, owned and writeable (0755)
> by me (again verified by copying files into the directory successfully).
> It sure seems like slow XFT is a symptom of some other underlying
> problem; what else can I do to diagnose?

I'm grasping at straws now, but... maybe a postinstall script failed
to run. You could try running font-update.

You should be able to see the names of the cache files that fontconfig
is creating if you do
$ FC_DEBUG=16 fc-cache -r -v

Maybe that will give a clue to the problem. Other FC_DEBUG values are:
MATCH            1    Brief information about font matching
  MATCHV           2    Extensive font matching information
  EDIT             4    Monitor match/test/edit execution
  FONTSET          8    Track loading of font information at startup
  CACHE           16    Watch cache files being written
  CACHEV          32    Extensive cache file writing information
  PARSE           64    (no longer in use)
  SCAN           128    Watch font files being scanned to build caches
  SCANV          256    Verbose font file scanning information
  MEMORY         512    Monitor fontconfig memory usage
  CONFIG        1024    Monitor which config files are loaded
  LANGSET       2048    Dump char sets used to construct lang values
  OBJTYPES      4096    Display message when value typechecks fail


Add the value of the desired debug levels together and assign that (in
base 10) to the FC_DEBUG environment variable before running the
application. Output from these statements is sent to stdout.

Fontconfig will distrust its cache files if the timestamps don't make
proper sense (it uses the timestamps to keep track of whether the
caches are up-to-date). Is there anything fishy there (like somehow
/var/cache has a modification time way in the future)?

Otherwise, you should use setup to download the source package for
fontconfig and build a debug version of fc-cache and try to figure out
where things are going wrong.

Lev

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019