All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] enable hires timer to timeout datagram socket
@ 2017-08-23  0:10 Vallish Vaidyeshwara
  2017-08-23  0:10 ` [PATCH v2 1/2] net: enable high resolution timer mode to timeout datagram sockets Vallish Vaidyeshwara
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Vallish Vaidyeshwara @ 2017-08-23  0:10 UTC (permalink / raw)
  To: davem, shuah, richardcochran, xiyou.wangcong, netdev, linux-kernel
  Cc: eduval, anchalag, vallish

v1->v2:
 - Cong Wang pointed out MAX_SCHEDULE_TIMEOUT wraparound, fixed the
   patch 1/2 to accommodate MAX_SCHEDULE_TIMEOUT wait time
 - Changed format of printing total time from float to long in
   selftests patch 2/2

Hello Dave,

Resending the patch series to include netdev mailing list with a
cover letter.

I am submitting 2 patch series to enable hires timer to timeout
datagram sockets (AF_UNIX & AF_INET domain) and test code to test
timeout accuracy on these sockets.

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.
[root@]# ./datagram_sock_timeout 180000
datagram_sock_timeout failed: took 190.00 seconds
[root@]#
The same program when run on a 4.4 kernel would timeout more accurately and
the kernel added slack was not noticeable to user application.

Patch 1: Has core code change of enabling hires timer to timeout datagram
	 socket on AF_UNIX and AF_INET domain
	 Patch 2: Test code to report regression in timeout behavior related to
		 patch 1

Vallish Vaidyeshwara (2):
  net: enable high resolution timer mode to timeout datagram sockets
  selftests/net: add test to verify datagram socket timeout

 net/core/datagram.c                                |  14 ++-
 tools/testing/selftests/net/Makefile               |   3 +-
 .../testing/selftests/net/datagram_sock_timeout.c  | 119 +++++++++++++++++++++
 .../selftests/net/run_datagram_sock_timeout.sh     |  12 +++
 4 files changed, 146 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/net/datagram_sock_timeout.c
 create mode 100755 tools/testing/selftests/net/run_datagram_sock_timeout.sh

-- 
2.7.3.AMZN

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-09-25 20:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23  0:10 [PATCH v2 0/2] enable hires timer to timeout datagram socket Vallish Vaidyeshwara
2017-08-23  0:10 ` [PATCH v2 1/2] net: enable high resolution timer mode to timeout datagram sockets Vallish Vaidyeshwara
2017-08-23  0:10 ` [PATCH v2 2/2] selftests/net: add test to verify datagram socket timeout Vallish Vaidyeshwara
2017-08-23  4:30 ` [PATCH v2 0/2] enable hires timer to timeout datagram socket David Miller
2017-08-27 20:47   ` Vallish Vaidyeshwara
2017-08-29 11:16     ` David Laight
2017-09-08 17:04   ` Eduardo Valentin
2017-09-08 17:16     ` David Miller
2017-09-08 17:23       ` David Woodhouse
2017-09-08 17:26         ` David Miller
2017-09-08 18:55           ` Eduardo Valentin
2017-09-08 19:11             ` Eric Dumazet
2017-09-16  9:47               ` Thomas Gleixner
2017-09-20 22:48                 ` Vallish Vaidyeshwara
2017-09-25 20:42                   ` Thomas Gleixner
2017-09-08 21:44             ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.