From: weiming Subject: Re: [PATCH] Fix xm mem-max command Date: Tue, 26 Feb 2008 08:30:06 -0500 Message-ID: References: <9EC878685A7964kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0902382522==" Return-path: In-Reply-To: <9EC878685A7964kanno.masaki@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Masaki Kanno Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0902382522== Content-Type: multipart/alternative; boundary="----=_Part_12827_7084890.1204032606786" ------=_Part_12827_7084890.1204032606786 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I got similar problems with these scripts on the range of int. Do you know how to solve them radically? weiming 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 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > ------=_Part_12827_7084890.1204032606786 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I got similar problems with these scripts on the range of int.
Do you know how to solve them radically?

weiming

2008/2/26 Masaki Kanno <kanno.masaki@jp.fujitsu.com>:
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 <Domain> <Mem>

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 <Domain> <Mem>

Set the maximum amount reservation for a domain.
# xm list --long vm1 | grep maxmem
   (maxmem 256)

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>

Best regards,
 Kan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel


------=_Part_12827_7084890.1204032606786-- --===============0902382522== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0902382522==--