Re: RFC: remove __read_mostly

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian Bunk <bunk@...>
Cc: <linux-kernel@...>, <linux-arch@...>
Date: Thursday, December 13, 2007 - 6:48 pm

Adrian Bunk a écrit :

Yes, there are many cases where read_mostly brings huge improvements.

I did test your idea on a 4 CPUS server, and system time was roughly doubled, 
from 11% to 20%

Of course, you noticed that puting a __read_mostly attribute force the linker 
to reserve space for the variable. So a null variable previously in bss 
section (no space in vmlinux file) is now in .data.read_mostly. Not a big deal.

If you want, you could play some .lds games to create sort of a 
"bss.read_mostly" section to save 10000 bytes in vmlinux.

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

Messages in current thread:
RFC: remove __read_mostly, Adrian Bunk, (Thu Dec 13, 6:20 pm)
Re: RFC: remove __read_mostly, Matt Mackall, (Fri Dec 14, 11:24 am)
Re: RFC: remove __read_mostly, Eric Dumazet, (Fri Dec 14, 11:38 am)
Re: RFC: remove __read_mostly, Matt Mackall, (Fri Dec 14, 11:42 am)
Re: RFC: remove __read_mostly, Kyle McMartin, (Thu Dec 13, 7:54 pm)
Re: RFC: remove __read_mostly, Andi Kleen, (Thu Dec 13, 8:33 pm)
Re: RFC: remove __read_mostly, Eric Dumazet, (Thu Dec 13, 6:48 pm)
Re: RFC: remove __read_mostly, Adrian Bunk, (Thu Dec 13, 7:00 pm)
Re: RFC: remove __read_mostly, David Miller, (Thu Dec 13, 6:32 pm)
Re: RFC: remove __read_mostly, Harvey Harrison, (Thu Dec 13, 6:44 pm)
Re: RFC: remove __read_mostly, Andi Kleen, (Thu Dec 13, 7:06 pm)
Re: RFC: remove __read_mostly, Andi Kleen, (Thu Dec 13, 6:29 pm)
Re: RFC: remove __read_mostly, Adrian Bunk, (Thu Dec 13, 6:41 pm)
Re: RFC: remove __read_mostly, Arnd Bergmann, (Fri Dec 14, 12:16 pm)
Re: RFC: remove __read_mostly, Eric Dumazet, (Fri Dec 14, 12:31 pm)