Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2004 11:19:33 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        John Baldwin <jhb@freebsd.org>
Subject:   Activating idle threads.
Message-ID:  <Pine.BSF.4.21.0407061115220.64529-100000@InterJet.elischer.org>
In-Reply-To: <16618.49641.241488.96595@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 6 Jul 2004, Andrew Gallatin wrote:

> 
> Julian Elischer writes:
>  > 
>  > Drew, what happens to the 47uSec if you do: 
>  > sysctl machdep.cpu_idle_hlt=0
>  > 
> 
> The gap between libthr and libpthread remains constant, but
> both get at 10us speedup.


ok, then I had a patch for 4.x
that could help if updated to -current.


 http://www.freebsd.org/~julian/it.diff

the idea is that when we schedule a process, we kick an idle cpu if
there is one. That makes it take on the newly runnable thread instead 
of waiting until the next interrupt or tick.

I think that jhb is probably the person to actually
bring this concept up-to-date as he has his fingers in there at the
moment.. I'll cc him..

julian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0407061115220.64529-100000>