Re: [RFC PATCH 06/14] sched: aggregate total task_group load

From: Nikunj A Dadhania
Date: Thu Feb 16 2012 - 23:42:05 EST


On Wed, 01 Feb 2012 17:38:26 -0800, Paul Turner <pjt@xxxxxxxxxx> wrote:
> +static inline void __update_cfs_rq_tg_load_contrib(struct cfs_rq *cfs_rq,
> + int force_update)
> +{
> + struct task_group *tg = cfs_rq->tg;
> + s64 tg_contrib;
> +
> + tg_contrib = cfs_rq->runnable_load_avg + cfs_rq->blocked_load_avg;
> + tg_contrib -= cfs_rq->tg_load_contrib;
> +
> + if (force_update || abs64(tg_contrib) > cfs_rq->tg_load_contrib / 8) {
>
Not obvious to me where this 8 is coming from?

Regards
Nikunj

--
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/