linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Dropping CONFIG_REORDER on x86-64 for 2.6.22
@ 2007-04-19 11:54 Andi Kleen
  2007-04-19 14:27 ` Arjan van de Ven
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andi Kleen @ 2007-04-19 11:54 UTC (permalink / raw)
  To: discuss; +Cc: linux-kernel, Arjan van de Ven


Hallo,

I'm thinking about dropping the x86-64 CONFIG_REORDER for 2.6.22. 
The function enabled -ffunction-sections and then tries to reorder
the executable

While that's in theory a worthy goal to save TLB/icache, in practice it 
didn't really work out.

Rationale:
- It cannot be enabled in normal builds because all current lds
become very slow when they have to handle thousands of sections.

- The list of hot functions it needs - arch/x86_64/kernel/functionlist -
hasn't been changed for a long time and is already out of date. 
I also don't know no sane way to keep it uptodate. Profile feedback
at runtime is not practical for the kernel and even if it's questionable
we would find a good training workload. Trying to change the manually
is imho foolish and likely not too useful anyways (if any hot function
is missed the TLB savings will be lost and it is unlikely we can
get 100% coverage) 

- The workloads of the kernel are too diverse to make this concept
really work

So I'm planning to drop the option and arch/x86_64/kernel/functionlist

Comments?

-Andi


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-04-20 17:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19 11:54 Dropping CONFIG_REORDER on x86-64 for 2.6.22 Andi Kleen
2007-04-19 14:27 ` Arjan van de Ven
2007-04-19 16:59   ` Chuck Ebbert
2007-04-20  8:35   ` Måns Rullgård
2007-04-20  9:37     ` [discuss] " Andi Kleen
2007-04-20 17:24       ` Måns Rullgård
2007-04-19 17:06 ` Adrian Bunk
2007-04-19 20:10 ` David Miller
2007-04-20  1:21   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).