Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Dec 2005 20:05:37 -0800
From:      "Jin Guojun [VFFS]" <j_guojun@lbl.gov>
To:        David Xu <davidxu@freebsd.org>
Cc:        freebsd-performance@freebsd.org, "Gustavo A. Baratto" <gbaratto@superb.net>
Subject:   Re: mysql benchmarks
Message-ID:  <439A5411.8090005@lbl.gov>
In-Reply-To: <439A4301.5030404@freebsd.org>
References:  <032801c5fd32$df28c3b0$6400a8c0@garrincha> <439A4301.5030404@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439A5411.8090005>