Skip to content

vmscan: one cleanup, one bugfix

Johannes Weiner linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2shrink_all_memory(): use sc.nr_reclaimedmm/vmscan.c+23 -260 replies
2/2vmscan: clip swap_cluster_max in shrink_all_memory()mm/vmscan.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] vmscan: one cleanup, one bugfix

Hi Andrew,

the first patch is from KOSAKI Motohiro, it moves the suspend-to-disk memory shrinking functions to use sc.nr_reclaimed all over instead of maintaining an extra local variable.

The second patch is a bugfix for shrink_all_memory() which currently does reclaim more than requested because of setting swap_cluster_max once to our overall reclaim goal but failing to decrease it while we go and reclaim is making progress. Added Nigel Cunningham to Cc because ISTR he complained about exactly this behaviour. Well, this patch seems to fix it, I even added some shiny numbers coming from real tests!

Hannes

 mm/vmscan.c |   51 ++++++++++++++++++++++++---------------------------
 1 files changed, 24 insertions(+), 27 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>