From: Anshuman Khandual <khandual@linux.vnet.ibm.com>
To: Mel Gorman <mgorman@suse.de>,
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 09:23:49 +0530 [thread overview]
Message-ID: <c5e4e0ad-131a-8002-859c-1251096687f7@linux.vnet.ibm.com> (raw)
In-Reply-To: <20170905155000.gasnjvor4slvgkst@suse.de>
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.
--
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>
next prev parent reply other threads:[~2017-09-06 3:54 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 [this message]
2017-09-06 7:34 ` Mel Gorman
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=c5e4e0ad-131a-8002-859c-1251096687f7@linux.vnet.ibm.com \
--to=khandual@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
/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