From: Vasiliy G Tolstov <v.tolstov@selfip.ru>
To: Ian Campbell <Ian.Campbell@eu.citrix.com>
Cc: Daniel Kiper <dkiper@net-space.pl>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"andi.kleen@intel.com" <andi.kleen@intel.com>,
"haicheng.li@linux.intel.com" <haicheng.li@linux.intel.com>,
"fengguang.wu@intel.com" <fengguang.wu@intel.com>,
"jeremy@goop.org" <jeremy@goop.org>,
"konrad.wilk@oracle.com" <konrad.wilk@oracle.com>,
Dan Magenheimer <dan.magenheimer@oracle.com>,
"pasik@iki.fi" <pasik@iki.fi>,
"dave@linux.vnet.ibm.com" <dave@linux.vnet.ibm.com>,
"wdauchy@gmail.com" <wdauchy@gmail.com>,
"rientjes@google.com" <rientjes@google.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: [PATCH V3] xen/balloon: Memory hotplug support for Xen balloon driver
Date: Wed, 18 May 2011 11:24:54 +0400 [thread overview]
Message-ID: <1305703494.28175.2.camel@vase> (raw)
In-Reply-To: <1305703309.7738.23.camel@dagon.hellion.org.uk>
On Wed, 2011-05-18 at 08:21 +0100, Ian Campbell wrote:
> On Wed, 2011-05-18 at 07:57 +0100, Vasiliy G Tolstov wrote:
> > On Tue, 2011-05-17 at 23:44 +0200, Daniel Kiper wrote:
> > > + 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?
>
> When we faced the same question WRT VCPU hotplug we ended up using a
> udev rule. Presumably the same could be done here. In the VCPU case the
> rule is:
>
> ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '[ ! -e /sys$devpath/online ] || echo 1 > /sys$devpath/online'"
>
> Presumably the memory one will be broadly similar.
>
> Ian.
>
Ok. very good solution. Thank's.
--
Vasiliy G Tolstov <v.tolstov@selfip.ru>
Selfip.Ru
WARNING: multiple messages have this Message-ID (diff)
From: Vasiliy G Tolstov <v.tolstov@selfip.ru>
To: Ian Campbell <Ian.Campbell@eu.citrix.com>
Cc: Daniel Kiper <dkiper@net-space.pl>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"andi.kleen@intel.com" <andi.kleen@intel.com>,
"haicheng.li@linux.intel.com" <haicheng.li@linux.intel.com>,
"fengguang.wu@intel.com" <fengguang.wu@intel.com>,
"jeremy@goop.org" <jeremy@goop.org>,
"konrad.wilk@oracle.com" <konrad.wilk@oracle.com>,
Dan Magenheimer <dan.magenheimer@oracle.com>,
"pasik@iki.fi" <pasik@iki.fi>,
"dave@linux.vnet.ibm.com" <dave@linux.vnet.ibm.com>,
"wdauchy@gmail.com" <wdauchy@gmail.com>,
"rientjes@google.com" <rientjes@google.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: [PATCH V3] xen/balloon: Memory hotplug support for Xen balloon driver
Date: Wed, 18 May 2011 11:24:54 +0400 [thread overview]
Message-ID: <1305703494.28175.2.camel@vase> (raw)
In-Reply-To: <1305703309.7738.23.camel@dagon.hellion.org.uk>
On Wed, 2011-05-18 at 08:21 +0100, Ian Campbell wrote:
> On Wed, 2011-05-18 at 07:57 +0100, Vasiliy G Tolstov wrote:
> > On Tue, 2011-05-17 at 23:44 +0200, Daniel Kiper wrote:
> > > + 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?
>
> When we faced the same question WRT VCPU hotplug we ended up using a
> udev rule. Presumably the same could be done here. In the VCPU case the
> rule is:
>
> ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '[ ! -e /sys$devpath/online ] || echo 1 > /sys$devpath/online'"
>
> Presumably the memory one will be broadly similar.
>
> Ian.
>
Ok. very good solution. Thank's.
--
Vasiliy G Tolstov <v.tolstov@selfip.ru>
Selfip.Ru
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-05-18 7:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-17 21:44 [PATCH V3] xen/balloon: Memory hotplug support for Xen balloon driver Daniel Kiper
2011-05-17 21:44 ` Daniel Kiper
2011-05-18 6:57 ` Vasiliy G Tolstov
2011-05-18 6:57 ` Vasiliy G Tolstov
2011-05-18 7:21 ` Ian Campbell
2011-05-18 7:21 ` Ian Campbell
2011-05-18 7:24 ` Vasiliy G Tolstov [this message]
2011-05-18 7:24 ` Vasiliy G Tolstov
2011-05-18 10:35 ` Daniel Kiper
2011-05-18 10:35 ` Daniel Kiper
2011-05-18 10:35 ` Daniel Kiper
2011-05-18 15:06 ` [Xen-devel] " Konrad Rzeszutek Wilk
2011-05-18 15:06 ` Konrad Rzeszutek Wilk
2011-05-19 19:19 ` Daniel Kiper
2011-05-19 19:19 ` Daniel Kiper
-- strict thread matches above, loose matches on Subject: below --
2011-05-17 21:44 Daniel Kiper
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=1305703494.28175.2.camel@vase \
--to=v.tolstov@selfip.ru \
--cc=Ian.Campbell@eu.citrix.com \
--cc=akpm@linux-foundation.org \
--cc=andi.kleen@intel.com \
--cc=dan.magenheimer@oracle.com \
--cc=dave@linux.vnet.ibm.com \
--cc=dkiper@net-space.pl \
--cc=fengguang.wu@intel.com \
--cc=haicheng.li@linux.intel.com \
--cc=jeremy@goop.org \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pasik@iki.fi \
--cc=rientjes@google.com \
--cc=wdauchy@gmail.com \
--cc=xen-devel@lists.xensource.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.