From owner-freebsd-current@FreeBSD.ORG Sun Oct 30 10:02:28 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from [127.0.0.1] (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 3A94D16A41F; Sun, 30 Oct 2005 10:02:28 +0000 (GMT) (envelope-from davidxu@freebsd.org) Message-ID: <436499B8.8000304@freebsd.org> Date: Sun, 30 Oct 2005 18:00:24 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.10) Gecko/20050806 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <30595.1130493297@critter.freebsd.dk> <20051028153457.d0wqgn2ask4sgw4k@netchild.homeip.net> <20051029195703.GB39253@dragon.NUXI.org> <43646AAC.2080107@freebsd.org> <20051030093718.GE39253@dragon.NUXI.org> In-Reply-To: <20051030093718.GE39253@dragon.NUXI.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Leidinger Subject: Re: TSC instead of ACPI: powerd doesn't work anymore (to be expected?) 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: Sun, 30 Oct 2005 10:02:28 -0000 David O'Brien wrote: >>TSC is faster than any others, on many systems, so-called ACPI-fast >>timer is really a slow chip, >> >> > >Correct, but why is it felt the latency of the ACPI timer is an issue? >Of course we all want things to as fast as possible, but is that just an >abstract desire, or a real issue was run into? > > > mysql benchmark - supersmack already told us this is an issue, this is the reason why mysql runs slower on FreeBSD than on Linux: ACPI-fast timecounter: alona# super-smack ./select-key-local.smack 10 1000 Query Barrel Report for client smacker1 connect: max=4ms min=3ms avg= 3ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 20000 1 0 7210.39 TSC timecounter: alona# super-smack ./select-key-local.smack 10 1000 Query Barrel Report for client smacker1 connect: max=3ms min=2ms avg= 2ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 20000 0 0 9301.19