On 05/03/2013 03:55 PM, Alex Shi wrote: > Just find a benchmark named as pthread_cond_broadcast. > http://kristiannielsen.livejournal.com/13577.html. will play with it. :) >> >
I tried the pthread_cond_broadcast with/without my latest patchset, seems no clear performance change. without the patch, finished 30000 threads need 0.39 ~ 0.49 seconds in ten times testing, with the patch, finished 30000 thread need 0.38 ~ 0.47 seconds in ten times testing. I try to give more threads in testing, but when thread number increased to 40000, the testing become extremely slow and gdb find it busy on thread creating. [New Thread 0x7fe470411700 (LWP 24629)] [New Thread 0x7fe470512700 (LWP 24628)] [New Thread 0x7fe470613700 (LWP 24627)] [New Thread 0x7fe470714700 (LWP 24626)] -- Thanks Alex -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/