* [PATCH 7/8] mm: implement page cache reclaim speed
@ 2014-06-16 9:25 Xishi Qiu
0 siblings, 0 replies; only message in thread
From: Xishi Qiu @ 2014-06-16 9:25 UTC (permalink / raw)
To: Andrew Morton, Wanpeng Li, Greg Kroah-Hartman, aquini,
Peter Zijlstra, Rik van Riel, Johannes Weiner, Michal Hocko
Cc: Linux MM, LKML, Xishi Qiu, Li Zefan
The parameter vm_cache_reclaim_weight means every time we expect to
reclaim SWAP_CLUSTER_MAX * vm_cache_reclaim_weight pages.
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
---
mm/vmscan.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index d179be6..23b808a 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -3430,7 +3430,7 @@ static unsigned long __shrink_page_cache(gfp_t mask)
struct scan_control sc = {
.gfp_mask = (mask = memalloc_noio_flags(mask)),
.may_writepage = !laptop_mode,
- .nr_to_reclaim = SWAP_CLUSTER_MAX,
+ .nr_to_reclaim = SWAP_CLUSTER_MAX * vm_cache_reclaim_weight,
.may_unmap = 1,
.may_swap = 1,
.order = 0,
--
1.6.0.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-16 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16 9:25 [PATCH 7/8] mm: implement page cache reclaim speed Xishi Qiu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).