From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 22:23:41 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 7078A16A41F for ; Fri, 28 Oct 2005 22:23:41 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85E6143D45 for ; Fri, 28 Oct 2005 22:23:40 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 0D5DEBC50; Fri, 28 Oct 2005 22:23:38 +0000 (UTC) To: "Steven Hartland" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 28 Oct 2005 22:36:19 BST." <005d01c5dc0c$7ad2c9c0$b3db87d4@multiplay.co.uk> Date: Sat, 29 Oct 2005 00:23:38 +0200 Message-ID: <35758.1130538218@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Michael VInce , John-Mark Gurney , current@freebsd.org Subject: Re: Timers and timing, was: 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: Fri, 28 Oct 2005 22:23:41 -0000 In message <005d01c5dc0c$7ad2c9c0$b3db87d4@multiplay.co.uk>, "Steven Hartland" writes: >For interest I ran truss on a typical game server we run under >FreeBSD to get a feel for how much this issue would affect >their performance. >Below is a small snippet from truss with -D which indicates >that they would also benefit from work in this area. Yes, by about a factor of 0.000005 seconds every .5 seconds or a factor of 1/100000 :-) >0.000010894 gettimeofday({1130534881 790912},0xbfbfe9f0) = 0 (0x0) Grab timestamp >0.009520674 nanosleep({0 5000000}) = 0 (0x0) Sleep half a second (rinse, repeat) It would have been much more interesting if the server was doing something... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.