Skip to contentSkip to conversation

mm: implement page cache reclaim speed

PATCH In review Xishi Qiu 1 participant 1 message Jun 16, 2014

Subsystems (3)
lore
Share & tools
lore

Xishi Qiu

author
#0 lore raw

PATCH 7/8 mm: implement page cache reclaim speed

The parameter vm_cache_reclaim_weight means every time we expect to reclaim SWAP_CLUSTER_MAX * vm_cache_reclaim_weight pages.

---
 mm/vmscan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/vmscan.c +1 -1
index d179be6..23b808a 100644
@@ -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,
Signature · 1 line
1.6.0.2