On Tue, Aug 14, 2012 at 11:13, Simon Perreault wrote:
> Le 2012-08-14 11:03, Ted Unangst a écrit :
>> On Tue, Aug 14, 2012 at 09:42, Simon Perreault wrote:
>>
>>> - CoDel needs to timestamp each packet when it gets queued.
>>> - I added a new member in struct pkthdr for this. Is this ok?
>>> - I end up calling microuptime() for each packet. Is this ok?
>>
>> You want to use getmicrouptime, it's faster.  See the man page.
>
> Will it have good enough precision? I need to check if packets have been
> in the queue for less than 5ms. The man page talks about a precision of
> 10ms, which would not be good enough I'm afraid.

Five years ago I removed a once per packet microuptime call which led
to something like a 33% improvement in throughput.  I don't want to
have to do that again. :)

Reply via email to