All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 10 of 10] xl: Implement sched-credit schedule parameter command-line interface
Date: Tue, 21 Feb 2012 18:11:53 +0000	[thread overview]
Message-ID: <1329847913.2196.123.camel@elijah> (raw)
In-Reply-To: <20291.56025.490397.260688@mariner.uk.xensource.com>

On Tue, 2012-02-21 at 17:56 +0000, Ian Jackson wrote:
> George Dunlap writes ("[Xen-devel] [PATCH 10 of 10] xl: Implement sched-credit schedule parameter command-line interface"):
> > Add features to the sched-credit interface to allow querying and
> > displaying scheduler parameters.  New interface works as follows:
> > 
> >  <nothing>             : List all domain params and sched params from all pools
> >  -d [domid]            : List domain params for domain
> >  -d [domid] [params]   : Set domain params for domain
> >  -p [pool]             : list all domains and sched params for pool
> >  -s                    : List sched params for poolid 0
> >  -s [params]           : Set sched params for poolid 0
> >  -p [pool] -s          : List sched params for pool
> >  -p [pool] -s [params] : Set sched params for pool
> >  -p [pool] -d...       : Illegal
> 
> This information should be in the xl manpage, rather than in the
> commit message and a code comment.

Of course.  And, is there some other documentation that this should be
put into as well?  

> 
> > +static int sched_credit_param_set(
> > +    int poolid, libxl_sched_credit_param *scinfo)
> > +{
> 
> Formatting.  It should be
> 
> static int sched_credit_param_set(int poolid, libxl_sched_credit_param *scinfo)
> 
> (79 columns) or
> 
> static int sched_credit_param_set(int poolid,
>                                   libxl_sched_credit_param *scinfo)
> 
> (67 columns).
> 
> This should be changed throughout I'm afraid.

Ack.

> 
> > +        } else { /* Set scheduling parameters*/
> > +            rc = sched_credit_param_get(poolid, &scparam);
> 
> What happens if the pool isn't using the credit scheduler ?

Ah, good point.  I suppose it should just print the pool name.

What happens to output of domains when you use xl sched-credit and there
is a pool that's not using the credit scheduler?  It looks like it will
stop at that point and quit processing.  It seems like having it print
the domain ID and "[not sched-credit]" or something like that would be
better.

What would be *even* better is to unify these all somehow, so that xl
would automatically detect the appropriate scheduler for the pool and
behave accordingly.  But that's a patch series for another time, I
think.

 -George

  reply	other threads:[~2012-02-21 18:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 13:34 [PATCH 00 of 10] Allow user to configure credit scheduler parameters George Dunlap
2012-02-21 13:34 ` [PATCH 01 of 10] cleanup: Remove dependency files in efi directory during a make clean George Dunlap
2012-02-21 13:34 ` [PATCH 02 of 10] xen: Add a #define for the default ratelimit George Dunlap
2012-02-21 13:34 ` [PATCH 03 of 10] xen: Print ratelimit in scheduler debugkey George Dunlap
2012-02-21 13:34 ` [PATCH 04 of 10] xen: Implement SCHEDOP sysctl for credit scheduler George Dunlap
2012-02-21 13:34 ` [PATCH 05 of 10] libxc: " George Dunlap
2012-02-21 17:49   ` Ian Jackson
2012-02-21 13:34 ` [PATCH 06 of 10] libxl: cleanup: Remove pointless ERRNOVAL George Dunlap
2012-02-21 17:46   ` Ian Jackson
2012-02-21 13:34 ` [PATCH 07 of 10] libxl: Rename libxl_sched_* to include _domain George Dunlap
2012-02-21 17:52   ` Ian Jackson
2012-02-21 17:54     ` George Dunlap
2012-02-21 13:34 ` [PATCH 08 of 10] libxl: Implement libxl_sched_credit_param_[gs]et George Dunlap
2012-02-21 17:51   ` Ian Jackson
2012-02-21 17:56     ` George Dunlap
2012-02-21 17:57       ` Ian Jackson
2012-02-21 13:34 ` [PATCH 09 of 10] xl: Refactor sched_domain_output to have a callback for pool information George Dunlap
2012-02-21 17:49   ` Ian Jackson
2012-02-21 13:34 ` [PATCH 10 of 10] xl: Implement sched-credit schedule parameter command-line interface George Dunlap
2012-02-21 17:56   ` Ian Jackson
2012-02-21 18:11     ` George Dunlap [this message]
2012-02-21 18:17       ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329847913.2196.123.camel@elijah \
    --to=george.dunlap@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.