Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread John-Mark Gurney
Adrian Chadd wrote this message on Fri, Nov 06, 2015 at 11:15 -0800: > Ideally there'd be both behaviours: > > * You'd specify whether a timer/sleep needs to be exact or can > withstand some jitter (which is what linux provides); and Isn't that what the precision argument in callout is for? See

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Bruce Evans
On Fri, 6 Nov 2015, Ian Lepore wrote: On Fri, 2015-11-06 at 17:51 +0100, Hans Petter Selasky wrote: On 11/06/15 17:43, Ian Lepore wrote: On Fri, 2015-11-06 at 17:28 +0100, Hans Petter Selasky wrote: Hi, Do the test II results change with this setting? sysctl kern.timecounter.allowedde

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Adrian Chadd
Ideally there'd be both behaviours: * You'd specify whether a timer/sleep needs to be exact or can withstand some jitter (which is what linux provides); and * You can communicate to the kernel its aggressiveness for coalescing wakeups. Teaching powerd to flip on/off a sysctl for this isn't that t

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Ian Lepore
On Fri, 2015-11-06 at 17:57 +0100, Hans Petter Selasky wrote: > On 11/06/15 17:51, Hans Petter Selasky wrote: > > On 11/06/15 17:43, Ian Lepore wrote: > > > On Fri, 2015-11-06 at 17:28 +0100, Hans Petter Selasky wrote: > > > > Hi, > > > > > > > > Do the test II results change with this setting? >

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Ian Lepore
On Fri, 2015-11-06 at 17:51 +0100, Hans Petter Selasky wrote: > On 11/06/15 17:43, Ian Lepore wrote: > > On Fri, 2015-11-06 at 17:28 +0100, Hans Petter Selasky wrote: > > > Hi, > > > > > Do the test II results change with this setting? > > > >sysctl kern.timecounter.alloweddeviation=0 > > >

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Hans Petter Selasky
On 11/06/15 17:51, Hans Petter Selasky wrote: On 11/06/15 17:43, Ian Lepore wrote: On Fri, 2015-11-06 at 17:28 +0100, Hans Petter Selasky wrote: Hi, Do the test II results change with this setting? sysctl kern.timecounter.alloweddeviation=0 Yes, it looks much better: debug.total: 10

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Hans Petter Selasky
On 11/06/15 17:43, Ian Lepore wrote: On Fri, 2015-11-06 at 17:28 +0100, Hans Petter Selasky wrote: Hi, Do the test II results change with this setting? sysctl kern.timecounter.alloweddeviation=0 Yes, it looks much better: debug.total: 10013 -> 0 debug.total: 10013 -> 0 debug.total: 1

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Ian Lepore
On Fri, 2015-11-06 at 17:28 +0100, Hans Petter Selasky wrote: > Hi, > > I spent some time to write a test application to investigate this > issue > and I found some irregularities, that when > kern.eventtimer.periodic=0, > the timer appears to run very irregular. > > Test software: > ==

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Hans Petter Selasky
Hi, I spent some time to write a test application to investigate this issue and I found some irregularities, that when kern.eventtimer.periodic=0, the timer appears to run very irregular. Test software: == fetch http://home.selasky.org:8192/privat/callout_test_dummynet.tar.gz tar