Xorg vs gettimeofday() and clock_gettime()

Peter Jeremy peterjeremy at optushome.com.au
Tue Feb 26 11:50:48 UTC 2008


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.

-- 
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20080226/c3f9d8a9/attachment.pgp


More information about the freebsd-x11 mailing list