WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Fix xm mem-max command

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] Fix xm mem-max command
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Fri, 8 Jun 2007 15:23:19 +0100
Cc: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Delivery-date: Fri, 08 Jun 2007 07:21:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BCC7A97A9605A9kanno.masaki@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BCC7A97A9605A9kanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
> When I tested xm mem-max and xm list, I saw the following error
> message by xm list.  Because xm mem-max always changes
> "memory_static_max", I think that the cause of the error message
> is it.  This patch fixes it.

Nice catch, patch looks good.

Acked-by: Mark Williamson <mark.williamson@xxxxxxxxxxxx>

Cheers,
Mark

> # xm list --long PVdomain.1 | grep mem
>     (maxmem 1024)
>     (memory 1024)
>     (shadow_memory 0)
> # xm mem-max PVdomain.1 512
> Error: (22, 'Invalid argument')
> Usage: xm mem-max <Domain> <Mem>
>
> Set the maximum amount reservation for a domain.
> # xm list --long PVdomain.1 | grep mem
> Error: memory_dynamic_max must be less than or equal to memory_static_max
>
>
> Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
>
> Best regards,
>  Kan



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

<Prev in Thread] Current Thread [Next in Thread>