Skip to contentSkip to conversation

xl.cfg: document the maxmem= option

PATCH In review Olaf Hering 2 participants 3 messages May 31, 2012 – Jun 1, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl.cfg: document the maxmem= option

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1338476618 -7200
# Node ID 4dad9647a0963a2665ccf055492e740c2b399517 # Parent d7318231cfe3498947bf75f09d6675407d7b4e76 xl.cfg: document the maxmem= option

docs/man/xl.cfg.pod.5 +8 -4
diff -r d7318231cfe3 -r 4dad9647a096 docs/man/xl.cfg.pod.5
@@ -174,6 +174,14 @@ Honoured by the sedf scheduler.
 
 Start the guest with MBYTES megabytes of RAM.
 
+=item B<maxmem=MBYTES>
+
+Specifies the maximum amount of memory a guest can ever see.
+The value of maxmem= must be equal or greater than memory=.
+In combination with the memory= option it will start the guest "pre-ballooned".
+In a HVM guest it will enable the PoD (populate on demand) mode, iff the values of memory= and maxmem= differ.
+The guest needs a balloon driver in this case, without a balloon driver it will crash.
+
 =item B<on_poweroff="ACTION">
 
 Specifies what should be done with the domain if it shuts itself down.
@@ -971,10 +979,6 @@ XXX
 
 XXX
 
-=item B<maxmem=NUMBER>
-
-XXX
-
 =item B<nodes=XXX>
 
 XXX
#1 lore raw
Quoted 13 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1338476618 -7200
# Node ID 4dad9647a0963a2665ccf055492e740c2b399517 # Parent d7318231cfe3498947bf75f09d6675407d7b4e76 xl.cfg: document the maxmem= option

diff -r d7318231cfe3 -r 4dad9647a096 docs/man/xl.cfg.pod.5

docs/man/xl.cfg.pod.5 Honoured by the sedf scheduler. · line 183

Quoted 10 lines
docs/man/xl.cfg.pod.5 +7 -0
@@ -174,6 +174,14 @@ Honoured by the sedf scheduler.
 
 Start the guest with MBYTES megabytes of RAM.
 
+=item B<maxmem=MBYTES>
+
+Specifies the maximum amount of memory a guest can ever see.
+The value of maxmem= must be equal or greater than memory=.
+In combination with the memory= option it will start the guest "pre-ballooned".
+In a HVM guest it will enable the PoD (populate on demand) mode, iff the values of memory= and maxmem= differ.
+The guest needs a balloon driver in this case, without a balloon driver it will crash.

"iff" has proven to be confusing in the past (we keep getting "fix typo" patches for existing ones) maybe just spell it out? Otherwise Ack on the text. Although may add a note that booting a PV guest "pre-ballooned" Just Works?

Formatting wise some of these lines are very long. Can you wrap to 80 columns please.

Also why have you wrapped this as one sentence per line rather than wrapping it as paragraphs (which should have blank lines between them)?

I think maxmem= should be B<maxmem=> and the same for memory=.

Ian.

Quoted 20 lines
docs/man/xl.cfg.pod.5 +1 -4
+
 =item B<on_poweroff="ACTION">
 
 Specifies what should be done with the domain if it shuts itself down.
@@ -971,10 +979,6 @@ XXX
 
 XXX
 
-=item B<maxmem=NUMBER>
-
-XXX
-
 =item B<nodes=XXX>
 
 XXX

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 13 lines · Ian Campbell

docs/man/xl.cfg.pod.5 Honoured by the sedf scheduler. · line 183

Quoted 7 lines · Olaf Hering

+=item B<maxmem=MBYTES>

docs/man/xl.cfg.pod.5 +6 -0
+
+Specifies the maximum amount of memory a guest can ever see.
+The value of maxmem= must be equal or greater than memory=.
+In combination with the memory= option it will start the guest "pre-ballooned".
+In a HVM guest it will enable the PoD (populate on demand) mode, iff the values of memory= and maxmem= differ.
+The guest needs a balloon driver in this case, without a balloon driver it will crash.

"iff" has proven to be confusing in the past (we keep getting "fix typo" patches for existing ones) maybe just spell it out? Otherwise Ack on the text. Although may add a note that booting a PV guest "pre-ballooned" Just Works?

I just send a simplified version of this patch. Mentioning PoD is not really needed because its an hypervisor internal feature.

Quoted 2 lines

Formatting wise some of these lines are very long. Can you wrap to 80 columns please.

Done.

Quoted 2 lines

Also why have you wrapped this as one sentence per line rather than wrapping it as paragraphs (which should have blank lines between them)?

Just a habit.

Quoted 1 line

I think maxmem= should be B<maxmem=> and the same for memory=.

Done.

Olaf