Re: Question about socket timeouts

From: Vitja Makarov <vitja.makarov_at_gmail.com>
Date: Tue, 27 Aug 2013 09:10:16 +0400
2013/8/26 Davide Italiano <davide_at_freebsd.org>:
> Please consider the following patch:
> http://people.freebsd.org/~davide/review/socket_timeout.diff
> I've tested it and it works OK. I got a timeout which is ~= 25ms using
> the testcase provided by the user.
> The only doubt I have is about the range check, I've changed a bit
> because the 'integer' part of sbintime_t fits in 32-bits, but I'm not
> sure it's the best way of doing this.

Nice, that worked for me! I got ~26ms timeouts in average on my VM.

> On Fri, Aug 23, 2013 at 7:04 AM, Vitja Makarov <vitja.makarov_at_gmail.com> wrote:
>> 2013/8/23 Davide Italiano <davide_at_freebsd.org>:
>>
>> I think that for socket's timeouts it's ok to have a HZ-precision. It
>> would be much more important to implement high-precision timeouts for
>> select() and friends, if it's not done yet (sorry I'm running 9.1).
>>
>
> JFYI, select()/usleep()/etc... are all fine grained right now in HEAD.
>

That's cool! Does that mean that FreeBSD 10 would be a tickless system?

-- 
vitja.
Received on Tue Aug 27 2013 - 03:10:18 UTC

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