]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - init/Kconfig
slub: make sysfs directories for memcg sub-caches optional
[mirror_ubuntu-bionic-kernel.git] / init / Kconfig
index 2655abb8f310318b39565a08dea727186747daf5..22f437ff65e54697626f449e362f122e0e94ccea 100644 (file)
@@ -1706,6 +1706,13 @@ config PERF_USE_VMALLOC
        help
          See tools/perf/design.txt for details
 
+config PC104
+       bool "PC/104 support"
+       help
+         Expose PC/104 form factor device drivers and options available for
+         selection and configuration. Enable this option if your target
+         machine has a PC/104 bus.
+
 menu "Kernel Performance Events And Counters"
 
 config PERF_EVENTS
@@ -1772,6 +1779,20 @@ config SLUB_DEBUG
          SLUB sysfs support. /sys/slab will not exist and there will be
          no support for cache validation etc.
 
+config SLUB_MEMCG_SYSFS_ON
+       default n
+       bool "Enable memcg SLUB sysfs support by default" if EXPERT
+       depends on SLUB && SYSFS && MEMCG
+       help
+         SLUB creates a directory under /sys/kernel/slab for each
+         allocation cache to host info and debug files. If memory
+         cgroup is enabled, each cache can have per memory cgroup
+         caches. SLUB can create the same sysfs directories for these
+         caches under /sys/kernel/slab/CACHE/cgroup but it can lead
+         to a very high number of debug files being created. This is
+         controlled by slub_memcg_sysfs boot parameter and this
+         config option determines the parameter's default value.
+
 config COMPAT_BRK
        bool "Disable heap randomization"
        default y