Suggestions on Avoiding syscall Overhead
des at des.no
Tue Apr 24 13:46:35 UTC 2007
David G Lawrence <dg at dglawrence.com> writes:
> gettimeofday(2) returns microsecond precision, so I don't see how this
> could be made accelerated via a mapped global page. time(3) [which is
> currently a wrapper for gettimeofday(2)], on the other had, could be put
> into such a page since it only updates once a second.
gettimeofday(2) returns a value in microseconds, but this does not
necessarily mean that it has microsecond precision. Updating it once
per scheduler tick or once per context switch (in userret(), for
instance) is probably enough.
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-current