Moving fontconfig cache out of tmpfs
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
Quoted 2 lines · Stefan Schmidt
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.
Signature · 2 lines
Julien Cassignol http://www.ainulindale.net
Quoted 9 lines · Stefan Schmidt
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>
Quoted 7 lines
/var/cacheis 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
Hello,
Quoted 4 lines · Stefan Schmidt
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,
Signature · 1 line
Leon
Hello.
Quoted 2 lines · Leon Woestenberg
/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?
packages/fontconfig/fontconfig.inc +1 -1
@@ -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
packages/fontconfig/fontconfig_2.6.0.bb +1 -1
@@ -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
Quoted 7 lines · Stefan Schmidt
Hello.
Quoted 1 line · Leon Woestenberg
/var/lib/looks fine to me.Luckily fontconfig already has a configure option for the cache dir. Only some small
EXTRA_OECONFfiddeling was needed.
Does it create the dir at runtime, or do we have to package it?
regards,
Koen
Quoted 32 lines
People are fine with this?
packages/fontconfig/fontconfig.inc +1
-1@@ -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, whichpackages/fontconfig/fontconfig_2.6.0.bb +1
-1@@ -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, whichregards
Stefan Schmidt
Hello.
Quoted 9 lines · Koen Kooi
Quoted 6 lines · Stefan Schmidt
Quoted 1 line · Leon Woestenberg
/var/lib/looks fine to me.Luckily fontconfig already has a configure option for the cache dir. Only some small
EXTRA_OECONFfiddeling 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
On Tue, 18 Nov 2008 22:00:44 +0100 Stefan Schmidt <[email protected]> babbled:
Quoted 10 lines
Hello.
Quoted 2 lines · Leon Woestenberg
/var/lib/looks fine to me.Luckily fontconfig already has a configure option for the cache dir. Only some small
EXTRA_OECONFfiddeling was needed.People are fine with this?
thumbsup++ :)
Quoted 35 lines
(quoted diff) +0
-0b/packages/fontconfig/fontconfig.inc index 252b843..9af3540 100644
packages/fontconfig/fontconfig.inc +1
-1@@ -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(quoted diff) +0
-0b/packages/fontconfig/fontconfig_2.6.0.bb index 3f7eca4..d6c1019 100644
packages/fontconfig/fontconfig_2.6.0.bb +1
-2@@ -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-langFC_GLYPHNAME=fc-glyphname"
# The tarball has some of the patched files as read only, whichregards
Stefan Schmidt_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 2 lines
------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected]
Hello.
Quoted 9 lines · Stefan Schmidt
Quoted 2 lines · Leon Woestenberg
/var/lib/looks fine to me.Luckily fontconfig already has a configure option for the cache dir. Only some small
EXTRA_OECONFfiddeling was needed.People are fine with this?
Pushed:
regards
Stefan Schmidt