Re: [Lhms-devel] Re: [PATCH] register hot-added memory to iomemresource

From: KAMEZAWA Hiroyuki
Date: Fri Apr 28 2006 - 20:18:51 EST


On Fri, 28 Apr 2006 14:43:49 -0400
Vivek Goyal <vgoyal@xxxxxxxxxx> wrote:

> On Fri, Apr 28, 2006 at 09:27:54AM +0900, KAMEZAWA Hiroyuki wrote:
> > > And how is kdump to know that memory was hot-added? Do we generate a
> > > hotplug event?
> > >
> > A user program has to make memory section online from sysfs , anyway.
> >
> > The hotplug script for memory hotplug will run at memory hotplug event
> > from ACPI. If a user uses /probe interface (powerpc, x86_64),
> > he knows what he does.
> >
> > hot-add -> online memory -> kexec_load() is a scenario I think of.
> >
>
> Did a quick search but can't locate a memory hotplug agent. Can you give
> some pointers.
>
Sorry, I think there is no generic memory hotplug agent now.
I do it by hand or handmaid scripts.
(Just because our target, NUMA-node-hotplug, is now under construction.)

In theory, ACPI namespace notifier calls memory hotplug agent and it just does
%echo online > /sys/devices/system/memory/memoryXXX/state.

After this, new memory is available.
This page has a bit more information. http://lhms.sourceforge.net/

BTW, could you teach me pointers to kexec/kload tools ?

-Kame

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/