From owner-freebsd-current@FreeBSD.ORG Tue Sep 16 03:41:40 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 007FF1065670 for ; Tue, 16 Sep 2008 03:41:40 +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 8CFD58FC15 for ; Tue, 16 Sep 2008 03:41:39 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop3.gateway.2wire.net (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.2/8.14.2) with ESMTP id m8G3etbm008083; Mon, 15 Sep 2008 22:40:56 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <48CF2AEF.9070208@math.missouri.edu> Date: Mon, 15 Sep 2008 22:41:35 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.16) Gecko/20080909 SeaMonkey/1.1.11 MIME-Version: 1.0 To: Steve Kargl References: <48CDBC78.4010409@math.missouri.edu> <20080915195021.GA69528@cons.org> <48CEFF74.8020602@math.missouri.edu> <20080916033459.GA31220@troutmask.apl.washington.edu> In-Reply-To: <20080916033459.GA31220@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Martin Cracauer , freebsd-current@freebsd.org Subject: Re: Improved multiprocessor usage on amd64 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, 16 Sep 2008 03:41:40 -0000 Steve Kargl wrote: > On Mon, Sep 15, 2008 at 07:36:04PM -0500, Stephen Montgomery-Smith wrote: >> ... and each thread is a loop of the form >> >> while (1) { >> wait until told to start; >> do massive amounts of floating point arithmetic (only additions and >> multiplications) on large arrays; >> tell the master process that you are done; >> } >> >>> Do you have about as many threads as processor or more? >> Both ways. The time difference between the two approaches is negligible. >> > > Are you using ULE? With my MPI applications, if the number of > launched processes exceeds the number of cpus by 1, ULE falls > through the floor. I have a nagging feeling that there is > a problem with cpu affinity. > > http://lists.freebsd.org/pipermail/freebsd-current/2008-July/086917.html > I get the same phenomenon with ULE and 4BSD. I would say that they perform about the same. But yes, I do have at least one more process running than the number of CPUs. One of the processes is the master process, that controls the others, and it does comparatively little work compared to the others, but it is still there, and it does do some work.