From: Ian Jackson Subject: Re: [PATCH] xend: Fix xm list bug reporting incorrect memory size Date: Mon, 8 Apr 2013 18:06:09 +0100 Message-ID: <20834.63745.515707.764444@mariner.uk.xensource.com> References: <1364924327-31151-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1364924327-31151-1-git-send-email-konrad.wilk@oracle.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: Konrad Rzeszutek Wilk Cc: Marcos Matsunaga , xen-devel@lists.xensource.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Konrad Rzeszutek Wilk writes ("[Xen-devel] [PATCH] xend: Fix xm list bug reporting incorrect memory size"): > From: Marcos Matsunaga > > Make sure memory is updated every time XendConfig.update is called. > > Without this patch, if a guest self-balloons, the amount of memory > that 'xend' thinks the guest is using is based on last cached value. > This means the reported value is nowhere close to what the real > value is. Err, right. I'm afraid I'm very unfamiliar with the xend code so this is going to take more explanation than usual. > - self._dominfo_to_xapi(dominfo) > + if dominfo['paused']: > + self._dominfo_to_xapi(dominfo) > + else: > + self._dominfo_to_xapi(dominfo, update_mem = True) Can you explain what the relevance is of the domain being paused ? Thanks, Ian.