From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: Re: xl mem-max error Date: Fri, 07 Nov 2014 09:21:38 -0500 Message-ID: <545CD572.9040801@oracle.com> References: <545BF386.1050106@oracle.com> <20141107110512.GA12109@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XmkQ8-0006AP-5L for xen-devel@lists.xenproject.org; Fri, 07 Nov 2014 14:21:48 +0000 In-Reply-To: <20141107110512.GA12109@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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 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. >