excessive use of gettimeofday(2) and other syscalls
Peter Jeremy
peterjeremy at acm.org
Fri Sep 9 12:06:09 UTC 2011
On 2011-Sep-07 12:41:54 -0600, Manish Vachharajani <manishv at lineratesystems.com> wrote:
>This is great info, thanks. Is it worth having some kind of
>environment variable tunable (or even compile time tunable) to have a
>"fast" gettimeofday then?
Maybe. rwatson@ produced a preloadable .so to do this - see
http://www.watson.org/~robert/freebsd/clock/
> Is there a complimentary body of code that
>assumes gettimeofday is precise?
I'm not aware of any but it's not necessarily trivial to identify such
code - it's unlikely to fail outright but instead may deliver results
that may not be as accurate as the author intended. I think a better
way of looking at the problem is that some code was designed on the
assumption that certain operations were cheap and therefore uses those
operations more freely than it would have had those operations been
more expensive.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110909/c5f39010/attachment.pgp
More information about the freebsd-hackers
mailing list