From owner-freebsd-current@FreeBSD.ORG Mon Sep 15 01:38:01 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 62FA0106566B for ; Mon, 15 Sep 2008 01:38:01 +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 0C5048FC22 for ; Mon, 15 Sep 2008 01:38:00 +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 m8F1bPRe017191 for ; Sun, 14 Sep 2008 20:37:25 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <48CDBC78.4010409@math.missouri.edu> Date: Sun, 14 Sep 2008 20:38:00 -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: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Mon, 15 Sep 2008 01:38:01 -0000 I have a dual core amd64 on which I run a processor intensive numerical program. I had been frustrated because it seemed to run 3 or 4 times faster under Linux. But with a recent upgrade of FreeBSD-CURRENT, it now goes at about the same speed as Linux. The program takes about an hour. For the first minute, the program runs rather slowly, but then it is as if the operating system finds its way, and suddenly it speeds up. "top -H" suggests that for the first minute that one thread is going really slowly, and is perhaps being starved or something. My question is - why is this happening, and is this something I should expect? Are there certain switches or sysctls I can set to make it go fast from the get go? I should add that I am gratified that FreeBSD has caught up with Linux in this respect. I hope that I will see even more improvements. I will be happy to share the software I am running to help in this regard, but I don't yet have permission from my employer (University of Missouri) to give it an open source license, so I only feel comfortable giving it to people on a case by case basis. Thanks, Stephen