Re: [PATCH 2/2] i386 TIF flags for debug regs and io bitmap in ctxsw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 04, 2006 at 11:47:00PM +0200, Andi Kleen wrote:
> On Tuesday 04 July 2006 23:19, Chuck Ebbert wrote:
> > In-Reply-To: <[email protected]>
> >
> > On Tue, 4 Jul 2006 00:29:39 -0700, Stephane Eranian wrote:
> > > Following my discussion with Andi. Here is a patch that introduces
> > > two new TIF flags to simplify the context switch code in __switch_to().
> > > The idea is to minimize the number of cache lines accessed in the common
> > > case, i.e., when neither the debug registers nor the I/O bitmap are used.
> >
> > I get a 5-10% speedup in task switch times with this patch.
> 
> That sounds too much. How did you measure it?
> 
> Note that lmbench tends to be unstable for this.
> 
Yes, that is my observation as well. Anybody knows of a better
benchmark for ctxsw?

-- 

-Stephane
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux