Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2008 21:07:28 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        John Hein <jhein@timing.com>
Cc:        freebsd-x11@freebsd.org, d@delphij.net
Subject:   Re: Xorg vs gettimeofday() and clock_gettime()
Message-ID:  <20080226100728.GU83599@server.vk2pj.dyndns.org>
In-Reply-To: <18371.11144.568407.26227@gromit.timing.com>
References:  <47C320DB.70004@delphij.net> <18371.11144.568407.26227@gromit.timing.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080226100728.GU83599>