From: Stefano Stabellini Subject: Re: [PATCH] Add support for superpages (hugepages) in PV domain Date: Tue, 26 May 2009 16:51:14 +0100 Message-ID: <4A1C0FF2.7080904@eu.citrix.com> References: <200905220835.47364.dcm@mccr.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200905220835.47364.dcm@mccr.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dave McCracken Cc: Xen Development List List-Id: xen-devel@lists.xenproject.org Unfortunately this patch forces user to specify superpages=? in their config file. Can we default the behaviour to superpages=0 instead? Dave McCracken wrote: > This patch adds the option "superpages" to the domain configuration file. If > it is set, the domain is populated using 2M pages. > > This code does not support fallback to small pages. If the domain can not be > created with 2M pages, the create will fail. > > The patch also includes support for saving and restoring domains with the > superpage flag set. However, if a domain has freed small pages within its > physical page array and then extended the array, the restore will fill in > those freed pages. It will then attempt to allocate more than its memory > limit and will fail. This is significant because apparently Linux does this > during boot, thus a freshly booted Linux image can not be saved and restored > successfully. > > Dave McCracken > Oracle Corp. > >