[haiku-development] Re: Res: Scheduler algorithm improvements

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 07 Nov 2009 19:56:08 +0100

Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx> wrote:
> > For testing I had hacked a panic into
> > enable_interrupts()/restore_interrupts() when interrupts were 
> > turned
> > off for more than x usecs. That only worked for single CPU 
> > machines,
> > that's why I didn't commit it; I may rework it to support SMP as 
> > well,
> > or clean it up at least.
> This may be a stupid question but could we somehow measure and log 
> threads that
> hog more than it's quanta (by disabling interrupts) to find 
> 'evildoers'?

A panic will point you to the "evildoer" anyway. Not sure there is a 
need for more.

Bye,
   Axel.


Other related posts: