|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH V3] xen/balloon: Memory hotplug support for Xen b
To: |
Daniel Kiper <dkiper@xxxxxxxxxxxx> |
Subject: |
[Xen-devel] Re: [PATCH V3] xen/balloon: Memory hotplug support for Xen balloon driver |
From: |
Vasiliy G Tolstov <v.tolstov@xxxxxxxxx> |
Date: |
Wed, 18 May 2011 10:57:48 +0400 |
Cc: |
jeremy@xxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, ian.campbell@xxxxxxxxxx, haicheng.li@xxxxxxxxxxxxxxx, konrad.wilk@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, dan.magenheimer@xxxxxxxxxx, dave@xxxxxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, wdauchy@xxxxxxxxx, rientjes@xxxxxxxxxx, andi.kleen@xxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, fengguang.wu@xxxxxxxxx |
Delivery-date: |
Wed, 18 May 2011 00:00:21 -0700 |
Dkim-signature: |
v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selfip.ru; s=dk; h=Content-Transfer-Encoding:Mime-Version:Message-ID:Date:Content-Type:References:In-Reply-To:Cc:To:Reply-To:From:Subject; bh=8eBgRLiAMQHuKHX8uMqArR+L/seR4uM/PydxmEjgM1E=; b=D2zt0MPvQmMiFW0Lf9uUSiLXi3Pem8YNR/lwMKW4U7ifiP8IRuwFsUTHkeM5ZBT5gfVwfeK8GXIlQDSSDA145/pd3lHzuY+oSoDbI/UjPZWmYcoiVe339szg/P1BeaVp; |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20110517214421.GD30232@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
Organization: |
Selfip.Ru |
References: |
<20110517214421.GD30232@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
Reply-to: |
v.tolstov@xxxxxxxxx |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Tue, 2011-05-17 at 23:44 +0200, Daniel Kiper wrote:
> This patch applies to Linus' git tree, v2.6.39-rc7 tag with a few
> prerequisite patches available at https://lkml.org/lkml/2011/5/17/407
> and at https://lkml.org/lkml/2011/3/28/98.
>
> Memory hotplug support for Xen balloon driver. It should be
> mentioned that hotplugged memory is not onlined automatically.
> It should be onlined by user through standard sysfs interface.
>
> Memory could be hotplugged in following steps:
>
> 1) dom0: xl mem-max <domU> <maxmem>
> where <maxmem> is >= requested memory size,
>
> 2) dom0: xl mem-set <domU> <memory>
> where <memory> is requested memory size; alternatively memory
> could be added by writing proper value to
> /sys/devices/system/xen_memory/xen_memory0/target or
> /sys/devices/system/xen_memory/xen_memory0/target_kb on dumU,
>
> 3) domU: for i in /sys/devices/system/memory/memory*/state; do \
> [ "`cat "$i"`" = offline ] && echo online > "$i"; done
>
> Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>
> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
> ---
> drivers/xen/Kconfig | 24 +++++++++
> drivers/xen/balloon.c | 139
> ++++++++++++++++++++++++++++++++++++++++++++++++-
> include/xen/balloon.h | 4 ++
> 3 files changed, 165 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
> index a59638b..b74501e 100644
> --- a/drivers/xen/Kconfig
> +++ b/drivers/xen/Kconfig
> @@ -9,6 +9,30 @@ config XEN_BALLOON
> the system to expand the domain's memory allocation, or alternatively
> return unneeded memory to the system.
>
> +config XEN_BALLOON_MEMORY_HOTPLUG
> + bool "Memory hotplug support for Xen balloon driver"
> + default n
> + depends on XEN_BALLOON && MEMORY_HOTPLUG
> + help
> + Memory hotplug support for Xen balloon driver allows expanding memory
> + available for the system above limit declared at system startup.
> + It is very useful on critical systems which require long
> + run without rebooting.
> +
> + Memory could be hotplugged in following steps:
> +
> + 1) dom0: xl mem-max <domU> <maxmem>
> + where <maxmem> is >= requested memory size,
> +
> + 2) dom0: xl mem-set <domU> <memory>
> + where <memory> is requested memory size; alternatively memory
> + could be added by writing proper value to
> + /sys/devices/system/xen_memory/xen_memory0/target or
> + /sys/devices/system/xen_memory/xen_memory0/target_kb on dumU,
> +
> + 3) domU: for i in /sys/devices/system/memory/memory*/state; do \
> + [ "`cat "$i"`" = offline ] && echo online > "$i"; done
> +
Very good. Is that possible to eliminate step 3 ? And do it automatic if
domU runs with specific xen balloon param?
--
>
> Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
> Selfip.Ru
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|