From: "Jan Beulich" Subject: Re: [RFC v2][PATCH 1/3] docs: design and intended usage for NUMA-aware ballooning Date: Mon, 19 Aug 2013 10:22:21 +0100 Message-ID: <5211F1DD02000078000A07F3@nat28.tlf.novell.com> References: <1376626416-12901-1-git-send-email-lccycc123@gmail.com> <520E085A02000078000EC810@nat28.tlf.novell.com> <520E437802000078000EC95D@nat28.tlf.novell.com> <1376693583.2757.18.camel@Abyss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VBLfN-0006lu-Rh for xen-devel@lists.xenproject.org; Mon, 19 Aug 2013 09:22:26 +0000 In-Reply-To: <1376693583.2757.18.camel@Abyss> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: dario.faggioli@citrix.com Cc: xen-devel@lists.xenproject.org, david.vrabel@citrix.com, lccycc123@gmail.com List-Id: xen-devel@lists.xenproject.org >>> Dario Faggioli 08/17/13 12:53 AM >>> >On ven, 2013-08-16 at 14:21 +0100, Jan Beulich wrote: >> >>> On 16.08.13 at 12:12, Li Yechen wrote: >> > On Fri, Aug 16, 2013 at 5:09 PM, Jan Beulich wrote: >> >> And finally, coming back what Tim had already pointed out - doing >> >> things the way you propose can cause an imbalance in the >> >> ballooned down guest, penalizing it in favor of not penalizing the >> >> intended consumer of the recovered memory. Therefore I wonder >> >> whether, without any new xenstore node, it wouldn't be better to >> >> simply require conforming balloon drivers to balloon out memory >> >> evenly across the domain's virtual nodes. >> > >> > I should say sorry here, but I'm not quite understand the "whether" part. >> > the "new xenstore node" just store the requirement from user, so that >> > balloon could read it. It's similar to ~/memory/target. This new node >> > could store either p-nodeid, or v-nodeid, according to the interfaces we >> > talked above is placed inside of xen, or inside of guest OS. >> > Do you have a better way to pass this requirement to balloon, instead of >> > create a new xenstore node? I'd be very happy if you have one, since >> > nor do I like the way I have done(create a new node) already! >> >> As said - I'd want you to evaluate a model without such a new node, >> and with instead the requirement placed on the balloon driver to >> balloon out pages evenly allocated across the guest's virtual nodes. >> >Why not supporting both modes? I mean, Jan, I totally see what you mean, >and I agree, a very important use case is where the user just says >"balloon down/up", in which case reclaiming/populating evenly is the >most sane thing to do (as also said by David --I think he was him rather >than Tim). > >However, what about the use case when the user actually want to make >space on a specific p-node, no matter what it will cost to the existing >guests? I don't have that much "ballooning experience", so I am >genuinely asking here, is that use case completely irrelevant? I >personally thing it would be something nice to have, although, again, >probably not as the default behaviour... > >What about something like, the default is the even distribution, but if >the user makes it clear he wants a specific p-node (whatever v-node or >v-nodes that will mean for the guest), we also allow that? Yes, supporting both modes is certainly desirable; I merely tried to point out that the description went too far in the direction of advocating only the enforce-a-node model (almost like this was the only sensible one from the NUMA perspective). Penalizing another guest should clearly not be a default action, but it may validly be a choice by the administrator. Jan Jan