[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Poor thread performance on Linux vs. Solaris

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 :


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


but spinlining is obviously better.

Khendon's Law:
If the same point is made twice by the same person, the thread is over.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]