From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [RFC] limit dom0 memory using Xen's dom0_mem command line option Date: Tue, 16 Aug 2011 11:00:35 +0100 Message-ID: <1313488838-28809-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org This set of patches limits the amount of memory dom0 can use by using Xen's dom0_mem=max:NNN command line option. This can make extra memory available because less memory is wasted on page tables that are never used and fewer pages are reserved for low memory situations. In addition, the extra pages can be in two regions which allows more low memory to be available if dom0 intially starts with less than 1 GiB. Xen requires the patch "x86: use 'dom0_mem' to limit the number of pages for dom0" to provide the correct information in the XENMEM_maximum_reservation memory op. Instead of this approach would it be better to limit dom0 memory to the initial number pages and use the recently added memory hotplug support in the balloon driver for all reservation increases? David