mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Andi Kleen <andi@firstfloor.org>, Ingo Molnar <mingo@elte.hu>,
	Jens Axboe <jens.axboe@oracle.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: x86: Is there still value in having a special tlb flush IPI vector?
Date: Tue, 29 Jul 2008 16:58:15 +0200	[thread overview]
Message-ID: <20080729145815.GO30344@one.firstfloor.org> (raw)
In-Reply-To: <488F2D48.7030305@goop.org>

On Tue, Jul 29, 2008 at 07:46:32AM -0700, Jeremy Fitzhardinge wrote:
> Andi Kleen wrote:
> >>Yes, but it's only held briefly to put things onto the list.  It doesn't 
> >>get held over the whole IPI transaction as the old smp_call_function 
> >>did, and the tlb flush code still does.  RCU is used to manage the list 
> >>walk and freeing, so there's no long-held locks there either.
> >>    
> >
> >If it bounces regularly it will still hurt.
> >  
> 
> We could convert smp_call_function_mask to use a multi-vector scheme 
> like tlb_64.c if that turns out to be an issue.

Converting it first would be fine. Or rather in parallel because 
you would need to reuse the TLB vectors (there are not that many 
free)

But waiting first for a report would seem wrong to me.

I can just see some poor performance person spend a lot of work to track
down such a regression. While there's a lot of development manpower available
for Linux there's still no reason to waste i. I think if you want to change 
such performance critical paths you should make sure the new code is roughly
performance equivalent first. And with the global lock I don't see that
at all.

-Andi

  reply	other threads:[~2008-07-29 14:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28 23:16 Jeremy Fitzhardinge
2008-07-28 23:20 ` Jeremy Fitzhardinge
2008-07-29  2:12   ` Andi Kleen
2008-07-29  6:29     ` Jeremy Fitzhardinge
2008-07-29 12:02       ` Andi Kleen
2008-07-29 14:46         ` Jeremy Fitzhardinge
2008-07-29 14:58           ` Andi Kleen [this message]
2008-07-28 23:34 ` Ingo Molnar
2008-07-29  4:30   ` Nick Piggin
2008-07-29  6:19     ` Jeremy Fitzhardinge
2008-07-29  9:47       ` Nick Piggin
2008-07-29  9:54     ` Peter Zijlstra
2008-07-29 10:00       ` Nick Piggin
2008-07-29 10:04         ` Peter Zijlstra
2008-07-29 10:17           ` Nick Piggin
2008-07-29 10:23             ` Peter Zijlstra
2008-07-29 10:45         ` Peter Zijlstra
2008-07-31 16:48           ` Ingo Molnar
2008-08-01  1:32             ` Nick Piggin
2008-07-31 17:48           ` Jeremy Fitzhardinge
2008-07-31 20:57             ` Ingo Molnar
2008-07-31 21:15               ` Peter Zijlstra

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=20080729145815.GO30344@one.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=jens.axboe@oracle.com \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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

Powered by JetHome