* Cachefiles question
@ 2009-05-08 12:54 Lukas Hejtmanek
2009-05-08 14:11 ` David Howells
0 siblings, 1 reply; 2+ messages in thread
From: Lukas Hejtmanek @ 2009-05-08 12:54 UTC (permalink / raw)
To: David Howells; +Cc: linux-fsdevel, nfsv4
Hello,
what is fscache newly added into mainline supposed to do?
I thought it is used as writeback cache and read cache for network file
systems. But it appears that it does not do any writeback and it seems it
caches only few reads.
I put whole Linux kernel sources on my NFS volume, mounted with fcs option,
have cachefilesd running. I did: make defconfig, make -j4. I put my caching
files into /opt/fscache:
cat /etc/cachefilesd.conf
dir /opt/fscache
however, after the build is complete:
/opt/fscache# du -sm
2 .
so it looks like only 2MB of total 572MB is cached. I'm I something missing or the
fscache should not be better than this?
/opt is 491GB and uses XFS.
even after taring whole kernel sources, fscache does not consume more free
space.
--
Lukáš Hejtmánek
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cachefiles question
2009-05-08 12:54 Cachefiles question Lukas Hejtmanek
@ 2009-05-08 14:11 ` David Howells
0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2009-05-08 14:11 UTC (permalink / raw)
To: Lukas Hejtmanek; +Cc: dhowells, linux-fsdevel, nfsv4
Lukas Hejtmanek <xhejtman@ics.muni.cz> wrote:
> what is fscache newly added into mainline supposed to do?
>
> I thought it is used as writeback cache and read cache for network file
> systems. But it appears that it does not do any writeback and it seems it
> caches only few reads.
It only caches files on NFS that are opened for reading at the moment due to
coherency issues.
> however, after the build is complete:
> /opt/fscache# du -sm
> 2 .
Is there anything in dmesg?
And can you check /proc/fs/fscache/stats?
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-08 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-08 12:54 Cachefiles question Lukas Hejtmanek
2009-05-08 14:11 ` David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).