diff options
| author | Vinayak Menon <vinmenon@codeaurora.org> | 2015-12-17 08:35:36 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:16:02 -0700 |
| commit | d7749d7f8e2fc65c07d712a5b6340a5682d61b1d (patch) | |
| tree | 29cd4c034d5e245a1f3368cfc582646a5f78b6fe /mm/memory.c | |
| parent | 0e1466b439040e0a89b1be0866af720d984462ef (diff) | |
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: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'mm/memory.c')
| -rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 82e570f7561d..7b82889114e5 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2831,7 +2831,7 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address, } 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) |
