1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunconfig FSCACHE 4*4882a593Smuzhiyun tristate "General filesystem local caching manager" 5*4882a593Smuzhiyun help 6*4882a593Smuzhiyun This option enables a generic filesystem caching manager that can be 7*4882a593Smuzhiyun used by various network and other filesystems to cache data locally. 8*4882a593Smuzhiyun Different sorts of caches can be plugged in, depending on the 9*4882a593Smuzhiyun resources available. 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun See Documentation/filesystems/caching/fscache.rst for more information. 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunconfig FSCACHE_STATS 14*4882a593Smuzhiyun bool "Gather statistical information on local caching" 15*4882a593Smuzhiyun depends on FSCACHE && PROC_FS 16*4882a593Smuzhiyun help 17*4882a593Smuzhiyun This option causes statistical information to be gathered on local 18*4882a593Smuzhiyun caching and exported through file: 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun /proc/fs/fscache/stats 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun The gathering of statistics adds a certain amount of overhead to 23*4882a593Smuzhiyun execution as there are a quite a few stats gathered, and on a 24*4882a593Smuzhiyun multi-CPU system these may be on cachelines that keep bouncing 25*4882a593Smuzhiyun between CPUs. On the other hand, the stats are very useful for 26*4882a593Smuzhiyun debugging purposes. Saying 'Y' here is recommended. 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun See Documentation/filesystems/caching/fscache.rst for more information. 29*4882a593Smuzhiyun 30*4882a593Smuzhiyunconfig FSCACHE_HISTOGRAM 31*4882a593Smuzhiyun bool "Gather latency information on local caching" 32*4882a593Smuzhiyun depends on FSCACHE && PROC_FS 33*4882a593Smuzhiyun help 34*4882a593Smuzhiyun This option causes latency information to be gathered on local 35*4882a593Smuzhiyun caching and exported through file: 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun /proc/fs/fscache/histogram 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun The generation of this histogram adds a certain amount of overhead to 40*4882a593Smuzhiyun execution as there are a number of points at which data is gathered, 41*4882a593Smuzhiyun and on a multi-CPU system these may be on cachelines that keep 42*4882a593Smuzhiyun bouncing between CPUs. On the other hand, the histogram may be 43*4882a593Smuzhiyun useful for debugging purposes. Saying 'N' here is recommended. 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun See Documentation/filesystems/caching/fscache.rst for more information. 46*4882a593Smuzhiyun 47*4882a593Smuzhiyunconfig FSCACHE_DEBUG 48*4882a593Smuzhiyun bool "Debug FS-Cache" 49*4882a593Smuzhiyun depends on FSCACHE 50*4882a593Smuzhiyun help 51*4882a593Smuzhiyun This permits debugging to be dynamically enabled in the local caching 52*4882a593Smuzhiyun management module. If this is set, the debugging output may be 53*4882a593Smuzhiyun enabled by setting bits in /sys/modules/fscache/parameter/debug. 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun See Documentation/filesystems/caching/fscache.rst for more information. 56*4882a593Smuzhiyun 57*4882a593Smuzhiyunconfig FSCACHE_OBJECT_LIST 58*4882a593Smuzhiyun bool "Maintain global object list for debugging purposes" 59*4882a593Smuzhiyun depends on FSCACHE && PROC_FS 60*4882a593Smuzhiyun help 61*4882a593Smuzhiyun Maintain a global list of active fscache objects that can be 62*4882a593Smuzhiyun retrieved through /proc/fs/fscache/objects for debugging purposes 63