diff options
author | Vinayak Menon <vinmenon@codeaurora.org> | 2015-08-07 12:57:14 +0530 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:15:17 -0700 |
commit | 347c419ead855663663b37da444ce0c7ad3de1aa (patch) | |
tree | 0ecf1631bc9f4759907b0b9a0d9b5ca703dabf30 /mm/zcache.c | |
parent | 5ef82727210dc62a69c30ff12480b6e6f88c85ae (diff) |
mm: zcache: do not wake up kswapd for zcache allocs
zcache allocations happen during reclaim of pages,
and waking up kswapd at this time hinders system
performance. During tests it was seen that without
this patch, there were a lot of kswapd wakeups and
was resulting in bad launches.
Change-Id: Ic0f0240b8fdad6b3fe142b2bdc0366cfd870635e
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'mm/zcache.c')
-rw-r--r-- | mm/zcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/zcache.c b/mm/zcache.c index 2b06451b8a82..e41cbb222607 100644 --- a/mm/zcache.c +++ b/mm/zcache.c @@ -73,7 +73,8 @@ static u64 zcache_pool_shrink_pages; static atomic_t zcache_stored_pages = ATOMIC_INIT(0); #define GFP_ZCACHE \ - (__GFP_FS | __GFP_NORETRY | __GFP_NOWARN | __GFP_NOMEMALLOC) + (__GFP_FS | __GFP_NORETRY | __GFP_NOWARN | \ + __GFP_NOMEMALLOC | __GFP_NO_KSWAPD) /* * Zcache receives pages for compression through the Cleancache API and is able * to evict pages from its own compressed pool on an LRU basis in the case that |