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

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