Re: [PATCH RESEND 0/2] enable hires timer to timeout datagram socket
From: Richard Cochran
Date: Fri Aug 18 2017 - 16:19:08 EST
On Fri, Aug 18, 2017 at 06:44:08PM +0000, Vallish Vaidyeshwara wrote:
> There has been a behavior change in 4.9 kernel with refactoring of Kernel
> timer wheel in 4.8. We have a use case wherein our datagram socket
> application is sensitive to socket timeout including long timeouts.
>
> One of the test runs with a timeout value of 180 seconds timed out at
> 190 seconds.
So the whole premise of the new timer wheel is that long timeouts need
not be very accurate.
> Patch 1: Has core code change of enabling hires timer to timeout datagram
> socket on AF_UNIX and AF_INET domain
Using hrtimers will hurt performance for most applications. Can you
please explain your use case and why is it so important?
Thanks,
Richard