From owner-freebsd-x11@FreeBSD.ORG Mon Feb 25 21:18:50 2008 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DECB316A40A for ; Mon, 25 Feb 2008 21:18:50 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (daffy.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id B045613C4DB for ; Mon, 25 Feb 2008 21:18:50 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m1PKufmM087353; Mon, 25 Feb 2008 13:56:41 -0700 (MST) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m1PKuebJ013987; Mon, 25 Feb 2008 13:56:40 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m1PKueWu013984; Mon, 25 Feb 2008 13:56:40 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18371.11144.568407.26227@gromit.timing.com> Date: Mon, 25 Feb 2008 13:56:40 -0700 From: John Hein To: d@delphij.net In-Reply-To: <47C320DB.70004@delphij.net> References: <47C320DB.70004@delphij.net> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-x11@freebsd.org Subject: Re: Xorg vs gettimeofday() and clock_gettime() X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2008 21:18:51 -0000 Xin LI wrote at 12:11 -0800 on Feb 25, 2008: > Shall we make some source-level change to Xorg (either upstream under > ifdef FreeBSD or our own port, _FAST clocks are not available on some > other operating systems) so that we can override the gettimeofday() > direct calls and X_GETTIMEOFDAY's to use clock_gettime with a faster clock? Sounds good to me. I vote for putting in a patch in the x11-servers/xorg-server port so it gets some quick exposure and then feeding it back upstream where it can be added on their schedule. I'm curious... how often (and for what purpose) does the xorg server make the excessive gettimeofday calls?