Encouraging the kernel(?) to more efficiently wake my threads

Chris Stankevitz chrisstankevitz@gmail.com
Wed Nov 9 21:54:00 GMT 2011


On Sun, Nov 6, 2011 at 1:56 PM, Chris Stankevitz
<chrisstankevitz@gmail.com> wrote:
> In picture form:
>  http://img7.imageshack.us/img7/5435/threadsi.png

I'm getting closer to figuring this out.  The amount of concurrency
linux offers me varies with the duration of the 'baby thread' task.
Ideally I'd like to see the concurrency level the same as my cpu count
(4).  I get this ideal situation only if my baby thread task duration
is ~100ms or more.

Baby task duration / concurrency
1ms / 2
10ms / 3
100ms or more / 4

Chris



More information about the Libc-help mailing list