From: Nicholas Piggin <npiggin@gmail.com>
To: Christopher Lameter <cl@linux.com>
Cc: linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org,
linux-mm@kvack.org, linux-sh@vger.kernel.org
Subject: Re: [RFC PATCH] mm: remove quicklist page table caches
Date: Thu, 11 Jul 2019 19:24:52 +1000 [thread overview]
Message-ID: <1562835751.mpbmrr7rdc.astroid@bobo.none> (raw)
In-Reply-To: <0100016be006fbda-65d42038-d656-4d74-8b50-9c800afe4f96-000000@email.amazonses.com>
Christopher Lameter's on July 11, 2019 5:54 pm:
> On Thu, 11 Jul 2019, Nicholas Piggin wrote:
>
>> Remove page table allocator "quicklists". These have been around for a
>> long time, but have not got much traction in the last decade and are
>> only used on ia64 and sh architectures.
>
> I also think its good to remove this code. Note sure though if IA64
> may still have a need of it. But then its not clear that the IA64 arch is
> still in use. Is it still maintained?
It should still work (as well as other archs). Does it have any
particular need for page table allocation speed compared to others?
I actually think it's more benefit for ia64 and sh than anything.
For other arches it's no big deal, and generic code just sprinkles
some poorly named function around the place with no real way to
know where it should go or test it. Then not to mention its
interaction with other memory queues.
>> Also it might be better to instead make more general improvements to
>> page allocator if this is still so slow.
>
> Well yes many have thought so and made attempts to improve the situation
> which generally have failed. But even the fast path of the page allocator
> seems to bloat more and more. The situation is deteriorating instead of
> getting better and as a result lots of subsystems create their own caches
> to avoid the page allocator.
Yeah, to some degree I agree. And if someone would test it on a modern
CPU and workload that would be cool.
But for example in most workloads you would expect the rate of page
allocation and freeing for processes to be on the same order of
magnitude at the low end, up to 2 orders of magnitude higher than
page tables that map them. Not true perhaps for very large shared
mmaps, but all in all IMO it's not clear this is a good tradeoff, or
it's a good idea to proliferate these little queues around the place.
Anyway that's just handwaving from me, but I'm not against the code
being resurrected and added to the more important archs if it shows
good gains on something relevant.
Thanks,
Nick
next prev parent reply other threads:[~2019-07-11 9:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-11 3:03 Nicholas Piggin
2019-07-11 7:54 ` Christopher Lameter
2019-07-11 8:23 ` Thomas Gleixner
2019-07-11 9:24 ` Nicholas Piggin [this message]
2019-07-11 8:25 ` Michal Hocko
2019-07-11 10:30 ` Nicholas Piggin
2019-07-11 10:36 ` Mike Rapoport
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1562835751.mpbmrr7rdc.astroid@bobo.none \
--to=npiggin@gmail.com \
--cc=cl@linux.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox