Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490224

Re: [PATCH v6 4/4] tracing: Histogram for delayed hrtimer offsets

From Carsten Emde <C.Emde@osadl.org>
Newsgroups linux.kernel
Subject Re: [PATCH v6 4/4] tracing: Histogram for delayed hrtimer offsets
Date 2016-09-23 17:10 +0200
Message-ID <skAgV-5sZ-25@gated-at.bofh.it> (permalink)
References <seJ3z-7sB-1@gated-at.bofh.it> <seJ3z-7sB-7@gated-at.bofh.it> <sf1MR-2Iu-1@gated-at.bofh.it> <sf3Yl-417-5@gated-at.bofh.it> <sfuca-3nP-35@gated-at.bofh.it>
Organization Open Source Automation Development Lab (OSADL)

Show all headers | View raw


On 09/09/2016 03:30 PM, Thomas Gleixner wrote:
> On Thu, 8 Sep 2016, Binoy Jayan wrote:
>> On 8 September 2016 at 12:40, Thomas Gleixner <tglx@linutronix.de> wrote:
> [..]
>>>> +     latency = ktime_to_ns(ktime_sub(basenow,
>>>> +                           ktime_to_ns(timer->praecox) ?
>>>> +                           timer->praecox : hrtimer_get_expires(timer)));
>>>> +     task = timer->function == hrtimer_wakeup ?
>>>> +                     container_of(timer, struct hrtimer_sleeper,
>>>> +                                  timer)->task : NULL;
>>>
>>> This is a complete horrible hack. You're tying the task evaluation into a
>>> single instance of hrtimer users. What's the justification for this and why
>>> do you need task at all?
Makes only sense, if any, if wakeup latency histograms that store the task with
the highest latency so far are available. Initially, I wanted to give a short
explanation here why such internal histograms may be useful, but I found it
easier in a format where pictures of example latency plots and recordings can
be shown. So I wrote a short article on "Preemption latency of real-time Linux
systems" -> https://www.osadl.org/Single-View.111+M5246ebc55e3.0.html.

Hope this helps,

	-Carsten.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH v6 4/4] tracing: Histogram for delayed hrtimer offsets Thomas Gleixner <tglx@linutronix.de> - 2016-09-09 15:40 +0200
  Re: [PATCH v6 4/4] tracing: Histogram for delayed hrtimer offsets Carsten Emde <C.Emde@osadl.org> - 2016-09-23 17:10 +0200

csiph-web