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>
This commit is contained in:
parent
5ef8272721
commit
347c419ead
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue