public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Shaohua Li <shaohua.li@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"linux-tip-commits@vger.kernel.org" 
	<linux-tip-commits@vger.kernel.org>
Subject: Re: [tip:x86/mm] x86/mm: Avoid superflous leave_mm() in the TLB flush path
Date: Tue, 6 Dec 2011 06:31:00 +0100	[thread overview]
Message-ID: <20111206053100.GA30784@elte.hu> (raw)
In-Reply-To: <1323132020.22361.364.camel@sli10-conroe>


* Shaohua Li <shaohua.li@intel.com> wrote:

> On Tue, 2011-12-06 at 07:26 +0800, Linus Torvalds wrote:
> > On Mon, Dec 5, 2011 at 9:56 AM, tip-bot for Shaohua Li
> > <shaohua.li@intel.com> wrote:
> > >
> > > x86/mm: Avoid superflous leave_mm() in the TLB flush path
> > >
> > > If just one page VA tlb is required to be flushed and current
> > > task is in lazy TLB state, doing leave_mm() is superfluous
> > > because it flushes the whole TLB.  This can reduce some TLB
> > > miss.
> > 
> > Are you sure this is a good idea?
> > 
> > We may be *much* better off leaving the VM and avoiding future IPI's
> > than trying to flush pages one by one over and over again.
> > 
> > IPI's are expensive.
> > 
> > I don't think you thought this through, and if you *did* think it
> > through and actually have numbers that it's cheaper to stay with the
> > MM, I think you need to show those numbers.
>
> good point, I didn't think of it. It's unlikely we just flush 
> one tlb page. please drop the patch.

Dropped, thanks guys.

	Ingo

      reply	other threads:[~2011-12-06  5:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tip-287de5b2cb365b98190b5de8ace1c5a31768a5ae@git.kernel.org>
2011-12-05 23:26 ` [tip:x86/mm] x86/mm: Avoid superflous leave_mm() in the TLB flush path Linus Torvalds
2011-12-06  0:40   ` Shaohua Li
2011-12-06  5:31     ` Ingo Molnar [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=20111206053100.GA30784@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=shaohua.li@intel.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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