public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/5] Minor cleanups and performance optimizations for LRU rework
@ 2020-08-19  4:26 Alexander Duyck
  2020-08-19  4:27 ` [RFC PATCH v2 1/5] mm: Identify compound pages sooner in isolate_migratepages_block Alexander Duyck
       [not found] ` <20200819041852.23414.95939.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 2 replies; 20+ messages in thread
From: Alexander Duyck @ 2020-08-19  4:26 UTC (permalink / raw)
  To: alex.shi-KPsoFbNs7GizrGE5bRqYAgC/G2K4zDHf
  Cc: yang.shi-KPsoFbNs7GizrGE5bRqYAgC/G2K4zDHf,
	lkp-ral2JQCrhuEAvxtiuMwx3w, rong.a.chen-ral2JQCrhuEAvxtiuMwx3w,
	khlebnikov-XoJtRXgx1JseBXzfvpsJ4g, kirill-oKw7cIdHH8eLwutG50LtGA,
	hughd-hpIqsD4AKlfQT0dZR+AlfA, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	alexander.duyck-Re5JQEeQqe8AvxtiuMwx3w,
	daniel.m.jordan-QHcLZuEGTsvQT0dZR+AlfA,
	linux-mm-Bw31MaZKKs3YtjvyW6yDsg, shakeelb-hpIqsD4AKlfQT0dZR+AlfA,
	willy-wEGCiKHe2LqWVfeAwA7xHQ, hannes-druUgvl0LCNAfugRpC6u6w,
	tj-DgEjT+Ai2ygdnm+yROfE0A, cgroups-u79uwXL29TY76Z2rM5mHXA,
	akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b,
	richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w,
	mgorman-3eNAlZScCAx27rWaFMvyedHuzzzSOjJt,
	iamjoonsoo.kim-Hm3cg6mZ9cc

So this patch set addresses a few minor issues I have found and is based on
the lrunext branch of the tree at:
https://github.com/alexshi/linux.git

The first three patches address various issues if ound with the patch set
such as the fact that we were skipping non-LRU compound pages one 4K page
at a time, the fact that test_and_set_skip had been made redundant by the
fact that the LRU bit made the setting of the bit exclusive per pageblock,
and the fact that we were using put_page while holding the LRU lock.

The last two patches are some patches I have been experimenting with.
Basically trying to reduce the number of times the LRU lock has to be
released and reacquired by batching LRU work together, or deferring the
freeing/returning of pages to LRU in the case of move_pages_to_lru. I am
still working on generating data but for the fourth patch I have seen an
improvement of about 5% on the will-it-scale/page_fault2 test with THP
enabled by default, however that is just some preliminary data and I still
have a number of tests left to run.

---

Alexander Duyck (5):
      mm: Identify compound pages sooner in isolate_migratepages_block
      mm: Drop use of test_and_set_skip in favor of just setting skip
      mm: Add explicit page decrement in exception path for isolate_lru_pages
      mm: Split release_pages work into 3 passes
      mm: Split move_pages_to_lru into 3 separate passes


 mm/compaction.c |   84 +++++++++++++++---------------------------
 mm/swap.c       |  109 ++++++++++++++++++++++++++++++++++---------------------
 mm/vmscan.c     |   77 +++++++++++++++++++++++----------------
 3 files changed, 142 insertions(+), 128 deletions(-)

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-08-20 17:15 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-19  4:26 [RFC PATCH v2 0/5] Minor cleanups and performance optimizations for LRU rework Alexander Duyck
2020-08-19  4:27 ` [RFC PATCH v2 1/5] mm: Identify compound pages sooner in isolate_migratepages_block Alexander Duyck
2020-08-19  7:48   ` Alex Shi
     [not found]   ` <20200819042705.23414.84098.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2020-08-19 11:43     ` Matthew Wilcox
     [not found]       ` <20200819114309.GB17456-FZi0V3Vbi30CUdFEqe4BF2D2FQJk+8+b@public.gmane.org>
2020-08-19 14:48         ` Alexander Duyck
     [not found] ` <20200819041852.23414.95939.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2020-08-19  4:27   ` [RFC PATCH v2 2/5] mm: Drop use of test_and_set_skip in favor of just setting skip Alexander Duyck
     [not found]     ` <20200819042713.23414.5084.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2020-08-19  7:50       ` Alex Shi
2020-08-19  4:27   ` [RFC PATCH v2 3/5] mm: Add explicit page decrement in exception path for isolate_lru_pages Alexander Duyck
     [not found]     ` <20200819042722.23414.2654.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2020-08-19  7:50       ` Alex Shi
     [not found]         ` <cc993d93-a5af-dd29-19f4-176ba86000e1-KPsoFbNs7GizrGE5bRqYAgC/G2K4zDHf@public.gmane.org>
2020-08-19 14:52           ` Alexander Duyck
2020-08-19  4:27   ` [RFC PATCH v2 4/5] mm: Split release_pages work into 3 passes Alexander Duyck
     [not found]     ` <20200819042730.23414.41309.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2020-08-19  7:53       ` Alex Shi
     [not found]         ` <15edf807-ce03-83f7-407d-5929341b2b4e-KPsoFbNs7GizrGE5bRqYAgC/G2K4zDHf@public.gmane.org>
2020-08-19 14:57           ` Alexander Duyck
     [not found]             ` <CAKgT0UepdfjXn=j8e4xEBFmsNJdzJyN57em8dscr-Er4OBZCOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-20  9:49               ` Alex Shi
     [not found]                 ` <a88eef1b-242d-78c6-fecb-35ea00cd739b-KPsoFbNs7GizrGE5bRqYAgC/G2K4zDHf@public.gmane.org>
2020-08-20 14:13                   ` Alexander Duyck
2020-08-19  4:27   ` [RFC PATCH v2 5/5] mm: Split move_pages_to_lru into 3 separate passes Alexander Duyck
     [not found]     ` <20200819042738.23414.60815.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2020-08-19  7:56       ` Alex Shi
     [not found]         ` <084c58a7-7aac-820c-9606-19391c35b9b5-KPsoFbNs7GizrGE5bRqYAgC/G2K4zDHf@public.gmane.org>
2020-08-19 14:42           ` Alexander Duyck
     [not found]             ` <CAKgT0Ud3CZ8KHLXCrWNGJAX85x23-EWLnAV63-NMmJ+5vD1JAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-20  9:56               ` Alex Shi
     [not found]                 ` <87ded438-e908-117d-ecfb-1af7224d46da-KPsoFbNs7GizrGE5bRqYAgC/G2K4zDHf@public.gmane.org>
2020-08-20 17:15                   ` Alexander Duyck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox