From: Stanislav Meduna <stano@meduna.org>
To: "linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>
Subject: Bogus latency_hist/preemptirqsoff ?
Date: Sat, 20 Apr 2013 13:46:17 +0200 [thread overview]
Message-ID: <51728009.8030601@meduna.org> (raw)
Hi,
what and how does the latency_hist/preemptirqsoff measure?
The ftrace.txt says
"preemptirqsoff"
Similar to irqsoff and preemptoff, but traces and
records the largest time for which irqs and/or preemption
is disabled.
# head -3 /sys/kernel/debug/tracing/latency_hist/wakeup/CPU0
#Minimum latency: 8 microseconds
#Average latency: 15 microseconds
#Maximum latency: 95 microseconds
# head -3 /sys/kernel/debug/tracing/latency_hist/timerandwakeup/CPU0
#Minimum latency: 8 microseconds
#Average latency: 15 microseconds
#Maximum latency: 95 microseconds
# head -3 /sys/kernel/debug/tracing/latency_hist/wakeup/sharedprio/CPU0
#Minimum latency: 9 microseconds
#Average latency: 42 microseconds
#Maximum latency: 603 microseconds (this is OK, there are such threads)
# head -3 /sys/kernel/debug/tracing/latency_hist/irqsoff/CPU0
#Minimum latency: 0 microseconds
#Average latency: 2 microseconds
#Maximum latency: 136 microseconds
# head -3 /sys/kernel/debug/tracing/latency_hist/preemptoff/CPU0
#Minimum latency: 2 microseconds
#Average latency: 7 microseconds
#Maximum latency: 121 microseconds
# head -6 /sys/kernel/debug/tracing/latency_hist/preemptirqsoff/CPU0
#Minimum latency: 0 microseconds
#Average latency: 2 microseconds
#Maximum latency: 29001 microseconds
#Total samples: 29054669
#There are 0 samples lower than 0 microseconds.
#There are 15 samples greater or equal than 10240 microseconds.
The 29 ms looks bogus. There are two test-applications running
and each one would cry loudly being without CPU for 10 ms or more.
Or is there a possibility that the irqsoff and preemptoff alternate
so that everything looks normal but there is not a single time
both are possible?
3.4.25-rt37, preempt full.
Thanks
--
Stano
reply other threads:[~2013-04-20 11:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=51728009.8030601@meduna.org \
--to=stano@meduna.org \
--cc=linux-rt-users@vger.kernel.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.