From: Ewan Mellor Subject: Re: [PATCH] Fix sched commands for when wrong domain is given Date: Tue, 6 Feb 2007 16:05:41 +0000 Message-ID: <20070206160541.GO6150@leeni.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , 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 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 [-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 [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 [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 Applied, thank you. Ewan.