From 28d6ccb1dfd452d959bf5ca545b0d1b2fc65b463 Mon Sep 17 00:00:00 2001 From: Liam Mark Date: Fri, 11 Apr 2014 17:26:15 -0700 Subject: mm: vmscan: support equal reclaim for anon and file pages When performing memory reclaim support treating anonymous and file backed pages equally. Swapping anonymous pages out to memory can be efficient enough to justify treating anonymous and file backed pages equally. CRs-Fixed: 648984 Change-Id: I6315b8557020d1e27a34225bb9cefbef1fb43266 Signed-off-by: Liam Mark --- mm/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mm/Kconfig') diff --git a/mm/Kconfig b/mm/Kconfig index ba380e5c0..6ae2f341d 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -540,3 +540,12 @@ config ZBUD page. While this design limits storage density, it has simple and deterministic reclaim properties that make it preferable to a higher density approach when reclaim will be used. + +config BALANCE_ANON_FILE_RECLAIM + bool "During reclaim treat anon and file backed pages equally" + depends on SWAP + help + When performing memory reclaim treat anonymous and file backed pages + equally. + Swapping anonymous pages out to memory can be efficient enough to justify + treating anonymous and file backed pages equally. -- cgit v1.2.3