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 sched commands for when wrong domain is give

To: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix sched commands for when wrong domain is given
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Tue, 6 Feb 2007 16:05:41 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 06 Feb 2007 08:05:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <A4C744DF848430kanno.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: <A4C744DF848430kanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Wed, Jan 31, 2007 at 11:28:39AM +0900, Masaki Kanno wrote:

Content-Description: Mail message body
> Hi,
> 
> I found strange issues. I gave a wrong domain name to the xm sched 
> commands. The xm sched commands only showed the header at that time. 
> And the xm sched-sedf command did not become an error when I tried 
> to set scheduler parameters. 
> 
> # xm sched-credit -d Nonexistent-domain
> Name                              ID Weight Cap 
> 
> # xm sched-sedf Nonexistent-domain
> Name                              ID Period(ms) Slice(ms) Lat(ms) Extra Weight
> # xm sched-sedf Nonexistent-domain -w 10
> # 
> 
> 
> I fixed it. When the wrong domain name is given, the xm sched 
> commands show the following error messages. 
> 
> # xm sched-credit -d Nonexistent-domain
> Error: Domain 'Nonexistent-domain' does not exist.
> Usage: xm sched-credit [-d <Domain> [-w[=WEIGHT]|-c[=CAP]]]
> 
> Get/set credit scheduler parameters.
>   -d DOMAIN, --domain=DOMAIN     Domain to modify 
>   -w WEIGHT, --weight=WEIGHT     Weight (int) 
>   -c CAP, --cap=CAP              Cap (int) 
> 
> # xm sched-sedf Nonexistent-domain
> Error: Domain 'Nonexistent-domain' does not exist.
> Usage: xm sched-sedf <Domain> [options]
> 
> Get/set EDF parameters.
>   -p [MS], --period[=MS]         Relative deadline(ms) 
>   -s [MS], --slice[=MS]          Worst-case execution time(ms). (slice < 
>                                  period)
>   -l [MS], --latency[=MS]        Scaled period (ms) when domain performs 
>                                  heavy I/O
>   -e [FLAG], --extra[=FLAG]      Flag (0 or 1) controls if domain can run 
>                                  in extra time.
>   -w [FLOAT], --weight[=FLOAT]   CPU Period/slice (do not set with 
>                                  --period/--slice)
> 
> # xm sched-sedf Nonexistent-domain -w 10
> Error: Domain 'Nonexistent-domain' does not exist.
> Usage: xm sched-sedf <Domain> [options]
> 
> Get/set EDF parameters.
>   -p [MS], --period[=MS]         Relative deadline(ms) 
>   -s [MS], --slice[=MS]          Worst-case execution time(ms). (slice < 
>                                  period)
>   -l [MS], --latency[=MS]        Scaled period (ms) when domain performs 
>                                  heavy I/O
>   -e [FLAG], --extra[=FLAG]      Flag (0 or 1) controls if domain can run 
>                                  in extra time.
>   -w [FLOAT], --weight[=FLOAT]   CPU Period/slice (do not set with 
>                                  --period/--slice)
> 
> 
> Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Applied, thank you.

Ewan.

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] [PATCH] Fix sched commands for when wrong domain is given, Ewan Mellor <=