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

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix sched commands for when wrong domain is given
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 31 Jan 2007 11:28:39 +0900
Delivery-date: Tue, 30 Jan 2007 18:28:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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>

Best regards,
 Kan

Attachment: xm_sched_2.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix sched commands for when wrong domain is given, Masaki Kanno <=