From: Christoph Lameter <clameter@sgi.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Andrew Morton <akpm@osdl.org>,
Ravikiran G Thirumalai <kiran@scalex86.org>,
linux-kernel@vger.kernel.org
Subject: Re: remove __read_mostly?
Date: Sun, 25 Jun 2006 21:20:17 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0606252117440.27464@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <1151271890.4940.58.camel@laptopd505.fenrus.org>
On Sun, 25 Jun 2006, Arjan van de Ven wrote:
> On Sun, 2006-06-25 at 11:57 -0700, Andrew Morton wrote:
> > I'm thinking we should remove __read_mostly.
> >
> > Because if we use this everywhere where it's supposed to be used, we end up
> > with .bss and .data 100% populated with write-often variables, packed
> > closely together. The cachelines will really flying around.
>
>
> one thing we could/should do is have a "written during boot only"
> section; which we then can mark read only as well :)
To replicate an IRIX idea:
We could have section with variables that can only be modified by special
command. F.e.
enable_write_to_most_read_section()
<change variable>
disable_write_to_most_read_section()
This section could be a per cpu section that would be replicated
to all nodes on the system on disable_write_to_most_read_section().
That would mean that critical read only data would be node local.
next prev parent reply other threads:[~2006-06-26 4:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-25 18:57 Andrew Morton
2006-06-25 21:19 ` Ravikiran G Thirumalai
2006-06-26 18:39 ` Paul Jackson
2006-06-26 18:46 ` Christoph Lameter
2006-06-26 19:11 ` Paul Jackson
2006-06-26 19:52 ` Ravikiran G Thirumalai
2006-06-25 21:44 ` Arjan van de Ven
2006-06-26 4:20 ` Christoph Lameter [this message]
2006-06-25 21:52 ` Arjan van de Ven
2006-06-26 4:17 ` Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0606252117440.27464@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=kiran@scalex86.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®