* Moving fontconfig cache out of tmpfs
@ 2008-11-17 15:19 Stefan Schmidt
2008-11-17 15:33 ` Julien Cassignol
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Stefan Schmidt @ 2008-11-17 15:19 UTC (permalink / raw)
To: openembedded-devel
Hello.
Raster found out a pretty interestesting optimization option.
At the moment we refer to the fontconfig cahc elike this in
/etc/fonts/fonts.conf:
<cachedir>/var/cache/fontconfig</cachedir>
/var/cache is a symlink to var/volatile/cache which is mounted as tmpfs.
This means that the cache has to regenerated on every boot. This can cost up to
20s.
What do people think about pointing this to something not mounted as tmpfs? Any
problems I'm not aware of?
regards
Stefan Schmidt
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Moving fontconfig cache out of tmpfs 2008-11-17 15:19 Moving fontconfig cache out of tmpfs Stefan Schmidt @ 2008-11-17 15:33 ` Julien Cassignol 2008-11-17 15:47 ` Koen Kooi 2008-11-17 18:47 ` Leon Woestenberg 2 siblings, 0 replies; 9+ messages in thread From: Julien Cassignol @ 2008-11-17 15:33 UTC (permalink / raw) To: openembedded-devel On Mon, Nov 17, 2008 at 4:19 PM, Stefan Schmidt <stefan@datenfreihafen.org> wrote: > What do people think about pointing this to something not mounted as tmpfs? Any > problems I'm not aware of? As I just told Stefan, we already applied this tiny hack to SHR postrootfs (even if I'd like to do that any other "proper" way), and it's quite handy. -- Julien Cassignol http://www.ainulindale.net ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Moving fontconfig cache out of tmpfs 2008-11-17 15:19 Moving fontconfig cache out of tmpfs Stefan Schmidt 2008-11-17 15:33 ` Julien Cassignol @ 2008-11-17 15:47 ` Koen Kooi 2008-11-17 18:47 ` Leon Woestenberg 2 siblings, 0 replies; 9+ messages in thread From: Koen Kooi @ 2008-11-17 15:47 UTC (permalink / raw) To: openembedded-devel On 17-11-08 16:19, Stefan Schmidt wrote: > Hello. > > Raster found out a pretty interestesting optimization option. > > At the moment we refer to the fontconfig cahc elike this in > /etc/fonts/fonts.conf: > > <cachedir>/var/cache/fontconfig</cachedir> > > /var/cache is a symlink to var/volatile/cache which is mounted as tmpfs. > > This means that the cache has to regenerated on every boot. This can cost up to > 20s. > > What do people think about pointing this to something not mounted as tmpfs? Any > problems I'm not aware of? +1 for pointing it to /var/lib/fontconfig regards, Koen ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Moving fontconfig cache out of tmpfs 2008-11-17 15:19 Moving fontconfig cache out of tmpfs Stefan Schmidt 2008-11-17 15:33 ` Julien Cassignol 2008-11-17 15:47 ` Koen Kooi @ 2008-11-17 18:47 ` Leon Woestenberg 2008-11-18 21:00 ` Stefan Schmidt 2 siblings, 1 reply; 9+ messages in thread From: Leon Woestenberg @ 2008-11-17 18:47 UTC (permalink / raw) To: openembedded-devel Hello, On Mon, Nov 17, 2008 at 4:19 PM, Stefan Schmidt <stefan@datenfreihafen.org> wrote: > What do people think about pointing this to something not mounted as tmpfs? > Any problems I'm not aware of? > Read-only filesystems :-) But let's check www.fhs.org: /var/lib/: "State information should generally remain valid after a reboot," /var/cache/: "Files located under /var/cache may be expired in an application specific manner, by the system administrator, or both. The application must always be able to recover from manual deletion of these files (generally because of a disk space shortage)" /var/lib/ looks fine to me. Read-only systems without nv storage should probably copy/mount /var/lib/ to volatile upon boot. Regards, -- Leon ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Moving fontconfig cache out of tmpfs 2008-11-17 18:47 ` Leon Woestenberg @ 2008-11-18 21:00 ` Stefan Schmidt 2008-11-18 21:44 ` Koen Kooi ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Stefan Schmidt @ 2008-11-18 21:00 UTC (permalink / raw) To: openembedded-devel Hello. On Mon, 2008-11-17 at 19:47, Leon Woestenberg wrote: > > /var/lib/ looks fine to me. Luckily fontconfig already has a configure option for the cache dir. Only some small EXTRA_OECONF fiddeling was needed. People are fine with this? diff --git a/packages/fontconfig/fontconfig.inc b/packages/fontconfig/fontconfig.inc index 252b843..9af3540 100644 --- a/packages/fontconfig/fontconfig.inc +++ b/packages/fontconfig/fontconfig.inc @@ -18,7 +18,7 @@ inherit autotools pkgconfig export HASDOCBOOK="no" -EXTRA_OECONF = " --disable-docs" +EXTRA_OECONF = " --disable-docs --with-cache-dir=/var/lib/fontconfig" EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" # The tarball has some of the patched files as read only, which diff --git a/packages/fontconfig/fontconfig_2.6.0.bb b/packages/fontconfig/fontconfig_2.6.0.bb index 3f7eca4..d6c1019 100644 --- a/packages/fontconfig/fontconfig_2.6.0.bb +++ b/packages/fontconfig/fontconfig_2.6.0.bb @@ -24,7 +24,7 @@ inherit autotools pkgconfig export HASDOCBOOK="no" -EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH}" +EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH} --with-cache-dir=/var/lib/fontconfig" EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" # The tarball has some of the patched files as read only, which regards Stefan Schmidt ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: Moving fontconfig cache out of tmpfs 2008-11-18 21:00 ` Stefan Schmidt @ 2008-11-18 21:44 ` Koen Kooi 2008-11-18 23:22 ` Stefan Schmidt 2008-11-18 21:52 ` Carsten Haitzler 2008-11-20 13:53 ` Stefan Schmidt 2 siblings, 1 reply; 9+ messages in thread From: Koen Kooi @ 2008-11-18 21:44 UTC (permalink / raw) To: openembedded-devel On 18-11-08 22:00, Stefan Schmidt wrote: > Hello. > > On Mon, 2008-11-17 at 19:47, Leon Woestenberg wrote: >> /var/lib/ looks fine to me. > > Luckily fontconfig already has a configure option for the cache dir. Only some > small EXTRA_OECONF fiddeling was needed. Does it create the dir at runtime, or do we have to package it? regards, Koen > > People are fine with this? > > diff --git a/packages/fontconfig/fontconfig.inc b/packages/fontconfig/fontconfig.inc > index 252b843..9af3540 100644 > --- a/packages/fontconfig/fontconfig.inc > +++ b/packages/fontconfig/fontconfig.inc > @@ -18,7 +18,7 @@ inherit autotools pkgconfig > > export HASDOCBOOK="no" > > -EXTRA_OECONF = " --disable-docs" > +EXTRA_OECONF = " --disable-docs --with-cache-dir=/var/lib/fontconfig" > EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" > > # The tarball has some of the patched files as read only, which > diff --git a/packages/fontconfig/fontconfig_2.6.0.bb b/packages/fontconfig/fontconfig_2.6.0.bb > index 3f7eca4..d6c1019 100644 > --- a/packages/fontconfig/fontconfig_2.6.0.bb > +++ b/packages/fontconfig/fontconfig_2.6.0.bb > @@ -24,7 +24,7 @@ inherit autotools pkgconfig > > export HASDOCBOOK="no" > > -EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH}" > +EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH} --with-cache-dir=/var/lib/fontconfig" > EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" > > # The tarball has some of the patched files as read only, which > > regards > Stefan Schmidt ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Moving fontconfig cache out of tmpfs 2008-11-18 21:44 ` Koen Kooi @ 2008-11-18 23:22 ` Stefan Schmidt 0 siblings, 0 replies; 9+ messages in thread From: Stefan Schmidt @ 2008-11-18 23:22 UTC (permalink / raw) To: openembedded-devel Hello. On Tue, 2008-11-18 at 22:44, Koen Kooi wrote: > On 18-11-08 22:00, Stefan Schmidt wrote: >> >> On Mon, 2008-11-17 at 19:47, Leon Woestenberg wrote: >>> /var/lib/ looks fine to me. >> >> Luckily fontconfig already has a configure option for the cache dir. Only some >> small EXTRA_OECONF fiddeling was needed. > > Does it create the dir at runtime, or do we have to package it? I tested it with an updated package and without the dir prepared. It got created at runtime. regards Stefan Schmidt ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Moving fontconfig cache out of tmpfs 2008-11-18 21:00 ` Stefan Schmidt 2008-11-18 21:44 ` Koen Kooi @ 2008-11-18 21:52 ` Carsten Haitzler 2008-11-20 13:53 ` Stefan Schmidt 2 siblings, 0 replies; 9+ messages in thread From: Carsten Haitzler @ 2008-11-18 21:52 UTC (permalink / raw) To: openembedded-devel On Tue, 18 Nov 2008 22:00:44 +0100 Stefan Schmidt <stefan@datenfreihafen.org> babbled: > Hello. > > On Mon, 2008-11-17 at 19:47, Leon Woestenberg wrote: > > > > /var/lib/ looks fine to me. > > Luckily fontconfig already has a configure option for the cache dir. Only some > small EXTRA_OECONF fiddeling was needed. > > People are fine with this? thumbsup++ :) > diff --git a/packages/fontconfig/fontconfig.inc > b/packages/fontconfig/fontconfig.inc index 252b843..9af3540 100644 > --- a/packages/fontconfig/fontconfig.inc > +++ b/packages/fontconfig/fontconfig.inc > @@ -18,7 +18,7 @@ inherit autotools pkgconfig > > export HASDOCBOOK="no" > > -EXTRA_OECONF = " --disable-docs" > +EXTRA_OECONF = " --disable-docs --with-cache-dir=/var/lib/fontconfig" > EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" > > # The tarball has some of the patched files as read only, which > diff --git a/packages/fontconfig/fontconfig_2.6.0.bb > b/packages/fontconfig/fontconfig_2.6.0.bb index 3f7eca4..d6c1019 100644 > --- a/packages/fontconfig/fontconfig_2.6.0.bb > +++ b/packages/fontconfig/fontconfig_2.6.0.bb > @@ -24,7 +24,7 @@ inherit autotools pkgconfig > > export HASDOCBOOK="no" > > -EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH}" > +EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH} > --with-cache-dir=/var/lib/fontconfig" EXTRA_OEMAKE = "FC_LANG=fc-lang > FC_GLYPHNAME=fc-glyphname" > # The tarball has some of the patched files as read only, which > > regards > Stefan Schmidt > > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) raster@rasterman.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Moving fontconfig cache out of tmpfs 2008-11-18 21:00 ` Stefan Schmidt 2008-11-18 21:44 ` Koen Kooi 2008-11-18 21:52 ` Carsten Haitzler @ 2008-11-20 13:53 ` Stefan Schmidt 2 siblings, 0 replies; 9+ messages in thread From: Stefan Schmidt @ 2008-11-20 13:53 UTC (permalink / raw) To: openembedded-devel Hello. On Tue, 2008-11-18 at 22:00, Stefan Schmidt wrote: > > On Mon, 2008-11-17 at 19:47, Leon Woestenberg wrote: > > > > /var/lib/ looks fine to me. > > Luckily fontconfig already has a configure option for the cache dir. Only some > small EXTRA_OECONF fiddeling was needed. > > People are fine with this? Pushed: http://git.openembedded.net/?p=openembedded.git;a=commitdiff;h=94c3438f511b4faa735064be8c563da8631b34c7 regards Stefan Schmidt ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-11-20 13:54 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-11-17 15:19 Moving fontconfig cache out of tmpfs Stefan Schmidt 2008-11-17 15:33 ` Julien Cassignol 2008-11-17 15:47 ` Koen Kooi 2008-11-17 18:47 ` Leon Woestenberg 2008-11-18 21:00 ` Stefan Schmidt 2008-11-18 21:44 ` Koen Kooi 2008-11-18 23:22 ` Stefan Schmidt 2008-11-18 21:52 ` Carsten Haitzler 2008-11-20 13:53 ` Stefan Schmidt
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.