From: Carsten Emde <C.Emde@osadl.org>
To: Stanislav Meduna <stano@meduna.org>
Cc: Linux RT Users <linux-rt-users@vger.kernel.org>
Subject: Re: How to find long execution times in kernel threads?
Date: Wed, 01 May 2013 09:37:19 +0200 [thread overview]
Message-ID: <5180C62F.6030904@osadl.org> (raw)
In-Reply-To: <5180072F.7010102@meduna.org>
Stano,
>> Sure, record everything (trace-cmd record -e all) and analyze the
>> traces.
> Well, the problem is that with record -e all I get 20 ms instead
> of 1 ms, so I'd say Mr. Heisenberg laughs at me loudly here ;)
He who laughs last, laughs loudest. Since the entire system slows down,
you may only need to adapt cycles and thresholds accordingly. Tracing is
a very useful tool to identify sources of latencies and has helped a lot
to make Linux RT as good as it is today. As a role of thumb, for
example, we use five times longer cycles when enabling function tracing.
If, for example, the output of
cyclictest -m -M -Sp90 -i100 -d0
most of the time indicates a worst-case latency of about 50 microseconds
but is interspersed with sporadic latencies of more than 500 microseconds,
cyclictest -m -M -Sp90 -i500 -d0 -fb1000
probably will break at the first occurrence of the latency in question
and let you diagnose its origin at the end of the trace output.
-Carsten.
next prev parent reply other threads:[~2013-05-01 7:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 13:48 How to find long execution times in kernel threads? Stanislav Meduna
2013-04-30 16:52 ` Carsten Emde
2013-04-30 18:02 ` Stanislav Meduna
2013-05-01 3:58 ` Ashoka K
2013-05-01 7:37 ` Carsten Emde [this message]
2013-05-01 8:19 ` Stanislav Meduna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5180C62F.6030904@osadl.org \
--to=c.emde@osadl.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=stano@meduna.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.