From: Masaki Kanno Subject: Re: [PATCH] Fix xm mem-max command Date: Wed, 27 Feb 2008 11:52:11 +0900 Message-ID: <9FC878EBC02A84kanno.masaki@jp.fujitsu.com> References: <9EC878685A7964kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: weiming Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >Hi, > >I got similar problems with these scripts on the range of int. >Do you know how to solve them radically? > Hi, No, I don't know for details. AFAIK, an upper limit of maxmem value is under 2 TiB. I consulted a description of the following changeset. http://xenbits.xensource.com/xen-unstable.hg?rev/9647be59212d But, current maxmem value of Domain-0 is 4 TiB - 1 MiB as follows. # xm list --long Domain-0 | grep maxmem (maxmem 4194303) Best regards, Kan >2008/2/26 Masaki Kanno : > >> Hi, >> >> When I gave 2 TiB or more to xm mem-max command, I saw the following >> error message. But the maxmem value was changed. >> >> # xm list --long vm1 | grep maxmem >> (maxmem 256) >> # xm mem-max vm1 2097152 >> Error: long int too large to convert to int >> Usage: xm mem-max >> >> Set the maximum amount reservation for a domain. >> # xm list --long vm1 | grep maxmem >> (maxmem 2097152) >> >> >> This patch reverts the maxmem value to the previous maxmem value when >> the error occurs. >> >> # xm list --long vm1 | grep maxmem >> (maxmem 256) >> # xm mem-max vm1 2097152 >> Error: long int too large to convert to int >> Usage: xm mem-max >> >> Set the maximum amount reservation for a domain. >> # xm list --long vm1 | grep maxmem >> (maxmem 256) >> >> Signed-off-by: Masaki Kanno >> >> Best regards, >> Kan >>