Re: fair clock use in CFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 







It is possible to do something like this in check_preemption ?

      delta = curr->fair_key - first->fair_key;

      if (delta > ??? [scale it as you wish] ||
(curr->key > first->key) && (curr->wait_runtime > ??? [simple funtion of curr->weight]) )
             preempt
Forgive me, there is typo in the above check. It should be "less than" since we are controlling negative lags.

(curr->key > first->key) && (curr->wait_runtime < ??? [simple funtion of curr->weight]) )


A limit control on wait_runtime may prevent a high weight task from running for too long, so that others get executed a little earlier. Just a thought :-)


Ting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux