Re: [PATCH V8 3/3] irq: Compute the periodic interval for interrupts

2017-03-24 Thread Daniel Lezcano
On Thu, Mar 23, 2017 at 03:40:39PM -0400, Nicolas Pitre wrote: > On Thu, 23 Mar 2017, Daniel Lezcano wrote: > > > + /* > > +* Online variance divided by the number of elements if there > > +* is more than one sample. > > +*/ > > + if (likely(irqs->count > 1)) > > + varian

Re: [PATCH V8 3/3] irq: Compute the periodic interval for interrupts

2017-03-23 Thread Nicolas Pitre
On Thu, 23 Mar 2017, Daniel Lezcano wrote: > + /* > + * Online variance divided by the number of elements if there > + * is more than one sample. > + */ > + if (likely(irqs->count > 1)) > + variance = div_u64(irqs->variance, irqs->count - 1); Isn't it mostly lik

[PATCH V8 3/3] irq: Compute the periodic interval for interrupts

2017-03-23 Thread Daniel Lezcano
An interrupt behaves with a burst of activity with periodic interval of time followed by one or two peaks of longer interval. As the time intervals are periodic, statistically speaking they follow a normal distribution and each interrupts can be tracked individually. This patch does statistics on