This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Encouraging the kernel(?) to more efficiently wake my threads
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