Skip to content

RFC Reduce tree_lock contention during swap and reclaim of a single file v1

Mel Gorman linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm, vmscan: Batch removal of mappings under a single lock during reclaimmm/vmscan.c+142 -284 replies
2/4block, brd: Treat storage as non-rotationaldrivers/block/brd.c+1 -00 replies
3/4mm, vmscan: Stall kswapd if contending on tree_lockmm/vmscan.c+31 -10 replies
4/4mm, vmscan: Potentially stall direct reclaimers on tree_lock contentionmm/vmscan.c+9 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] Reduce tree_lock contention during swap and reclaim of a single file v1

This is a follow-on series from the thread "[lkp] [xfs] 68a9f5e700:
aim7.jobs-per-min -13.6% regression" with active parties cc'd. I've pushed the series to git.kernel.org where the LKP robot should pick it up automatically.

git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git mm-reclaim-contention-v1r15

The progression of this series has been unsatisfactory. Dave originally reported a problem with tree_lock contention and while it can be fixed by pushing reclaim to direct reclaim, it slows swap considerably and was not a universal win. This series is the best balance I've found so far between the swapping and large rewriter cases.

I never reliably produced the same contentions that Dave did so testing is needed. Dave, ideally you would test patches 1+2 and patches 1+4 but a test of patches 1+3 would also be nice if you have the time. Minimally, I'm expected that patches 1+2 will help the swapping-to-fast-storage case (LKP to confirm independently) and may be worth considering on their own even if Dave's test case is not helped.

 drivers/block/brd.c |   1 +
 mm/vmscan.c         | 209 +++++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 182 insertions(+), 28 deletions(-)
Signature · 7 lines
2.6.4

--
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>