xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Jim Fehlig <jfehlig@suse.com>, xen-devel@lists.xenproject.org
Cc: ian.jackson@eu.citrix.com, wei.liu2@citrix.com
Subject: Re: [PATCH] docs: clarify xl mem-max semantics
Date: Mon, 23 Jan 2017 07:07:16 +0100	[thread overview]
Message-ID: <e29af1aa-396c-7b69-6f4a-13c65dec4100@suse.com> (raw)
In-Reply-To: <3b1c0ef0-aba1-454a-2c9a-b5fafc47788d@suse.com>

On 21/01/17 00:15, Jim Fehlig wrote:
> On 01/20/2017 02:54 AM, Juergen Gross wrote:
>> The information given in the xl man page for the mem-max command is
>> rather brief. Expand it in order to let the reader understand what it
>> is really doing.
>>
>> As the related libxl function libxl_domain_setmaxmem() isn't much
>> clearer add a comment to it explaining the desired semantics.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> ---
>>  docs/man/xl.pod.1.in | 10 ++++++++++
>>  tools/libxl/libxl.c  |  6 ++++++
>>  2 files changed, 16 insertions(+)
>>
>> diff --git a/docs/man/xl.pod.1.in b/docs/man/xl.pod.1.in
>> index 09c1faa..62307e8 100644
>> --- a/docs/man/xl.pod.1.in
>> +++ b/docs/man/xl.pod.1.in
>> @@ -401,6 +401,16 @@ for bytes.
>>  The mem-max value may not correspond to the actual memory used in the
>>  domain, as it may balloon down its memory to give more back to the OS.
>>
>> +The value given just sets the memory amount the domain is allowed to
>> allocate
>> +in the hypervisor. Thus it can't be lower than the current
>> reservation, but
>> +it is allowed to be higher than the configured maximum memory size of
>> the
>> +domain (B<maxmem> parameter in the domain's configuration). Setting the
>> +allowed memory size via B<xl mem-max> above the B<maxmem> size won't
>> let use
>> +this value to be used for B<xl mem-set>, as B<xl mem-set> will still use
>> +B<maxmem> as an upper limit.
> 
> I find the last sentence a bit awkward. Might I suggest
> 
> Using B<xl mem-max> to set the maximum memory above the initial
> B<maxmem> value will not allow the additional memory to be used via B<xl
> mem-set>. The initial B<maxmem> value is still used as an upper limit
> for B<xl mem-set>.

Yes, this is better.


Thanks,

Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

      reply	other threads:[~2017-01-23  6:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-20  9:54 [PATCH] docs: clarify xl mem-max semantics Juergen Gross
2017-01-20 13:48 ` Konrad Rzeszutek Wilk
2017-01-20 15:51   ` Ian Jackson
2017-01-20 16:13     ` Juergen Gross
2017-01-20 23:15 ` Jim Fehlig
2017-01-23  6:07   ` Juergen Gross [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e29af1aa-396c-7b69-6f4a-13c65dec4100@suse.com \
    --to=jgross@suse.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jfehlig@suse.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).