From owner-freebsd-threads@FreeBSD.ORG Mon Mar 1 21:39:16 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 EE37416A4CE; Mon, 1 Mar 2004 21:39:16 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D3043D1D; Mon, 1 Mar 2004 21:39:14 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i225dDbN011589; Tue, 2 Mar 2004 00:39:14 -0500 (EST) Date: Tue, 2 Mar 2004 00:39:13 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Peter Grehan In-Reply-To: <40441A7E.7000805@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 05:39:17 -0000 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