From: Andi Kleen <ak@muc.de>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: akpm@osdl.org, y-goto@jp.fujitsu.com, linux-acpi@vger.kernel.org,
tony.luck@intel.com, yo-goto@ml.soft.fujitsu.com,
kmannth@gmail.com
Subject: Re: CONFIG_ACPI_HOTPLUG_MEMORY=m with x86_64 devel tree
Date: 23 Mar 2006 16:37:35 +0100
Date: Thu, 23 Mar 2006 16:37:35 +0100 [thread overview]
Message-ID: <20060323153735.GB49452@muc.de> (raw)
In-Reply-To: <20060323122250.c22003d0.kamezawa.hiroyu@jp.fujitsu.com>
On Thu, Mar 23, 2006 at 12:22:50PM +0900, KAMEZAWA Hiroyuki wrote:
> On 23 Mar 2006 03:43:06 +0100
> Andi Kleen <ak@muc.de> wrote:
>
> >
> > Don't do that.
> > The x86-64 kernel will preallocate memmaps when everything is enabled soon.
> > Ok that won't concern your IA64 machine immediately.
> >
> >
>
> I read hotadd-reserve patches again.. Okay, please preallocate if you want.
>
> Problem I found is:
> 1) Goto's rebuild_zonelist patch will not work if CONFIG_MEMORY_HOTPLUG=n.
> rebuild zonelist is necessary when the system has just memory < 4G at boot,
> and hot add memory > 4G. because x86_64 has DMA32, ZONE_NORAML is not included into
> zonelist at boot time if system doesn't have memory >4G at boot.
>
> 2) zone and node's spanned_pages and present_pages are not incremented. you should do.
Thanks for the review. All good points. Will fix.
I think I just can force the higher zones to be built at boot when there
are any SRATs > 4GB.
I will also add some throttling to prevent the kernel not booting
in the "1TB of hotplug ram" scenario you outlined. Probably just limit
the memory map preallocated to not more than some percentage of the
free RAM.
Just need to figure out a good limit.
Currently mem_map costs about 1.5% of RAM, so not allocating more
than e.g. 5% of RAM to hotplug memmaps would limit the hotplug memory
on a 1GB machine to 3GB. Hmm, maybe 10% but users could be annoyed
if they lose that much memory due to hotplug.
Another problem is that mem_map needs to be contiguous by node,
but that can be handled with existing functions by checking the e820 map.
-Andi
next prev parent reply other threads:[~2006-03-23 15:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-22 6:23 CONFIG_ACPI_HOTPLUG_MEMORY=m with x86_64 devel tree Andrew Morton
2006-03-22 10:56 ` Yasunori Goto
2006-03-22 11:02 ` Andrew Morton
2006-03-22 11:32 ` KAMEZAWA Hiroyuki
2006-03-22 19:21 ` Andi Kleen
2006-03-22 23:27 ` KAMEZAWA Hiroyuki
2006-03-23 0:07 ` Andi Kleen
2006-03-23 0:36 ` KAMEZAWA Hiroyuki
2006-03-23 2:43 ` Andi Kleen
2006-03-23 2:55 ` KAMEZAWA Hiroyuki
2006-03-23 3:22 ` KAMEZAWA Hiroyuki
2006-03-23 15:37 ` Andi Kleen [this message]
2006-03-23 3:59 ` KAMEZAWA Hiroyuki
2006-03-30 13:41 ` CONFIG_ACPI_HOTPLUG_MEMORY=m with x86_64 devel tree II Andi Kleen
2006-03-30 13:54 ` KAMEZAWA Hiroyuki
2006-03-30 14:18 ` Andi Kleen
2006-03-30 14:25 ` KAMEZAWA Hiroyuki
2006-03-30 14:31 ` Andi Kleen
2006-03-22 17:13 ` CONFIG_ACPI_HOTPLUG_MEMORY=m with x86_64 devel tree Andi Kleen
2006-03-22 19:23 ` 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=20060323153735.GB49452@muc.de \
--to=ak@muc.de \
--cc=akpm@osdl.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kmannth@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=tony.luck@intel.com \
--cc=y-goto@jp.fujitsu.com \
--cc=yo-goto@ml.soft.fujitsu.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 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.