Loading mm/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -616,6 +616,15 @@ config MAX_STACK_SIZE_MB A sane initial value is 80 MB. 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. config DEFERRED_STRUCT_PAGE_INIT bool "Defer initialisation of struct pages to kthreads" depends on SPARSEMEM Loading mm/vmscan.c +2 −1 Original line number Diff line number Diff line Loading @@ -2397,7 +2397,8 @@ static void get_scan_count(struct lruvec *lruvec, struct mem_cgroup *memcg, * lruvec even if it has plenty of old anonymous pages unless the * system is under heavy pressure. */ if (!inactive_list_is_low(lruvec, true, sc, false) && if (!IS_ENABLED(CONFIG_BALANCE_ANON_FILE_RECLAIM) && !inactive_list_is_low(lruvec, true, sc, false) && lruvec_lru_size(lruvec, LRU_INACTIVE_FILE, sc->reclaim_idx) >> sc->priority) { scan_balance = SCAN_FILE; goto out; Loading Loading
mm/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -616,6 +616,15 @@ config MAX_STACK_SIZE_MB A sane initial value is 80 MB. 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. config DEFERRED_STRUCT_PAGE_INIT bool "Defer initialisation of struct pages to kthreads" depends on SPARSEMEM Loading
mm/vmscan.c +2 −1 Original line number Diff line number Diff line Loading @@ -2397,7 +2397,8 @@ static void get_scan_count(struct lruvec *lruvec, struct mem_cgroup *memcg, * lruvec even if it has plenty of old anonymous pages unless the * system is under heavy pressure. */ if (!inactive_list_is_low(lruvec, true, sc, false) && if (!IS_ENABLED(CONFIG_BALANCE_ANON_FILE_RECLAIM) && !inactive_list_is_low(lruvec, true, sc, false) && lruvec_lru_size(lruvec, LRU_INACTIVE_FILE, sc->reclaim_idx) >> sc->priority) { scan_balance = SCAN_FILE; goto out; Loading