Re: [patch 08/16] sched: throttle cfs_rq entities which exceed theirlocal runtime

From: Bharata B Rao
Date: Wed Jun 22 2011 - 03:11:41 EST


On Tue, Jun 21, 2011 at 12:16:57AM -0700, Paul Turner wrote:
> @@ -1505,7 +1559,17 @@ enqueue_task_fair(struct rq *rq, struct
> break;
> cfs_rq = cfs_rq_of(se);
> enqueue_entity(cfs_rq, se, flags);
> +
> + /*
> + * end evaluation on encountering a throttled cfs_rq
> + *
> + * note: in the case of encountering a throttled cfs_rq we will
> + * post the final h_nr_running decrement below.

You mean 'final h_nr_running increment' I suppose ?

> + */
> + if (cfs_rq_throttled(cfs_rq))
> + break;
> cfs_rq->h_nr_running++;
> +
> flags = ENQUEUE_WAKEUP;
> }
>
> @@ -1513,11 +1577,15 @@ enqueue_task_fair(struct rq *rq, struct
> cfs_rq = cfs_rq_of(se);
> cfs_rq->h_nr_running++;

Regards,
Bharata.
--
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/