From owner-freebsd-threads@FreeBSD.ORG Sun May 23 10:47:12 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6FC816A4CF for ; Sun, 23 May 2004 10:47:12 -0700 (PDT) Received: from rms04.rommon.net (rms04.rommon.net [212.54.2.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4952C43D2F for ; Sun, 23 May 2004 10:47:12 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (h91.vuokselantie10.fi [193.64.42.145]) by rms04.rommon.net (8.12.10/8.12.9) with ESMTP id i4NHkw3v028153; Sun, 23 May 2004 20:46:58 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <40B0E391.4000504@he.iki.fi> Date: Sun, 23 May 2004 20:46:57 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: JG References: <5.2.0.9.2.20040523090659.01628af8@mail.ojoink.com> <5.2.0.9.2.20040522135338.0158cc50@mail.ojoink.com> <5.2.0.9.2.20040522100318.01598f50@mail.ojoink.com> <5.2.0.9.2.20040522052606.0156fd70@mail.ojoink.com> <5.2.0.9.2.20040521154458.01627688@127.0.0.1> <5.2.0.9.2.20040521154458.01627688@127.0.0.1> <5.2.0.9.2.20040522052606.0156fd70@mail.ojoink.com> <5.2.0.9.2.20040522100318.01598f50@mail.ojoink.com> <5.2.0.9.2.20040522135338.0158cc50@mail.ojoink.com> <5.2.0.9.2.20040523090659.01628af8@mail.ojoink.com> <5.2.0.9.2.20040523102747.015557e8@mail.ojoink.com> In-Reply-To: <5.2.0.9.2.20040523102747.015557e8@mail.ojoink.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-threads@freebsd.org Subject: Re: Why is MySQL nearly twice as fast on Linux? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2004 17:47:13 -0000 JG wrote: > > You mean where I have the 3 instances of mysqld running in top? You > have ~30 instances? > Iīm running the supersmack with $1=30. > Why would your box use more? Is there any configuration or flag in > mysql that would cause this? > MySQL creates a thread per client. > How was your mysql compiled? What version of FreeBSD are you running? This is on -CURRENT from a few weeks ago. Cannot remember if I used optimized compilation. > > > I know that this FreeBSD/AMD64 reports that it is using ACPI... how do > I find out if its using timecounters, or using them properly? > kern.timecounter.hardware: ACPI-fast But I'm suspecting that the system call overhead between Linux and freebsd differs enough to cause the results. If anything can be done about it, I donīt know. Pete