From: Rene Herman <rene.herman@gmail.com>
To: Vivek Goyal <vgoyal@in.ibm.com>
Cc: Andi Kleen <ak@suse.de>, Linus Torvalds <torvalds@osdl.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: CONFIG_PHYSICAL_ALIGN limited to 4M?
Date: Tue, 02 Jan 2007 12:05:18 +0100 [thread overview]
Message-ID: <459A3C6E.7060503@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
Good day.
A while ago it was remarked on list here that keeping the kernel 4M
aligned physically might be a performance win if the added 1M (it
normally loads at 1M) meant it would fit on one 4M aligned hugepage
instead of 2 and since that time I've been doing such.
In fact, while I was at it, I ran the kernel at 16M; while admittedly a
bit of a non-issue, having never experienced ZONE_DMA shortage, I am an
ISA user on a >16M machine so this seemed to make sense -- no kernel
eating up "precious" ISA-DMAable memory.
Recently CONFIG_PHYSICAL_START was replaced by CONFIG_PHYSICAL_ALIGN
(commit e69f202d0a1419219198566e1c22218a5c71a9a6) and while 4M alignment
is still possible, that's also the strictest alignment allowed meaning I
can't load my (non-relocatable) kernel at 16M anymore.
If I just apply the following and set it to 16M, things seem to be
working for me. Was there an important reason to limit the alignment to
4M, and if so, even on non relocatable kernels?
Rene.
[-- Attachment #2: config_physical_align_16m.diff --]
[-- Type: text/plain, Size: 461 bytes --]
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig
index 0d67a0a..aeadec2 100644
--- a/arch/i386/Kconfig
+++ b/arch/i386/Kconfig
@@ -793,7 +793,7 @@ config RELOCATABLE
config PHYSICAL_ALIGN
hex "Alignment value to which kernel should be aligned"
default "0x100000"
- range 0x2000 0x400000
+ range 0x2000 0x1000000
help
This value puts the alignment restrictions on physical address
where kernel is loaded and run from. Kernel is compiled for an
next reply other threads:[~2007-01-02 11:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-02 11:05 Rene Herman [this message]
2007-01-03 4:56 ` CONFIG_PHYSICAL_ALIGN limited to 4M? Vivek Goyal
2007-01-03 15:43 ` Rene Herman
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=459A3C6E.7060503@gmail.com \
--to=rene.herman@gmail.com \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=vgoyal@in.ibm.com \
/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