lkml.org 
[lkml]   [2005]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: function ordering (was: Re: [RFC] exit_thread() speedups in x86 process.c)
From
Date
On Sun, 2005-07-03 at 13:30 +0100, Hugh Dickins wrote:
> On Sun, 3 Jul 2005, Arjan van de Ven wrote:
> >
> > hmm. I wonder if a slightly different approach (based on the __slow)
> > idea would make sense
> > 1) Use -ffunction-sections option from gcc to put each function in it's
> > own section
> > 2) Use readprofile/oprofile data to collect an (external to the code)
> > list of hot/cold functions (we can put a default list in the kernel
> > source somewhere and allow people to measure their own if they want)
> > 3) Use this list to make a linker script to order the functions
> >
> > this way we don't need to put a lot of __slow's in the code *and* it's
> > based on measurements not assumptions, and can be tuned for a specific
> > situation in addition.
>
> This is reminiscent of "fur", whose source Old SCO opened.
> Google for SCO fur: amidst all the hits about "fur flying"
> you might find something useful!

it's also similar to the idea to Nat's grope ;)
it's just a lot easier for the kernel than for the average userspace
since we already have linker scripts

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

\
 
 \ /
  Last update: 2005-07-03 14:57    [W:3.189 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site