[lkml]   [2009]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: scheduler bug - threads not being scheduled for long periods
On Mon, 2009-01-05 at 11:56 -0600, Dimitri Sivanich wrote:
> One place we've found this happens is in update_curr(), which calculates a
> delta_exec value as follows:
> delta_exec = (unsigned long)(now - curr->exec_start);
> Sometimes this value will be very large, as 'now' (the rq clock time) will
> be less than 'exec_start'. When this happens, __update_curr() will
> calculate a delta_exec_weighted based on this large value and add it to the
> thread's vruntime:
> curr->vruntime += delta_exec_weighted;

So you're saying your rq->clock = sched_clock_cpu(cpu) = sched_clock()
[on ia64] goes backwards?

If so, then that's an architecture bug, sched_clock() must never be seen
to go backwards!

 \ /
  Last update: 2009-01-05 21:59    [W:0.059 / U:21.428 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site