From owner-freebsd-current@FreeBSD.ORG Thu Oct 27 08:29:25 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C00E716A420 for ; Thu, 27 Oct 2005 08:29:25 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A41E43D6B; Thu, 27 Oct 2005 08:29:25 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9R8TL0a074031; Thu, 27 Oct 2005 08:29:23 GMT (envelope-from davidxu@freebsd.org) Message-ID: <43608FE3.9050406@freebsd.org> Date: Thu, 27 Oct 2005 16:29:23 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20050928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <21137.1130401220@critter.freebsd.dk> In-Reply-To: <21137.1130401220@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org, Marian Hettwer Subject: Re: MySQL Performance 6.0rc1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 08:29:25 -0000 Poul-Henning Kamp wrote: > In message <43607DD5.3020708@freebsd.org>, David Xu writes: > > >>Check gettimeofday syscall, it follows every I/O syscall, I think >>our gettimeofday is tooooooo expensive, if we can directly get time from >>memory, the performance will be improved further. > > > Why would anybody take a timestamp at all I/O syscalls ? > > "I wonder why my car can only go 30 km/h with the trunk full of concrete" ? > > In a data base application I could possibly understand a timestamp > after every write. > > But after _all_ I/O syscalls ? That's just plain stupid... > Don't panic, I agree that is stupid code, but I can not change it, it is not written by me, sorry!