Re: [Xen-devel] [PATCH v2 1/4] xen: credit2: implement utilization cap

2017-09-14 Thread George Dunlap
On 09/14/2017 05:20 PM, George Dunlap wrote: > On 08/18/2017 04:50 PM, Dario Faggioli wrote: >> This commit implements the Xen part of the cap mechanism for >> Credit2. >> >> A cap is how much, in terms of % of physical CPU time, a domain >> can execute at most. >> >> For instance, a domain that

Re: [Xen-devel] [PATCH v2 1/4] xen: credit2: implement utilization cap

2017-09-14 Thread George Dunlap
On 08/18/2017 04:50 PM, Dario Faggioli wrote: > This commit implements the Xen part of the cap mechanism for > Credit2. > > A cap is how much, in terms of % of physical CPU time, a domain > can execute at most. > > For instance, a domain that must not use more than 1/4 of > one physical CPU,

Re: [Xen-devel] [PATCH v2 1/4] xen: credit2: implement utilization cap

2017-09-05 Thread Dario Faggioli
On Thu, 2017-08-24 at 20:42 +0100, Anshul Makkar wrote: > On 8/18/17 4:50 PM, Dario Faggioli wrote: > >    > > @@ -1515,7 +1633,16 @@ static void reset_credit(const struct > > scheduler *ops, int cpu, s_time_t now, > >    * that the credit it has spent so far get accounted. > >    

Re: [Xen-devel] [PATCH v2 1/4] xen: credit2: implement utilization cap

2017-08-24 Thread Anshul Makkar
On 8/18/17 4:50 PM, Dario Faggioli wrote: @@ -474,6 +586,12 @@ static inline struct csched2_runqueue_data *c2rqd(const struct scheduler *ops, return _priv(ops)->rqd[c2r(cpu)]; } +/* Does the domain of this vCPU have a cap? */ +static inline bool has_cap(const struct csched2_vcpu

[Xen-devel] [PATCH v2 1/4] xen: credit2: implement utilization cap

2017-08-18 Thread Dario Faggioli
This commit implements the Xen part of the cap mechanism for Credit2. A cap is how much, in terms of % of physical CPU time, a domain can execute at most. For instance, a domain that must not use more than 1/4 of one physical CPU, must have a cap of 25%; one that must not use more than 1+1/2 of