From owner-freebsd-current@FreeBSD.ORG Tue Jul 3 00:51:16 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E08316A41F for ; Tue, 3 Jul 2007 00:51:16 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id DA45113C44C for ; Tue, 3 Jul 2007 00:51:15 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop2.montlan (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.1/8.13.4) with ESMTP id l630ZBfc001117 for ; Mon, 2 Jul 2007 19:35:12 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <468999BF.9040006@math.missouri.edu> Date: Mon, 02 Jul 2007 19:35:11 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.4) Gecko/20070630 SeaMonkey/1.1.2 MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 03 Jul 2007 01:00:28 +0000 Subject: great job with multithreaded programs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2007 00:51:16 -0000 I did a recent upgrade of current, and a multithreaded program which used to take 33s suddenly takes 18s. Somebody did something very right!!! I can provide details (but please email me directly as I don't subscribe to current), but basically the program does these massively large 3D Fourier transforms using the math/fftw3 port. I have two dual Xeon's with HT running, and I run fftw3 with 4 threads. I use the ULE scheduler, and have witness and invariants all switched off. I should add, perhaps disappointingly, that this now only brings FreeBSD on par with Linux with respect to this program - Red Hat Linux also ran this at 18s. But hopefully this is part of some rather skillful reworking of multithreading on FreeBSD and we will see great gains in the future. Best regards, Stephen