threads stress test

Daniel Eischen eischen at vigrid.com
Mon Mar 1 21:39:17 PST 2004


On Tue, 2 Mar 2004, Peter Grehan wrote:

> I've been using the ping-pong test program described in:
> 
>    http://wwws.sun.com/software/whitepapers/solaris9/multithread.pdf
> 
>   to test out Suleiman Souhal's PPC libthr patches.

FYI, you can also build libpthread in 1:1 mode and won't need
a fully working set of user context switch functions.  Both
alpha and sparc64 seem to limp by with 1:1 libpthread.

>   I just took out sledge (AMD64) with this when linking against
> libpthread and running with '-v -i 10000'. Not sure if it happens
> on i386, but maybe KSE developers might want to give it a try.
> Source is at:
> 
>    http://www.freebsd.org/~grehan/pp.c
> 
>   WRT libthr, ctl-C from the shell doesn't seem to get through when
> running this program (verified on panther/sparc64), although libpthread
> does the right thing.
> 
>   Oops, just took out panther when running with libthr after doing
> some libpthread testing. Definitely worth a try !

I can also take out panther running a very simple libpthread (in 1:1
mode) test (libpthread/test/sigwait_d.c).

-- 
Dan Eischen



More information about the freebsd-threads mailing list