This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH Xen-unstable] Balloon down memory to achive enoug

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH Xen-unstable] Balloon down memory to achive enough DMA32 memory for PV guests with PCI pass-through to succesfully launch.
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Mon, 16 Nov 2009 11:38:27 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, keir.fraser@xxxxxxxxxxxxx
Delivery-date: Mon, 16 Nov 2009 08:39:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B017E4E020000780001FF0E@xxxxxxxxxxxxxxxxxx>
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>
References: <20091113221602.GA30243@xxxxxxxxxxxxxxxxxxx> <4B01314F020000780001FDE4@xxxxxxxxxxxxxxxxxx> <20091116150439.GB30967@xxxxxxxxxxxxxxxxxxx> <4B017E4E020000780001FF0E@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.19 (2009-01-05)
> No, you probably misunderstood (and I probably implied to much in my
> response): On a system with more than 168G, just ballooning out
> arbitrary memory from Dom0 in order to start a 32-bit pv DomU won't
> guarantee that the domain can actually start, as memory beyond the
> 128G boundary is unusable there for such guests.

I see what you mean.
> Conceptually, ballooning out arbitrary amounts of memory to find a
> certain amount below 4G is identical to ballooning out more than the
> amount a guest needs in order to find as much as it needs below 128G.

Perhaps an extra mechanism in the balloon driver in the Dom0 kernel
to only give back to Xen pages below the 4GB mark? And if it
fails return a failure back to Xend?

That would solve the problem of ballooning out more than needed and
would eliminate the "oh-lets balloon out 2 more MBs and see if that
did it".

.. snip ..
> >Since the SWIOTLB size is determined by the 'swiotlb' argument passed to
> >the guest, what if we scanned for that and if it has a number, calculate
> >how much memory that amounts to and use that value? The default still being 
> >at 64MB.
> That might be an option, but is very Linux-centric. I think the amount should
> be configurable per guest if something like this is being done at all.

How about both? Have a 'pci_mem' argument to set the default and also
check the swiotlb argument in 'extra.' If there is a 'swiotlb' argument in
'extra' use that value (computed for kilobytes of course).

Xen-devel mailing list