Re: Trying to make use of hotplug memory for xen balloon driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>, Yasunori Goto <y-goto@...>, Christoph Lameter <clameter@...>, Linux Kernel Mailing List <linux-kernel@...>, Anthony Liguori <anthony@...>, Chris Wright <chrisw@...>
Date: Wednesday, March 26, 2008 - 8:26 pm

On Wed, 2008-03-26 at 16:11 -0700, Jeremy Fitzhardinge wrote:

The flags being all null looks highly suspicious to me.

Once you've done an add_memory(), the new sections should show up
in /sys.  Do you see them in there?

Once they show up, you can online them with:

	echo online > /sys/devices/system/memory/memoryXXX/state

That's what actually goes and mucks with the 'struct zone's and the
pgdats to expand them.  It will also call online_page() on the whole
range.  I think you're trying to do this manually, and missing part of
it.  

There's some documentation here:

http://kerneltrap.org/node/14009

But, think of it this way: "add" is what the hardware does.  "online" is
what Linux does after the memory has been added so that it can be used.

-- Dave

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Trying to make use of hotplug memory for xen balloon driver, Jeremy Fitzhardinge, (Wed Mar 26, 7:11 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., KAMEZAWA Hiroyuki, (Wed Mar 26, 8:50 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 1:57 am)
Re: Trying to make use of hotplug memory for xen balloon dri..., KAMEZAWA Hiroyuki, (Thu Mar 27, 2:11 am)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 4:54 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., KAMEZAWA Hiroyuki, (Thu Mar 27, 8:20 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 2:09 am)
Re: Trying to make use of hotplug memory for xen balloon dri..., Dave Hansen, (Wed Mar 26, 8:26 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 6:23 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Christoph Lameter, (Wed Mar 26, 9:23 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Wed Mar 26, 8:15 pm)