From: Mel Gorman <mgorman@suse.de>
To: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: linux-mm@kvack.org, akpm@linux-foundation.org
Subject: Re: [RFC] mm/tlbbatch: Introduce arch_tlbbatch_should_defer()
Date: Wed, 6 Sep 2017 08:34:07 +0100 [thread overview]
Message-ID: <20170906073407.a5bqmfx5xx553euj@suse.de> (raw)
In-Reply-To: <c5e4e0ad-131a-8002-859c-1251096687f7@linux.vnet.ibm.com>
On Wed, Sep 06, 2017 at 09:23:49AM +0530, Anshuman Khandual wrote:
> On 09/05/2017 09:20 PM, Mel Gorman wrote:
> > On Tue, Sep 05, 2017 at 08:15:40PM +0530, Anshuman Khandual wrote:
> >> The entire scheme of deferred TLB flush in reclaim path rests on the
> >> fact that the cost to refill TLB entries is less than flushing out
> >> individual entries by sending IPI to remote CPUs. But architecture
> >> can have different ways to evaluate that. Hence apart from checking
> >> TTU_BATCH_FLUSH in the TTU flags, rest of the decision should be
> >> architecture specific.
> >>
> >> Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
> >
> > There is only one arch implementation given and if an arch knows that
> > the flush should not be deferred then why would it implement support in
> > the first place? I'm struggling to see the point of the patch.
>
> Even if the arch supports deferring of TLB flush like in the existing
> case, it still checks if mm_cpumask(mm) contains anything other than
> the current CPU (which indicates need for an IPI for a TLB flush) to
> decide whether the TLB batch flush should be deferred or not. The
> point is some architectures might do something different for a given
> struct mm other than checking for presence of remote CPU in the mask
> mm_cpumask(mm). It might be specific to the situation, struct mm etc.
> Hence arch callback should be used instead.
>
If that turns out to be the case then the arch can create the hook at the
same time. RIght now, this is churn.
--
Mel Gorman
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2017-09-06 7:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 14:45 Anshuman Khandual
2017-09-05 15:50 ` Mel Gorman
2017-09-06 3:53 ` Anshuman Khandual
2017-09-06 7:34 ` Mel Gorman [this message]
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=20170906073407.a5bqmfx5xx553euj@suse.de \
--to=mgorman@suse.de \
--cc=akpm@linux-foundation.org \
--cc=khandual@linux.vnet.ibm.com \
--cc=linux-mm@kvack.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