From owner-freebsd-performance@FreeBSD.ORG Sat Dec 10 04:03:28 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85A5416A41F for ; Sat, 10 Dec 2005 04:03:28 +0000 (GMT) (envelope-from j_guojun@lbl.gov) Received: from smtp104.sbc.mail.mud.yahoo.com (smtp104.sbc.mail.mud.yahoo.com [68.142.198.203]) by mx1.FreeBSD.org (Postfix) with SMTP id 4601E43D60 for ; Sat, 10 Dec 2005 04:03:27 +0000 (GMT) (envelope-from j_guojun@lbl.gov) Received: (qmail 38074 invoked from network); 10 Dec 2005 04:03:26 -0000 Received: from unknown (HELO ?192.168.2.10?) (jinmtb@sbcglobal.net@68.127.176.52 with plain) by smtp104.sbc.mail.mud.yahoo.com with SMTP; 10 Dec 2005 04:03:26 -0000 Message-ID: <439A5411.8090005@lbl.gov> Date: Fri, 09 Dec 2005 20:05:37 -0800 From: "Jin Guojun [VFFS]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050108 X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: David Xu References: <032801c5fd32$df28c3b0$6400a8c0@garrincha> <439A4301.5030404@freebsd.org> In-Reply-To: <439A4301.5030404@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org, "Gustavo A. Baratto" Subject: Re: mysql benchmarks 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: Sat, 10 Dec 2005 04:03:28 -0000 David Xu wrote: > Gustavo A. Baratto wrote: > >> Since the last post just had freebsd numbers, I'm re-posting it >> including >> Linux as well. Both linux and freebsd numbers were taken from the >> same box: > > > ... > > Can you try TSC timer on FreeBSD ? someone reported that using TSC > timer boosts performance of super-smack significantly. > > David Xu "TSC" can be a few 100 times faster than gettimeofday(), but one needs to know how to calibrate and convert it to timer because TSC is counter, not timer. Also, if FreeBSD uses TSC to compare with Linux using gettimeofday, it does not sound a fun. gettimeofday is a very expensive function on all systems. http://dsd.lbl.gov/DIDC/papers/imc-2003.pdf tells how much it costs on some common systems, especially FreeBSD and Linux. So, if both systems use gettimeofday, then slow may be somewhere else. -- ------------ Jin Guojun ----------- v --- jin@george.lbl.gov --- Distributed Systems Department http://www.dsd.lbl.gov/~jin Lawrence Berkeley National Laboratory, Berkeley, CA 94720