From: Mel Gorman <mel@csn.ul.ie>
To: linux-mm@kvack.org
Cc: Mel Gorman <mel@csn.ul.ie>,
linux-kernel@vger.kernel.org, lhms-devel@lists.sourceforge.net
Subject: [PATCH 3/8] x86 - Specify amount of kernel memory at boot time
Date: Fri, 5 May 2006 18:35:46 +0100 (IST) [thread overview]
Message-ID: <20060505173546.9030.8449.sendpatchset@skynet> (raw)
In-Reply-To: <20060505173446.9030.42837.sendpatchset@skynet>
This patch adds the kernelcore= parameter for x86.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-rc3-mm1-zonesizing-102_addzone/arch/i386/kernel/setup.c linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/i386/kernel/setup.c
--- linux-2.6.17-rc3-mm1-zonesizing-102_addzone/arch/i386/kernel/setup.c 2006-05-03 09:42:16.000000000 +0100
+++ linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/i386/kernel/setup.c 2006-05-03 09:47:22.000000000 +0100
@@ -943,6 +943,18 @@ static void __init parse_cmdline_early (
else if (!memcmp(from, "vmalloc=", 8))
__VMALLOC_RESERVE = memparse(from+8, &from);
+ /*
+ * kernelcore=size sets the amount of memory for use for
+ * kernel allocations that cannot be reclaimed easily.
+ * The remaining memory is set aside for easy reclaim
+ * for features like memory remove or huge page allocations
+ */
+ else if (!memcmp(from, "kernelcore=",11)) {
+ unsigned long core_pages;
+ core_pages = memparse(from+11, &from) >> PAGE_SHIFT;
+ set_required_kernelcore(core_pages);
+ }
+
next_char:
c = *(from++);
if (!c)
WARNING: multiple messages have this Message-ID (diff)
From: Mel Gorman <mel@csn.ul.ie>
To: linux-mm@kvack.org
Cc: Mel Gorman <mel@csn.ul.ie>,
linux-kernel@vger.kernel.org, lhms-devel@lists.sourceforge.net
Subject: [PATCH 3/8] x86 - Specify amount of kernel memory at boot time
Date: Fri, 5 May 2006 18:35:46 +0100 (IST) [thread overview]
Message-ID: <20060505173546.9030.8449.sendpatchset@skynet> (raw)
In-Reply-To: <20060505173446.9030.42837.sendpatchset@skynet>
This patch adds the kernelcore= parameter for x86.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-rc3-mm1-zonesizing-102_addzone/arch/i386/kernel/setup.c linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/i386/kernel/setup.c
--- linux-2.6.17-rc3-mm1-zonesizing-102_addzone/arch/i386/kernel/setup.c 2006-05-03 09:42:16.000000000 +0100
+++ linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/i386/kernel/setup.c 2006-05-03 09:47:22.000000000 +0100
@@ -943,6 +943,18 @@ static void __init parse_cmdline_early (
else if (!memcmp(from, "vmalloc=", 8))
__VMALLOC_RESERVE = memparse(from+8, &from);
+ /*
+ * kernelcore=size sets the amount of memory for use for
+ * kernel allocations that cannot be reclaimed easily.
+ * The remaining memory is set aside for easy reclaim
+ * for features like memory remove or huge page allocations
+ */
+ else if (!memcmp(from, "kernelcore=",11)) {
+ unsigned long core_pages;
+ core_pages = memparse(from+11, &from) >> PAGE_SHIFT;
+ set_required_kernelcore(core_pages);
+ }
+
next_char:
c = *(from++);
if (!c)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2006-05-05 17:36 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-05 17:34 [PATCH 0/8] Reducing fragmentation using zones v6 Mel Gorman
2006-05-05 17:34 ` Mel Gorman
2006-05-05 17:35 ` [PATCH 1/8] Add __GFP_EASYRCLM flag and update callers Mel Gorman
2006-05-05 17:35 ` Mel Gorman
2006-05-05 17:35 ` [PATCH 2/8] Create the ZONE_EASYRCLM zone Mel Gorman
2006-05-05 17:35 ` Mel Gorman
2006-05-05 17:35 ` Mel Gorman [this message]
2006-05-05 17:35 ` [PATCH 3/8] x86 - Specify amount of kernel memory at boot time Mel Gorman
2006-05-05 17:36 ` [PATCH 4/8] ppc64 " Mel Gorman
2006-05-05 17:36 ` Mel Gorman
2006-05-05 17:36 ` [PATCH 5/8] x86_64 " Mel Gorman
2006-05-05 17:36 ` Mel Gorman
2006-05-05 17:36 ` [PATCH 6/8] ia64 " Mel Gorman
2006-05-05 17:36 ` Mel Gorman
2006-05-05 17:37 ` [PATCH 7/8] Allow HugeTLB allocations to use ZONE_EASYRCLM Mel Gorman
2006-05-05 17:37 ` Mel Gorman
2006-05-05 17:37 ` [PATCH 8/8] Add documentation for extra boot parameters Mel Gorman
2006-05-05 17:37 ` Mel Gorman
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=20060505173546.9030.8449.sendpatchset@skynet \
--to=mel@csn.ul.ie \
--cc=lhms-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.