From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 25 21:18:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56ABF16A421 for ; Sun, 25 Nov 2007 21:18:13 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id C17B613C468 for ; Sun, 25 Nov 2007 21:18:12 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5158766A460; Sun, 25 Nov 2007 22:18:10 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ky6LmlpnDSFu; Sun, 25 Nov 2007 22:18:09 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E70F566A42F; Sun, 25 Nov 2007 22:18:08 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id lAPLI7ML012306; Sun, 25 Nov 2007 22:18:07 +0100 (CET) (envelope-from rdivacky) Date: Sun, 25 Nov 2007 22:18:07 +0100 From: Roman Divacky To: Stephen Montgomery-Smith Message-ID: <20071125211807.GA12250@freebsd.org> References: <474830F9.90305@zirakzigil.org> <6eb82e0711240638g2cc1e54o1fb1321cafe8ff9f@mail.gmail.com> <1188.202.127.99.4.1195957922.squirrel@webmail.triplegate.net.id> <20071125110116.U63238@fledge.watson.org> <20071125143546.V6583@cauchy.math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071125143546.V6583@cauchy.math.missouri.edu> User-Agent: Mutt/1.4.2.3i Cc: binto , freebsd-hackers@freebsd.org, Robert Watson , Girwatson@freebsd.org Subject: Re: Before & After Under The Giant Lock X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2007 21:18:13 -0000 On Sun, Nov 25, 2007 at 02:41:35PM -0600, Stephen Montgomery-Smith wrote: > > > On Sun, 25 Nov 2007, Robert Watson wrote: > > >........................ > >In FreeBSD 8, I expect we'll see a continued focus on both locking > >granularity and improving opportunities for kernel parallelism by better > >distributing workloads over CPU pools. This is important because the > >number of cores/chip is continuing to increase dramatically, so MP > >performance is going to be important to keep working on. That said, the > >results to date have been extremely promising, and I anticipate that we > >will continue to find ways to better exploit multiprocessor hardware, > >especially in the network stack. > > > > I just want to add my 2 cents, that my recent experience with FreeBSD MP > has been extremely positive. I tend to use highly CPU bound MP programs, > typically lots and lots of floating point operations. It used to be that > Linux beat FreeBSD hands down - now FreeBSD seems to have a slight edge! > Basically my program runs about twice as fast when I run two threads as > opposed to one - I cannot see doing any better than that! pure computation does not need kernel operations most of the time.. ie. multi-threading kernel wont help much ;)