All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: xl mem-max error
Date: Fri, 07 Nov 2014 09:21:38 -0500	[thread overview]
Message-ID: <545CD572.9040801@oracle.com> (raw)
In-Reply-To: <20141107110512.GA12109@zion.uk.xensource.com>

On 11/07/2014 06:05 AM, Wei Liu wrote:
> On Thu, Nov 06, 2014 at 05:17:42PM -0500, Zhigang Wang wrote:
>> Hi,
>>
>> I get this error:
>>
>>     # xl mem-max 3 700
>>     libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max
>>     : Success
>>     cannot set domid 3 static max memory to : 700
>>
> 
> What's your expected behaviour? What's your end goal?

I expect: after start a VM with memory = 700, then I can do:

   # xl mem-max <domain> 700

In our code, we always check (libxl.c):


    if (max_memkb < memorykb) {
        LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "memory_static_max must be greater than or or equal to memory_dynamic_max\n");
        goto out;
    }

As target memory is always bigger than static-max in xenstore (from my test, for both pv and hvm):

    /local/domain/3/memory/static-max = "716800"
    /local/domain/3/memory/target = "716801

So it will not success.

Also I think target memory bigger than static-max seems not right.

Thanks,

Zhigang

> Can the behavior you expected be achieved by manipulating target memory
> instead of maxmem?
> 
> ISTR Oracle has different view on how memory targets are managed. But
> with no other information provided it's hard for me to figure out your
> intent and start a conversation.
> 
> Wei.
> 

  reply	other threads:[~2014-11-07 14:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 22:17 xl mem-max error Zhigang Wang
2014-11-07 11:05 ` Wei Liu
2014-11-07 14:21   ` Zhigang Wang [this message]
2014-11-10 12:37     ` Wei Liu
2014-11-10 12:44       ` Ian Campbell
2014-11-10 15:29         ` Zhigang Wang
2014-11-10 15:30           ` Ian Campbell
2014-11-10 15:38             ` Zhigang Wang
2014-11-12 12:03               ` Ian Campbell
2014-11-17 20:03                 ` Zhigang Wang
2014-11-18  9:26                   ` Ian Campbell
2014-11-18 20:57                     ` [PATCH] set pv guest default video_memkb to 0 Zhigang Wang
2014-11-19 21:08                       ` Konrad Rzeszutek Wilk
2014-11-19 21:24                         ` Wei Liu
2014-11-20 15:29                           ` Ian Campbell
2014-11-20 15:48                             ` Wei Liu
2014-11-20 19:44                               ` Konrad Rzeszutek Wilk
2014-11-28 12:12                                 ` Ian Campbell
2014-11-20 15:29                       ` Ian Campbell

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=545CD572.9040801@oracle.com \
    --to=zhigang.x.wang@oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.