From owner-freebsd-threads@FreeBSD.ORG Mon Mar 1 23:18:03 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3BC816A4CE; Mon, 1 Mar 2004 23:18:03 -0800 (PST) Received: from exchhz01.viatech.com.cn (ip-40-162-97-218.anlai.com [218.97.162.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A62243D2F; Mon, 1 Mar 2004 23:18:01 -0800 (PST) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (DAVIDWNT [10.4.1.99]) by exchhz01.viatech.com.cn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id FH4K6S9V; Tue, 2 Mar 2004 15:17:58 +0800 Message-ID: <4044354B.3080005@freebsd.org> Date: Tue, 02 Mar 2004 15:18:35 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Grehan References: <40441A7E.7000805@freebsd.org> In-Reply-To: <40441A7E.7000805@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: threads stress test X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2004 07:18:03 -0000 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. > > 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. I ran it on an old Celeron 500Mhz (Pentium II class): ------------------------------------------------- 1. Process scope thread (libpthread) ./pp -s process -v PING-PONG CONFIGURATION: target (-i) = 1000000 ntables (-n) = 1 sleepms (-z) = 0 pthread_scope (-s) = process pthread_process (-p) = private concurrency (-c) = 0 stacksize (-S) = 0 2 threads initialised in 1ms 1 games completed in 9713ms --------------------------------------------------- 2. System scope thread (libpthread) ./pp -s system -v PING-PONG CONFIGURATION: target (-i) = 1000000 ntables (-n) = 1 sleepms (-z) = 0 pthread_scope (-s) = system pthread_process (-p) = private concurrency (-c) = 0 stacksize (-S) = 0 2 threads initialised in 1ms 1 games completed in 25630ms ------------------------------------------------- 3. With libc_r ./pp_r -v PING-PONG CONFIGURATION: target (-i) = 1000000 ntables (-n) = 1 sleepms (-z) = 0 pthread_scope (-s) = process pthread_process (-p) = private concurrency (-c) = 0 stacksize (-S) = 0 2 threads initialised in 0ms 1 games completed in 8266ms ----------------------------------------------- 4. With libthr ./ppthr -v PING-PONG CONFIGURATION: target (-i) = 1000000 ntables (-n) = 1 sleepms (-z) = 0 pthread_scope (-s) = process pthread_process (-p) = private concurrency (-c) = 0 stacksize (-S) = 0 2 threads initialised in 1ms 1 games completed in 88306ms -------------------------------------------- Interesting article, it seems libc_r is still fastest in the test. ;-) > > 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 ! > > later, > > Peter. > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to > "freebsd-threads-unsubscribe@freebsd.org" > >