login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
December
»
14
Re: RFC: remove __read_mostly
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Eric Dumazet <dada1@...>
To: Matt Mackall <mpm@...>
Cc: Adrian Bunk <bunk@...>, <linux-kernel@...>, <linux-arch@...>
Subject:
Re: RFC: remove __read_mostly
Date: Friday, December 14, 2007 - 11:38 am
Matt Mackall a écrit :
quoted text
> On Thu, Dec 13, 2007 at 11:20:44PM +0100, Adrian Bunk wrote: > >> I tried the following patch with a full x86 .config [1]: >> >> --- a/include/asm-x86/cache.h >> +++ b/include/asm-x86/cache.h >> -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) >> +/* #define __read_mostly __attribute__((__section__(".data.read_mostly"))) */ >> >> The result [2,3] was: >> >> -rwxrwxr-x 1 bunk bunk 46607243 2007-12-13 19:50 vmlinux.old >> -rwxrwxr-x 1 bunk bunk 46598691 2007-12-13 21:55 vmlinux >> >> It's not a surprise that the kernel can become bigger when __read_mostly >> gets used, especially in cases where __read_mostly prevents gcc >> optimizations. >> >> My question is: >> Is there anywhere in the kernel a case where __read_mostly brings a >> measurable improvement or can it be removed? >> > > Yes, but perhaps we can put it under CONFIG_BASE_FULL? > >
Yes, we probably can do something like that (in addition to !CONFIG_SMP) --
unsubscribe notice
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/
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)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.21-rc4
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
Andrew Morton
-mm merge plans for 2.6.23
Stephane Eranian
Re: [PATCH] fix up perfmon to build on -mm
git
:
linux-netdev
:
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Natalie Protasevich
[BUG] New Kernel Bugs
linux-fsdevel
:
Linus Torvalds
Re: silent semantic changes with reiser4
jim owens
Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond...
Alan Cox
Re: impact of 4k sector size on the IO & FS stack
Peter Zijlstra
Re: + mm-balance_dirty_pages-reduce-calls-to-global_page_state-to-reduce-c ache-re...
Colocation donated by:
Who's online
There are currently
1 user
and
1230 guests
online.
Online users
pepssn2310m
Syndicate