Skip to content

RFC pre sort pages on lruvec in pagevec

Alex Shi linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 of 4 patches 0 repliesNew

3 of 4 patches are in this archive. The cover letter announces 4.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/swap.c: pre-sort pages in pagevec for pagevec_lru_move_fnmm/swap.c+79 -130 replies
2/4mm/swap.c: bail out early for no memcg and no numamm/swap.c+10 -90 replies
3/4mm/swap.c: extend the usage to pagevec_lru_addmm/swap.c+12 -190 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] pre sort pages on lruvec in pagevec

This idea was tried on per memcg lru lock patchset v18, and had a good result, about 5%~20+% performance gain on lru lock busy benchmarks, like case-lru-file-readtwice.

But on the latest kernel, I can not reproduce the result on my box. Also I can not reproduce Tim's performance gain too on my box.

So I don't know if it's workable in some scenario, just sent out if someone has interesting...

Alex Shi (4):
mm/swap.c: pre-sort pages in pagevec for pagevec_lru_move_fn mm/swap.c: bail out early for no memcg and no numa mm/swap.c: extend the usage to pagevec_lru_add mm/swap.c: no sort if all page's lruvec are same

Cc Konstantin Khlebnikov <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Yu Zhao <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Andrew Morton <[email protected]>
 mm/swap.c | 118 +++++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 91 insertions(+), 27 deletions(-)
Signature · 1 line
2.29.GIT