From owner-freebsd-performance@FreeBSD.ORG Fri Dec 14 03:33:07 2007 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8719F16A421 for ; Fri, 14 Dec 2007 03:33:07 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate2.pacific.net.sg (smtpgate2.pacific.net.sg [203.120.90.32]) by mx1.freebsd.org (Postfix) with SMTP id D05CB13C4EB for ; Fri, 14 Dec 2007 03:33:06 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 364 invoked from network); 14 Dec 2007 03:33:04 -0000 Received: from adsl2.dyn234.pacific.net.sg (HELO P2120.somewherefaraway.com) (oceanare@210.24.234.2) by smtpgate2.pacific.net.sg with ESMTPA; 14 Dec 2007 03:33:03 -0000 Message-ID: <4761F963.5040505@pacific.net.sg> Date: Fri, 14 Dec 2007 11:32:51 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (X11/20070826) MIME-Version: 1.0 To: Shantanu Ghosh References: <150023.72900.qm@web54501.mail.re2.yahoo.com> In-Reply-To: <150023.72900.qm@web54501.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org, Nash Nipples Subject: Re: freebsd vs linux: performance problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 03:33:07 -0000 Hi, Shantanu Ghosh wrote: > --- Erich Dollansky wrote: > >> Don't you call memcpy? > > Well, I first did - then I wrote a function to do the same, just to > make sure that the code executed is exactly the same in both the cases. > The difference was there both when using memcpy, and when using the > replacement function. Do you have Linux compatibility installed on the FreeBSD machine? You should then be able to run the Linux binary to see what happens then. I have had once the problem of a task moving from CPU to CPU and s performing badly on FreeBSD. I am not informed how this is handled currently. I also assume that this example is a single-threaded program which should perform just fine on single CPU machine. One other thing, can you just boot up with one CPU and one core to see what happens then? Erich