Anton Aylward wrote:
Per Jessen said the following on 06/13/2011 03:47 AM:
All files are cached, globally.
Yes, I understand about the page-cache, LRU and all that and "load on demand" nature of the file mapping of binaries.
But if that is so good why do we have ~/.cache and ... ~/.fonts.cache ~/.libreoffice/3-suse/user/store/.templdir.cache ~/.xdg_menu_cache ~/.local/share/mime/mime.cache ~/.mozilla/firefox/o7k1u7k5.default/extensions.cache ~/.java/deployment/cache Lots more under ~/.kde4/share/apps
Just a guess - they're holding user/application specific data, perhaps only valid for a current session.
I don't think so, not in all cases. The reason I think this is because there is a per-session cache under /usr/tmp/kdecache-anton/ There's also /usr/tmp/kdecache-kdm/
YMMV if you use Gnome.
I have no doubt that the various caches I mentioned previous are _updated_ or rebuilt (if required) each session.
But if they are holding session-specific data then WHY? Why not keep it in mapped/paged memory?
More wild guessing - because it needs survive a crash?
If it is a per session cache for the application and needs retrieval, then its a candidate for fast storage, isn't it?
Perhaps - but it's already cached by the filesystem buffers. -- Per Jessen, Zürich (20.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org