mm: per-process reclaim
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / mm / Kconfig
index 62034754105d6a2a1a25107016294766b4d6f52f..92e3f35116397c1964532773b5f7c24987e33332 100644 (file)
@@ -244,6 +244,18 @@ config COMPACTION
           it and then we would be really interested to hear about that at
           linux-mm@kvack.org.
 
+config PROCESS_RECLAIM
+       bool "Enable process reclaim"
+       depends on PROC_FS
+       default n
+       help
+        It allows to reclaim pages of the process by /proc/pid/reclaim.
+
+        (echo file > /proc/PID/reclaim) reclaims file-backed pages only.
+        (echo anon > /proc/PID/reclaim) reclaims anonymous pages only.
+        (echo all > /proc/PID/reclaim) reclaims all pages.
+
+        Any other value is ignored.
 #
 # support for page migration
 #