login
Header Space

 
 

Re: [ANNOUNCE/RFC] Really Simple Really Fair Scheduler

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Roman Zippel <zippel@...>
Cc: <linux-kernel@...>, <peterz@...>, Mike Galbraith <efault@...>
Date: Monday, September 3, 2007 - 3:20 pm

* Roman Zippel <zippel@linux-m68k.org> wrote:


thanks. (and i did not claim nor do i want to claim this to be the 
essence of your efforts - it is very clear from your mails where your 
focus is.)

My next question then is about this code of yours in the wakeup path:

 +static void
 +enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
 +{
 +       kclock_t min_time;
 +
 +       verify_queue(cfs_rq, cfs_rq->curr != se, se);
 +       min_time = get_time_avg(cfs_rq) - se->req_weight_inv;
 +       if ((kclock_t)(se->time_norm - min_time) < 0)
 +               se->time_norm = min_time;

why do you only use the "min_time" if the pre-sleep time_norm is smaller 
than the min_time? Here 'min_time' is close to the current average. 
Shouldnt here the woken up task be set to the average time, like i did 
it in the crude prototype:

+               se->exec_runtime = avg_exec_runtime(cfs_rq);

(and lets again only consider the special case of only having nice-0 
tasks.)

Or is it set in a similar way as my prototype does, and i missed some 
detail why that branch is there?

	Ingo
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE/RFC] Really Simple Really Fair Scheduler, Ingo Molnar, (Sun Sep 2, 8:01 am)
Re: [ANNOUNCE/RFC] Really Simple Really Fair Scheduler, Roman Zippel, (Mon Sep 3, 2:38 pm)
Re: [ANNOUNCE/RFC] Really Simple Really Fair Scheduler, Roman Zippel, (Mon Sep 3, 3:13 pm)
Re: [ANNOUNCE/RFC] Really Simple Really Fair Scheduler, Ingo Molnar, (Mon Sep 3, 3:20 pm)
Re: [ANNOUNCE/RFC] Really Simple Really Fair Scheduler, Roman Zippel, (Mon Sep 3, 3:55 pm)
Re: [ANNOUNCE/RFC] Really Simple Really Fair Scheduler, Roman Zippel, (Mon Sep 3, 10:50 pm)
Re: [ANNOUNCE/RFC] Really Simple Really Fair Scheduler, Roman Zippel, (Tue Sep 4, 7:21 am)
speck-geostationary