[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Fix sched commands for when wrong domain is given



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.