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

Re: [Xen-devel] [PATCH v1 4/4] xl: introduce rt scheduler



Hi Dario,


2014-09-05 5:40 GMT-04:00 Dario Faggioli <dario.faggioli@xxxxxxxxxx>:
On mer, 2014-09-03 at 18:28 -0400, Meng Xu wrote:

> 2014-09-03 11:52 GMT-04:00 George Dunlap
> <George.Dunlap@xxxxxxxxxxxxx>:

>Â Â Â Â ÂThe main thing about this is that you probably want to have an
>Â Â Â Â Âinterface where you can set the parameters for multiple vcpus
>Â Â Â Â Âat once;
>Â Â Â Â Âand that's probably the case regardless of whether we end up
>Â Â Â Â Âmaking
>Â Â Â Â Âthe hypercall able to batch vcpus or do them one-at-a-time.
>
>
> âI'm totally fine with allowing users to set the parameters for
> multiple vcpus at once.
>
>
> My question is:
> When users set multiple vcpus at once, how the command looks like?
> For example, if they want to set two vcpus' parameters for dom 1's at
> once (to be specific, set vcpu 0's period to 20 and budget to 10, and
> set vcpu 1's period to 30 and budget to 20.), they should use the
> command like "xl sched-rt -d 1 -v 0 -p 20 -b 10 -v 1 -p 30 -b 20"?
>
So, since we agreed about only allowing, *for* *now*, per-domain
parameter setting, this is not a requirement anymore, is it?


âRight! âI did some happy coding yesterday and removed the "array" parts that is required to set/get each vcpu's parameters and should be able to send a new patch today or tomorrow.

Â
I think we can just stick to a pretty basic implementation of `xl
sched-rt', acting similarly to its credit, credit2 (and sedf)
counterparts.


âRight! Now the 'xl sched-rt' result is:
/*Note: Domain-0 has four vcpus, each vcpu has period 20000us and budget 8000us*/

# xl sched-rt

Cpupool Pool-0: sched=EDF

Name                ID  Period  Budget

Domain-0 Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0 Â Â 20000Â Â Â 8000


We can change domain's parameter as follows:

#xl sched-rt -d Domain-0 -p 40000 -b 20000

/*This will set each vcpu of domain 0's to have period 40000us and budget 20000us*/


âIs this ok? Or maybe we can discuss this after I send out the simplified version?â

Â
How to allow an user to set the parameters for multiple vcpus at the
same time from xl has become a Xen 4.6 issue. :-)

âSure! That make sense and makes this not urgent. :-Pâ

âMengâ



-----------
Meng Xu
PhD Student in Computer and Information Science
University of Pennsylvania
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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