Re: [PATCH v3 2/7] sched: accumulate per-cfs_rq cpu usage

From: Balbir Singh
Date: Wed Oct 13 2010 - 09:59:16 EST


* Nikhil Rao <ncrao@xxxxxxxxxx> [2010-10-13 06:46:18]:

> > Quick question for cfs_b->quota == RUNTIME_INF, won't cfs_b->runtime
> > be always > 0?
>
> Hi Balbir,
>
> cfs_b->runtime can be 0 if the task group exhausts its quota.
> cfs_b->runtime is a counter that is periodically refreshed to
> cfs_b->quota, and is decremented every time a cfs_rq requests a slice.
>

Thanks, Nikhil

I saw several checks for quota == RUNTIME_INF and saw updates not
happening. Do we track usage for cgroups with infinite quota? IOW, is
runtime updated? If so, why?

--
Three Cheers,
Balbir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/