Re: [Question] Linux CFS sched_entity

2014-03-25 Thread lwcheng
Quoting Morten Rasmussen : On Mon, Mar 17, 2014 at 04:55:41AM +, lwch...@cs.hku.hk wrote: In what situations does cfs_rq->curr point to a task_group? What's the sense? I thought it should always contain a "real" task. In nested task groups cfs_rq->curr may point to a sched_entity which i

Re: [Question] Linux CFS sched_entity

2014-03-25 Thread Morten Rasmussen
On Mon, Mar 17, 2014 at 04:55:41AM +, lwch...@cs.hku.hk wrote: > In what situations does cfs_rq->curr point to a task_group? > What's the sense? I thought it should always contain a "real" task. In nested task groups cfs_rq->curr may point to a sched_entity which is a nested task group (cfs_rq

[Question] Linux CFS sched_entity

2014-03-16 Thread lwcheng
Hi, I am studying Linux CFS recently. After numerous searches, I am still unable to get rid of the following question. Finally I decide to bother this group for the answer. In group scheduling, sched_entity can represent both "task group" and "task", indicated by "se->my_q". When CFS tries to pi