Loading mm/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -528,3 +528,12 @@ config ZSWAP interactions don't cause any known issues on simple memory setups, they have not be fully explored on the large set of potential configurations and workloads that exist. 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. No newline at end of file mm/vmscan.c +2 −1 Original line number Diff line number Diff line Loading @@ -1794,7 +1794,8 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, * There is enough inactive page cache, do not reclaim * anything from the anonymous working set right now. */ if (!inactive_file_is_low(lruvec)) { if (!IS_ENABLED(CONFIG_BALANCE_ANON_FILE_RECLAIM) && !inactive_file_is_low(lruvec)) { scan_balance = SCAN_FILE; goto out; } Loading Loading
mm/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -528,3 +528,12 @@ config ZSWAP interactions don't cause any known issues on simple memory setups, they have not be fully explored on the large set of potential configurations and workloads that exist. 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. No newline at end of file
mm/vmscan.c +2 −1 Original line number Diff line number Diff line Loading @@ -1794,7 +1794,8 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, * There is enough inactive page cache, do not reclaim * anything from the anonymous working set right now. */ if (!inactive_file_is_low(lruvec)) { if (!IS_ENABLED(CONFIG_BALANCE_ANON_FILE_RECLAIM) && !inactive_file_is_low(lruvec)) { scan_balance = SCAN_FILE; goto out; } Loading