From: David Vrabel Subject: [PATCH] docs: clarify documentation for the the dom0_mem command line option Date: Tue, 3 Apr 2012 10:54:28 +0100 Message-ID: <1333446868-11463-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: Keir Fraser , David Vrabel List-Id: xen-devel@lists.xenproject.org From: David Vrabel Signed-off-by: David Vrabel --- This addresses Ian C's comments on v1 of a previous patch (which was applied instead of v2). --- docs/misc/xen-command-line.markdown | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown index c697d68..fb78afe 100644 --- a/docs/misc/xen-command-line.markdown +++ b/docs/misc/xen-command-line.markdown @@ -222,19 +222,27 @@ Specify the total size for dom0. > `= List of ( min: | max: | )` Set the amount of memory for the initial domain (dom0). If a size is -positive, it represents an absolute value. If a size is negative, the -size specified is subtracted from the total available memory. +positive, it represents an absolute value. If a size is negative, it +is subtracted from the total available memory. -* `min:` specifies the minimum amount of memory allocated to dom0. -* `max:` specifies the maximum amount of memory allocated to dom0. -* `` specified the exact amount of memory allocated to dom0. +* `` specifies the exact amount of memory. +* `min:` specifies the minimum amount of memory. +* `max:` specifies the maximum amount of memory. + +If `` is not specified, the default is all the available memory +minus some reserve. The reserve is 1/16 of the available memory or +128 MB (whichever is smaller). + +The amount of memory will be at least the minimum but never more than +the maximum (i.e., `max` overrides the `min` option). If there isn't +enough memory then as much as possible is allocated. `max:` also sets the maximum reservation (the maximum amount of memory dom0 can balloon up to). If this is omitted then the maximum reservation is unlimited. -For example, to set dom0's memory to 512 MB but no more than 1 GB use -`dom0_mem=512M,max:1G`. +For example, to set dom0's initial memory allocation to 512MB but +allow it to balloon up as far as 1GB use `dom0_mem=512M,max:1G` ### dom0\_shadow ### dom0\_vcpus\_pin -- 1.7.2.5