| Date | Wed, 16 Feb 2011 23:15:26 +0530 | From | Balbir Singh <> | Subject | Re: [CFS Bandwidth Control v4 2/7] sched: accumulate per-cfs_rq cpu usage |
| |
* Paul Turner <pjt@google.com> [2011-02-15 19:18:33]:
> Introduce account_cfs_rq_quota() to account bandwidth usage on the cfs_rq > level versus task_groups for which bandwidth has been assigned. This is > tracked by whether the local cfs_rq->quota_assigned is finite or infinite > (RUNTIME_INF). > > For cfs_rq's that belong to a bandwidth constrained task_group we introduce > tg_request_cfs_quota() which attempts to allocate quota from the global pool > for use locally. Updates involving the global pool are currently protected > under cfs_bandwidth->lock, local pools are protected by rq->lock. > > This patch only attempts to assign and track quota, no action is taken in the > case that cfs_rq->quota_used exceeds cfs_rq->quota_assigned. > > Signed-off-by: Paul Turner <pjt@google.com> > Signed-off-by: Nikhil Rao <ncrao@google.com> > Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> > ---
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
-- Three Cheers, Balbir
|