Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
David Howells | 06b3db1 | 2009-04-03 16:42:36 +0100 | [diff] [blame] | 2 | |
| 3 | config FSCACHE |
| 4 | tristate "General filesystem local caching manager" |
David Howells | 26aaeff | 2021-02-22 11:39:47 +0000 | [diff] [blame] | 5 | select NETFS_SUPPORT |
David Howells | 06b3db1 | 2009-04-03 16:42:36 +0100 | [diff] [blame] | 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 | |
Mauro Carvalho Chehab | fd299b2 | 2020-04-27 23:16:54 +0200 | [diff] [blame] | 12 | See Documentation/filesystems/caching/fscache.rst for more information. |
David Howells | 06b3db1 | 2009-04-03 16:42:36 +0100 | [diff] [blame] | 13 | |
David Howells | 7394daa | 2009-04-03 16:42:37 +0100 | [diff] [blame] | 14 | config FSCACHE_STATS |
| 15 | bool "Gather statistical information on local caching" |
| 16 | depends on FSCACHE && PROC_FS |
David Howells | 4c5e413 | 2021-06-04 11:37:45 +0100 | [diff] [blame] | 17 | select NETFS_STATS |
David Howells | 7394daa | 2009-04-03 16:42:37 +0100 | [diff] [blame] | 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 | |
Mauro Carvalho Chehab | fd299b2 | 2020-04-27 23:16:54 +0200 | [diff] [blame] | 30 | See Documentation/filesystems/caching/fscache.rst for more information. |
David Howells | 7394daa | 2009-04-03 16:42:37 +0100 | [diff] [blame] | 31 | |
David Howells | 06b3db1 | 2009-04-03 16:42:36 +0100 | [diff] [blame] | 32 | config FSCACHE_DEBUG |
| 33 | bool "Debug FS-Cache" |
| 34 | depends on FSCACHE |
| 35 | help |
| 36 | This permits debugging to be dynamically enabled in the local caching |
| 37 | management module. If this is set, the debugging output may be |
| 38 | enabled by setting bits in /sys/modules/fscache/parameter/debug. |
| 39 | |
Mauro Carvalho Chehab | fd299b2 | 2020-04-27 23:16:54 +0200 | [diff] [blame] | 40 | See Documentation/filesystems/caching/fscache.rst for more information. |