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