Re: Suggestions on Avoiding syscall Overhead

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Tue, 24 Apr 2007 15:46:28 +0200
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.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Tue Apr 24 2007 - 11:46:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:09 UTC