From owner-freebsd-x11@FreeBSD.ORG Tue Feb 26 11:50:46 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 839441065926 for ; Tue, 26 Feb 2008 11:50:46 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail06.syd.optusnet.com.au (mail06.syd.optusnet.com.au [211.29.132.187]) by mx1.freebsd.org (Postfix) with ESMTP id A6F6D13DF18 for ; Tue, 26 Feb 2008 10:08:09 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail06.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m1QA7Uil022676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Feb 2008 21:07:31 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m1QA7Tv5084991; Tue, 26 Feb 2008 21:07:29 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m1QA7Sqo084990; Tue, 26 Feb 2008 21:07:28 +1100 (EST) (envelope-from peter) Date: Tue, 26 Feb 2008 21:07:28 +1100 From: Peter Jeremy To: John Hein Message-ID: <20080226100728.GU83599@server.vk2pj.dyndns.org> References: <47C320DB.70004@delphij.net> <18371.11144.568407.26227@gromit.timing.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="q9KOos5vDmpwPx9o" Content-Disposition: inline In-Reply-To: <18371.11144.568407.26227@gromit.timing.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-x11@freebsd.org, d@delphij.net 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: Tue, 26 Feb 2008 11:50:48 -0000 --q9KOos5vDmpwPx9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 25, 2008 at 01:56:40PM -0700, John Hein wrote: >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. That sounds good. >I'm curious... how often (and for what purpose) does the xorg server >make the excessive gettimeofday calls? My guess is pointer acceleration and/or 3-button emulation. Out of interest, I just ktrace'd my X server for 5 seconds (doing nothing in particular) and got 318 syscalls, including 106 gettimeofday() calls. By waving the mouse around inside a window, I get 4015 syscalls, including 844 gettimeofday() and 1136 sigprocmask() calls in 5 secinds. In some cases, there are consecutive gettimeofday() calls with no other syscalls intervening. These numbers do seem somewhat excessive. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --q9KOos5vDmpwPx9o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHw+Tg/opHv/APuIcRAtcdAJ0YUyqMB1FrxURHMwaJKjz4udp0sQCgqXNy F1K/QCqV1EZ6cS7q6sUuSMU= =zGEx -----END PGP SIGNATURE----- --q9KOos5vDmpwPx9o--