• Home
  • Raw
  • Download

Lines Matching +full:cache +full:-

9 This facility is a general purpose cache for network filesystems, though it
12 FS-Cache mediates between cache backends (such as CacheFS) and network
15 +---------+
16 | | +--------------+
17 | NFS |--+ | |
18 | | | +-->| CacheFS |
19 +---------+ | +----------+ | | /dev/hda5 |
20 | | | | +--------------+
21 +---------+ +-->| | |
22 | | | |--+
23 | AFS |----->| FS-Cache |
24 | | | |--+
25 +---------+ +-->| | |
26 | | | | +--------------+
27 +---------+ | +----------+ | | |
28 | | | +-->| CacheFiles |
29 | ISOFS |--+ | /var/cache |
30 | | +--------------+
31 +---------+
33 Or to look at it another way, FS-Cache is a module that provides a caching
34 facility to a network filesystem such that the cache is transparent to the
37 +---------+
41 +---------+
45 | +----------+
47 +---------+ | |
49 | NFS |----->| FS-Cache |
50 | | | |--+
51 +---------+ | | | +--------------+ +--------------+
53 V +----------+ +-->| CacheFiles |-->| Ext3 |
54 +---------+ | /var/cache | | /dev/sda6 |
55 | | +--------------+ +--------------+
58 +---------+ +--------------+ |
63 +---------+ +--------------+
67 +---------+ +--------------+
70 FS-Cache does not follow the idea of completely loading every netfs file
71 opened in its entirety into a cache before permitting it to be accessed and
72 then serving the pages out of that cache rather than the netfs inode because:
74 (1) It must be practical to operate without a cache.
77 cache.
80 must not be limited to the size of the cache.
83 one-off access of a small portion of it (such as might be done with the
86 It instead serves the cache out in PAGE_SIZE chunks as and when requested by
90 FS-Cache provides the following facilities:
92 (1) More than one cache can be used at once. Caches can be selected
104 netfs. The simplest cookie is just a NULL pointer - indicating nothing
107 (6) The netfs is allowed to propose - dynamically - any index hierarchy it
113 indicates that page A is at index B of the data-file represented by cookie
114 C, and that it should be read or written. The cache backend may or may
119 (8) Cookies can be "retired" upon release. At this point FS-Cache will mark
130 FS-Cache maintains a virtual indexing tree in which all indices, files, objects
136 +------------------------------------+
140 +--------------------------+ +-----------+
144 +------------+ +---------------+ +----------+
148 +---+---+ +-----+ +---+ +------+------+ +-----+----+
152 PG0 +-------+
156 +---+---+
163 (*) The NFS primary index contains per-server indices. Each server index is
167 attribute objects themselves have page-array contents.
169 (*) The AFS primary index contains per-cell indices. Each cell index contains
170 per-logical-volume indices. Each of volume index contains up to three
171 indices for the read-write, read-only and backup mirrors of those volumes.
175 The very top index is the FS-Cache master index in which individual netfs's
178 Any index object may reside in more than one cache, provided it only has index
179 children. Any index with non-index object children will be assumed to only
180 reside in one cache.
183 The netfs API to FS-Cache can be found in:
185 Documentation/filesystems/caching/netfs-api.txt
187 The cache backend API to FS-Cache can be found in:
189 Documentation/filesystems/caching/backend-api.txt
201 If FS-Cache is compiled with the following options enabled:
211 This shows counts of a number of events that can happen in FS-Cache:
230 noc=N Number of acq reqs rejected due to no cache available
234 Lookups n=N Number of lookup calls made on cache backends
247 nbf=N Number of attr changed rejected -ENOBUFS
248 oom=N Number of attr changed failed -ENOMEM
253 nbf=N Number of alloc reqs rejected -ENOBUFS
254 int=N Number of alloc reqs aborted -ERESTARTSYS
261 nod=N Number of retr reqs returned -ENODATA
262 nbf=N Number of retr reqs rejected -ENOBUFS
263 int=N Number of retr reqs aborted -ERESTARTSYS
264 oom=N Number of retr reqs failed -ENOMEM
271 nbf=N Number of store reqs rejected -ENOBUFS
272 oom=N Number of store reqs failed -ENOMEM
280 bsy=N Number of release reqs ignored due to in-progress store
290 gc=N Number of deferred-release async ops garbage collected
291 CacheOp alo=N Number of in-progress alloc_object() cache ops
292 luo=N Number of in-progress lookup_object() cache ops
293 luc=N Number of in-progress lookup_complete() cache ops
294 gro=N Number of in-progress grab_object() cache ops
295 upo=N Number of in-progress update_object() cache ops
296 dro=N Number of in-progress drop_object() cache ops
297 pto=N Number of in-progress put_object() cache ops
298 syn=N Number of in-progress sync_cache() cache ops
299 atc=N Number of in-progress attr_changed() cache ops
300 rap=N Number of in-progress read_or_alloc_page() cache ops
301 ras=N Number of in-progress read_or_alloc_pages() cache ops
302 alp=N Number of in-progress allocate_page() cache ops
303 als=N Number of in-progress allocate_pages() cache ops
304 wrp=N Number of in-progress write_page() cache ops
305 ucp=N Number of in-progress uncache_page() cache ops
306 dsp=N Number of in-progress dissociate_pages() cache ops
320 between 0 jiffies and HZ-1 jiffies a variety of tasks took to run. The
340 If CONFIG_FSCACHE_OBJECT_LIST is enabled, the FS-Cache facility will maintain a
377 TY Cookie type (IX - index, DT - data, hex - special)
421 If CONFIG_FSCACHE_DEBUG is enabled, the FS-Cache facility can have runtime
430 0 1 Cache management Function entry trace