Re: Poor thread performance on Linux vs. Solaris

John Levon <[email protected]>
Newsgroups gmane.comp.lib.phil
Message-ID <[email protected]>
On Mon, Sep 08, 2003 at 02:39:56PM -0700, Perez-Gonzalez, Inaky wrote:

> -	".text.lock." __stringify(KBUILD_BASENAME)
> +	".text.lock." __stringify(KBUILD_BASENAME) "." __FILE__ "." __stringify(__LINE__)
>  
>  #define LOCK_SECTION_START(extra)		\
>  	".subsection 1\n\t"			\
> 
> and build with "make kernel/futex.s"
> 
> That is what I was trying to do with that patch; unfortunately, the __FILE__
> breaks it beyond repair because the assembler does not accept the slash for

The simplest way to do it is to move the sections inline (known rather
charmingly as "spinlining") like akpm did here :

http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test4/2.6.0-test4-mm6/broken-out/config_spinline.patch

I also made a rather uglier attempt along the lines you mention :

http://marc.theaimsgroup.com/?l=linux-kernel&m=101586797421268&w=2

but spinlining is obviously better.

regards,
john
-- 
Khendon's Law:
If the same point is made twice by the same person, the thread is over.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.