Question about socket timeouts
Vitja Makarov
vitja.makarov at gmail.com
Tue Aug 27 05:10:18 UTC 2013
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.
More information about the freebsd-current
mailing list