Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1422020
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V4] irq: Track the interrupt timings |
| Date | 2016-06-14 17:40 +0200 |
| Message-ID | <rJYBz-6HN-7@gated-at.bofh.it> (permalink) |
| References | <rnqQi-jn-25@gated-at.bofh.it> <rIw4F-5RL-3@gated-at.bofh.it> <rJWJr-5qn-1@gated-at.bofh.it> <rJYid-6wL-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 06/14/2016 05:10 PM, Nicolas Pitre wrote: > On Tue, 14 Jun 2016, Daniel Lezcano wrote: > >> On 06/10/2016 04:52 PM, Thomas Gleixner wrote: >> >>>> + timings->sum -= timings->values[timings->w_index]; >>>> + timings->values[timings->w_index] = diff; >>>> + timings->sum += diff; >>> >>> Now the real question is whether you really need all that math, checks and >>> memsets in the irq hotpath. If you make the storage slightly larger then you >>> can just store the values unconditionally in the circular buffer and do all >>> the computational stuff when you really it. >> >> Yes, that was one concern when I wrote the code: do some basic computation >> when an interrupt occurs, and the rest after or do the entire math when >> entering idle. >> >> If the storage is a bit larger (let's say 16 values) and there is no memset >> and the sum is not computed, at least we need a count for the number of values >> in the array before this one is fulfilled, otherwise the statistics will be >> wrong as we will take into account the entire array with old values, no ? > > The point is not to change from 8 to 16 entries, but to store raw 64-bit > timestamps instead of computed 32-bit deltas. Whether or not those > timestamps are too far apart and discarded can be done at idle entry > time. Ah, ok. That makes sense. Thanks for the clarification. -- Daniel -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH V4] irq: Track the interrupt timings Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-06-14 15:40 +0200
Re: [PATCH V4] irq: Track the interrupt timings Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-06-14 17:20 +0200
Re: [PATCH V4] irq: Track the interrupt timings Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-06-14 17:40 +0200
Re: [PATCH V4] irq: Track the interrupt timings Thomas Gleixner <tglx@linutronix.de> - 2016-06-14 18:40 +0200
csiph-web