Re: [PATCH 03/13] jump label v9: x86 support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Friday, June 11, 2010 - 1:12 am

* Andi Kleen <andi@firstfloor.org> wrote:


You dont seem to have understood my point: there's a big difference between an 
opt-in and an opt-out model.

What you are arguing for is a 'bloaty code generator by default' model and 
that model sucks.

Trying to achieve reductions by opt-in marking functions as a 'please reduce 
it' __cold marker is a losing battle: most new kernel code is 'cold' and 
should be reduced, yet most new code does not (and will not) come with __cold 
markers.

The proper model is to assume that everything should be conservatively 
size-reduced (because, almost by definition, 90% of new kernel code should 
stay small and should stay out of the way), and where benchmarks+importance 
proves it we can allow bloatier code generator via __hot.

Important codepaths can get __hot annotations just as much as they are 
receiving 'inline' optimizations and other kinds of hand-tuning attention.


You are posing this as an if-else choice, while in reality both should be 
done: the best result is to write simpler/faster code _and_ to have a 
compact-by-default code generator too ...


Possibly, but not without substantiating the rather vague statements you have 
made so far.

If you are sending such per function annotation patches then you need to come 
up with actual hard numbers as well. One convenient way to measure such things 
is a before/after "perf stat --repeat" run - as the noise estimations can be 
compared and we can see whether there's a provable effect. (And, of course, 
disassembly of GCC suckage is helpful as well.)

Thanks,

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

Messages in current thread:
[PATCH 00/13] jump label v9, Jason Baron, (Wed Jun 9, 2:38 pm)
[PATCH 02/13] jump label v9: base patch, Jason Baron, (Wed Jun 9, 2:38 pm)
[PATCH 03/13] jump label v9: x86 support, Jason Baron, (Wed Jun 9, 2:39 pm)
[PATCH 05/13] jump label v9: add module support, Jason Baron, (Wed Jun 9, 2:39 pm)
[PATCH 13/13] jump label v9: add docs, Jason Baron, (Wed Jun 9, 2:39 pm)
Re: [PATCH 01/13] jump label v9: notifier atomic call chai ..., Frederic Weisbecker, (Wed Jun 9, 2:58 pm)
Re: [PATCH 02/13] jump label v9: base patch, Frederic Weisbecker, (Wed Jun 9, 3:35 pm)
Re: [PATCH 02/13] jump label v9: base patch, Frederic Weisbecker, (Wed Jun 9, 3:36 pm)
Re: [PATCH 02/13] jump label v9: base patch, Peter Zijlstra, (Thu Jun 10, 5:06 am)
Re: [PATCH 03/13] jump label v9: x86 support, Peter Zijlstra, (Thu Jun 10, 5:12 am)
Re: [PATCH 03/13] jump label v9: x86 support, Ingo Molnar, (Thu Jun 10, 5:14 am)
Re: [PATCH 03/13] jump label v9: x86 support, Peter Zijlstra, (Thu Jun 10, 5:15 am)
Re: [PATCH 02/13] jump label v9: base patch, Peter Zijlstra, (Thu Jun 10, 5:18 am)
Re: [PATCH 03/13] jump label v9: x86 support, Peter Zijlstra, (Thu Jun 10, 5:33 am)
Re: [PATCH 13/13] jump label v9: add docs, Peter Zijlstra, (Thu Jun 10, 5:49 am)
Re: [PATCH 03/13] jump label v9: x86 support, Andi Kleen, (Thu Jun 10, 6:26 am)
Re: [PATCH 03/13] jump label v9: x86 support, Peter Zijlstra, (Thu Jun 10, 7:12 am)
Re: [PATCH 03/13] jump label v9: x86 support, Andi Kleen, (Thu Jun 10, 7:28 am)
Re: [PATCH 03/13] jump label v9: x86 support, Jason Baron, (Thu Jun 10, 8:04 am)
Re: [PATCH 03/13] jump label v9: x86 support, Ingo Molnar, (Thu Jun 10, 8:37 am)
Re: [PATCH 02/13] jump label v9: base patch, Jason Baron, (Thu Jun 10, 8:44 am)
Re: [PATCH 03/13] jump label v9: x86 support, Mathieu Desnoyers, (Thu Jun 10, 9:13 am)
Re: [PATCH 02/13] jump label v9: base patch, Ingo Molnar, (Thu Jun 10, 9:22 am)
Re: [PATCH 03/13] jump label v9: x86 support, Andi Kleen, (Thu Jun 10, 9:24 am)
Re: [PATCH 03/13] jump label v9: x86 support, Steven Rostedt, (Thu Jun 10, 9:29 am)
Re: [PATCH 02/13] jump label v9: base patch, Frederic Weisbecker, (Thu Jun 10, 10:11 am)
Re: [PATCH 03/13] jump label v9: x86 support, Jason Baron, (Thu Jun 10, 5:52 pm)
Re: [PATCH 03/13] jump label v9: x86 support, H. Peter Anvin, (Thu Jun 10, 11:18 pm)
Re: [PATCH 03/13] jump label v9: x86 support, Ingo Molnar, (Fri Jun 11, 12:58 am)
Re: [PATCH 03/13] jump label v9: x86 support, Ingo Molnar, (Fri Jun 11, 1:12 am)
Re: [PATCH 03/13] jump label v9: x86 support, Andi Kleen, (Fri Jun 11, 1:30 am)
Re: [PATCH 00/13] jump label v9, David Miller, (Mon Jun 14, 8:47 pm)
Re: [PATCH 00/13] jump label v9, Jason Baron, (Tue Jun 15, 7:28 am)
Re: [PATCH 00/13] jump label v9, Mathieu Desnoyers, (Tue Jun 15, 8:44 am)
Re: [PATCH 00/13] jump label v9, David Miller, (Tue Jun 15, 10:13 am)
Re: [PATCH 00/13] jump label v9, H. Peter Anvin, (Tue Jun 15, 10:28 am)
Re: [PATCH 00/13] jump label v9, Tony Breeds, (Thu Jun 17, 8:45 pm)
Re: [PATCH 00/13] jump label v9, Mathieu Desnoyers, (Fri Jun 18, 8:18 am)