Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23f8a2f5 authored by Vinayak Menon's avatar Vinayak Menon Committed by Patrick Daly
Browse files

mm: memory: reduce fault_around_bytes



mapping multiple pages on a fault result in page_check_references
hitting more number of referenced inactive pages and this results
in increased pressure on reclaim. Reduce it to the lowest possible
value. Reduced kswapd wakeups are observed with this change.

Change-Id: I03c6cac9f28fa328abab7b40f5f01144084a147c
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 9645c9ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3050,7 +3050,7 @@ int alloc_set_pte(struct fault_env *fe, struct mem_cgroup *memcg,
}

static unsigned long fault_around_bytes __read_mostly =
	rounddown_pow_of_two(65536);
	rounddown_pow_of_two(4096);

#ifdef CONFIG_DEBUG_FS
static int fault_around_bytes_get(void *data, u64 *val)