Re: [v2.6.26] what's brewing in x86.git for v2.6.26

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexander van Heukelum <heukelum@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>
Date: Thursday, April 17, 2008 - 6:51 am

> 

I think a realistic benchmark would be by running a real kernel
and profiling the input values of the bitmap functions and then
testing these cases.

I actually started that when I complained last time by writing
a systemtap script for this that generates a histogram, but for some
reason systemtap couldn't tap all bitmap functions in my kernel and
missed some completely and I ran out of time tracking that down.

My gut feeling is the only interesting cases are cpumask/nodemask sized
(which can be one word, two words but now upto 8 words on a NR_CPU=4096
x86 kernel) and then 4k sized ext3/reiser/etc. block bitmaps.


Ok.

The generic version is out-of-line,

Yes it should probably. cpumask walks are relatively common.

I remember profiling mysql some time ago which did bad overscheduling
due to dumb locking. Funny was that the mask walking in the scheduler
actually stood out. No, i don't claim extreme overscheduling is an
interesting case to optimize for, but then there are more realistic
workloads which also do a lot of context switching.

BTW if you do generic work on this: one reason the generated code for
for_each_cpu etc. is so ugly is that the code has checks for
find_next_bit returning >= max size. If you can generize the
code enough to make sure no arch does that anymore these checks
could be eliminated.

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Wed Apr 16, 4:23 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Roland Dreier, (Wed Apr 16, 4:37 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Suresh Siddha, (Wed Apr 16, 6:18 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andi Kleen, (Wed Apr 16, 4:50 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Alexander van Heukelum, (Thu Apr 17, 6:06 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andi Kleen, (Thu Apr 17, 6:51 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Alexander van Heukelum, (Thu Apr 17, 9:33 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Fri Apr 18, 4:38 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andi Kleen, (Fri Apr 18, 6:51 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Fri Apr 18, 2:27 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, David Miller, (Fri Apr 18, 2:38 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Fri Apr 18, 3:47 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Fri Apr 18, 4:00 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Christoph Hellwig, (Fri Apr 18, 4:11 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, David Miller, (Fri Apr 18, 4:18 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Fri Apr 18, 8:48 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 3:48 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 3:25 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Pekka Enberg, (Thu Apr 17, 3:45 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 4:20 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Pekka J Enberg, (Thu Apr 17, 4:32 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Pekka Enberg, (Thu Apr 17, 4:34 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 4:40 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 4:42 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Christoph Hellwig, (Thu Apr 17, 7:49 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 7:56 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 2:01 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 2:51 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Tomasz Kłoczko, (Fri Apr 18, 5:33 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Fri Apr 18, 5:42 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 3:57 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 4:18 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 4:30 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 4:40 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 5:06 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 5:18 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 5:30 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 5:53 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 5:36 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andi Kleen, (Thu Apr 17, 6:11 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 6:18 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andi Kleen, (Thu Apr 17, 6:29 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Pekka Enberg, (Thu Apr 17, 6:19 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 6:33 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Pekka Enberg, (Thu Apr 17, 6:41 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 6:38 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Pekka Enberg, (Thu Apr 17, 6:42 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Nick Piggin, (Fri Apr 18, 7:12 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Arjan van de Ven, (Thu Apr 17, 10:01 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Fri Apr 18, 8:41 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 11:26 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 5:46 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 6:06 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Vegard Nossum, (Thu Apr 17, 2:47 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 3:27 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Ingo Molnar, (Thu Apr 17, 3:35 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Vegard Nossum, (Thu Apr 17, 3:39 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 3:43 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Vegard Nossum, (Thu Apr 17, 4:39 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 4:55 pm)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, David Miller, (Thu Apr 17, 4:45 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 4:54 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 4:56 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, David Miller, (Thu Apr 17, 5:19 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 5:33 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 4:14 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Johannes Weiner, (Thu Apr 17, 6:32 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 6:50 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Avi Kivity, (Thu Apr 17, 4:57 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Christoph Hellwig, (Thu Apr 17, 7:49 am)
Re: [v2.6.26] what's brewing in x86.git for v2.6.26, Andrew Morton, (Thu Apr 17, 1:36 pm)