Date: Tue, 27 Aug 2013 09:10:16 +0400 From: Vitja Makarov <vitja.makarov@gmail.com> To: Davide Italiano <davide@freebsd.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: Question about socket timeouts Message-ID: <CAKGHGPSGRcorHjUMHC_JvcSaFtS=LcSVLZVK624FDUor0FkPmA@mail.gmail.com> In-Reply-To: <CACYV=-EvY4ftxkqCVZDfOW5VW1EA%2Ba%2Bv5twjuGSq%2BQxVWwEJSQ@mail.gmail.com> References: <CAKGHGPS=HCYfXxPXuUz5G83j5sGieejPU-QHmi9TrmMhmweHLw@mail.gmail.com> <201308221408.08203.jhb@freebsd.org> <CAKGHGPSYxmVoet8TnbxVFeEVk9CeD5iF6DK2do3w_ScnPU_SpQ@mail.gmail.com> <201308230945.28701.jhb@freebsd.org> <CACYV=-FKAn3Mot2F%2Bko%2BNRfLiRC0ZCJcFc5W%2BFwOghngJY88EA@mail.gmail.com> <CAKGHGPRYyRje2hiq8bW2%2Bi81tHLrFsSw-KYs%2BBHjcr_o0k4qow@mail.gmail.com> <CACYV=-EvY4ftxkqCVZDfOW5VW1EA%2Ba%2Bv5twjuGSq%2BQxVWwEJSQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2013/8/26 Davide Italiano <davide@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@gmail.com> wrote: >> 2013/8/23 Davide Italiano <davide@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKGHGPSGRcorHjUMHC_JvcSaFtS=LcSVLZVK624FDUor0FkPmA>