From owner-freebsd-performance@FreeBSD.ORG Fri Dec 14 04:41:20 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 F143E16A41A for ; Fri, 14 Dec 2007 04:41:20 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate1.pacific.net.sg (smtpgate1.pacific.net.sg [203.120.90.31]) by mx1.freebsd.org (Postfix) with SMTP id 4881413C44B for ; Fri, 14 Dec 2007 04:41:20 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 18621 invoked from network); 14 Dec 2007 04:41:18 -0000 Received: from adsl2.dyn234.pacific.net.sg (HELO P2120.somewherefaraway.com) (oceanare@210.24.234.2) by smtpgate1.pacific.net.sg with ESMTPA; 14 Dec 2007 04:41:17 -0000 Message-ID: <47620966.3030108@pacific.net.sg> Date: Fri, 14 Dec 2007 12:41:10 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (X11/20070826) MIME-Version: 1.0 To: Shantanu Ghosh References: <344260.5397.qm@web54507.mail.re2.yahoo.com> In-Reply-To: <344260.5397.qm@web54507.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org 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 04:41:21 -0000 Hi, Shantanu Ghosh wrote: > --- Erich Dollansky wrote: > >> Shantanu Ghosh wrote: >>> --- Erich Dollansky wrote: >>> >> 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. > > This could be something I am facing. I noticed that when I run vmstat > while running this code, on linux, there's hardly any perceptible > difference in the number of context switches, but on freebsd, the > number of context switches in the system seems to go up a bit. However, > this is not very reliable. > > Do you know how I can check this migration? I forgot how I checked it. > > While I have not tried it on this machine, on a single cpu machine, the > non-SMP build of freebsd seems to perform as well as linux for this > kind of test. Ok, this could then be a hint that the task is simply migrating. > > Thanks a lot for your help. No not praise the day before night falls. Erich