From: Andi Kleen <ak@suse.de>
To: Christoph Lameter <christoph@lameter.com>
Cc: Andi Kleen <ak@suse.de>, Andrew Morton <akpm@osdl.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
linux-kernel@vger.kernel.org, axboe@suse.de, alexn@dsv.su.se,
lnxluv@yahoo.com
Subject: Re: [BUG][Resend] 2.6.12-rc3-mm3: Kernel BUG at "mm/slab.c":1219 [update]
Date: Tue, 10 May 2005 23:49:18 +0200 [thread overview]
Message-ID: <20050510214918.GQ25612@wotan.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0505101443140.23713@graphe.net>
On Tue, May 10, 2005 at 02:44:47PM -0700, Christoph Lameter wrote:
> On Tue, 10 May 2005, Andi Kleen wrote:
>
> > Better just add the section to x86-64. Should be easy by copying the
> > change from the i386 patch.
>
> Something like this?
>
> Index: linux-2.6.11/arch/x86_64/kernel/vmlinux.lds.S
> ===================================================================
> --- linux-2.6.11.orig/arch/x86_64/kernel/vmlinux.lds.S 2005-05-10 13:35:24.000000000 -0700
> +++ linux-2.6.11/arch/x86_64/kernel/vmlinux.lds.S 2005-05-10 13:44:26.000000000 -0700
> @@ -42,6 +42,13 @@ SECTIONS
> CONSTRUCTORS
> }
>
> + . = ALIGN(32);
This should be . = ALIGN(CONFIG_X86_L1_CACHE_BYTES)
It was wrong on i386 already btw, which needs the same.
> + .data.cacheline_aligned : { (.data.cacheline_aligned) }
> +
> + /* Rarely changed data like cpu maps */
> + . = ALIGN(4096);
Does it really need an 4096 byte alignment? That seems like
a waste of memory. Cache line alignment should be enough.
> + .data.mostly_readonly : { *(.data.mostly_readonly) }
> +
> _edata = .; /* End of data section */
>
> __bss_start = .; /* BSS */
>
> > Ideally it would be asm-generic/vmlinux.lds and cover everybody...
>
> Hmm.. Add a definition for ALIGNED_DATA ?
Thinking about it again there is no portable way to do the cacheline
alignment yet, so drop that suggestion please.
-Andi
>
next prev parent reply other threads:[~2005-05-10 21:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 20:39 [BUG][Resend] 2.6.12-rc3-mm3: Kernel BUG at "mm/slab.c":1219 Rafael J. Wysocki
2005-05-09 20:52 ` Andi Kleen
2005-05-10 6:18 ` Jens Axboe
2005-05-10 8:28 ` Alexander Nyberg
2005-05-10 9:02 ` Jens Axboe
2005-05-10 10:55 ` Andi Kleen
2005-05-09 21:54 ` Andrew Morton
2005-05-10 11:49 ` Rafael J. Wysocki
2005-05-10 12:43 ` [BUG][Resend] 2.6.12-rc3-mm3: Kernel BUG at "mm/slab.c":1219 [update] Rafael J. Wysocki
2005-05-10 18:22 ` Andrew Morton
2005-05-10 21:11 ` Andi Kleen
2005-05-10 21:44 ` Christoph Lameter
2005-05-10 21:49 ` Andi Kleen [this message]
2005-05-10 22:01 ` Christoph Lameter
2005-05-10 22:15 ` Andi Kleen
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=20050510214918.GQ25612@wotan.suse.de \
--to=ak@suse.de \
--cc=akpm@osdl.org \
--cc=alexn@dsv.su.se \
--cc=axboe@suse.de \
--cc=christoph@lameter.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lnxluv@yahoo.com \
--cc=rjw@sisk.pl \
/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