From owner-freebsd-threads@FreeBSD.ORG Tue Nov 16 00:00:04 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 ADF6416A4D1 for ; Tue, 16 Nov 2004 00:00:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FD8C43D46; Tue, 16 Nov 2004 00:00:04 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) iAG0032T077129; Tue, 16 Nov 2004 00:00:03 GMT (envelope-from davidxu@freebsd.org) Message-ID: <41994302.6020806@freebsd.org> Date: Tue, 16 Nov 2004 08:00:02 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040921 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <419914F0.1010308@he.iki.fi> <41991A87.6010803@elischer.org> <41991B66.4090801@elischer.org> In-Reply-To: <41991B66.4090801@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: performance tuning 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, 16 Nov 2004 00:00:04 -0000 Julian Elischer wrote: > > > Julian Elischer wrote: > >> >> >> Petri Helenius wrote: >> >>> >>> Now that 5.3 is the first STABLE release, is the future focus on >>> -threads towards performance, so that benchmarks and profiling, etc. >>> would be appreciated somewhat more than they might have been >>> previously when the development was more in the "just get it working >>> right" mode? >>> >> Basically, yes. >> there is still work to do in the "get it right" field but >> it's working "right enough" now that performance is >> starting to be an issue. >> >> There is work proceeding on 3 fronts. >> >> * libthr continues to be improved by Mike. >> >> * libpthread is being scrutinised for ineffiencies and problems. >> In particular M:N performance has a lot to be desired. >> >> * (from left field) David has been working on a hybrid of libpthread and >> libthr. As a private project, David is playing w > > > oops accidentally deleted some of my own mail.. > > > > -- with a version of libpthread optimised for 1:1 using libthr > entrypoints. > You can try: http://people.freebsd.org/~davidxu/kern_thr.c http://people.freebsd.org/~davidxu/kern_umtx.c http://people.freebsd.org/~davidxu/libfptl.tgz I can run all applications current libpthread can run. Performance still needs to be tuned in kern_umtx.c, but it already beats current libpthread performance using supersmacks with 100 clients. :-) David Xu