Skip to contentSkip to conversation

CONFIG_CRITICAL_IRQSOFF_TIMING

DISCUSSION Gerrit Binnenmars 2 participants 2 messages Oct 31, 2007

lore
Share & tools
lore
#0 lore raw
Quoted 47 lines

Datum: 31/10/07 01:17 AM
Van: "Steven Rostedt"
Aan: "Gerrit Binnenmars"
CC: [email protected]
Onderwerp : Re: CONFIG_CRITICAL_IRQSOFF_TIMING

--

Quoted 34 lines · Gerrit Binnenmars
Quoted 16 lines

Datum: 29/10/07 02:09 PM
Van: "Steven Rostedt"
Aan: "Gerrit Binnenmars"
CC: [email protected]
Onderwerp : Re: CONFIG_CRITICAL_IRQSOFF_TIMING

--

Quoted 6 lines · Gerrit Binnenmars

Hello,

Can someone send me a .config file that shows the options needed to get the interrupt off timing values in preempt_max_latency, please. I only see a value of 0 in this file I am using kernel 2.6.22.1 with the corresponding rt patch.

Quoted 7 lines
Quoted 1 line

Thanks in advance,

Make sure you have event trace and latency tracing as well as "Interrupts-off critical section latency timing".

Then you need to echo 0 > /proc/sys/kernel/preempt_max_latency.

Hello Steve,

Thanks for your quick response, but the preempt_max_latency remains 0. Also the latency_hist shows no samples taken. Can you or someone else have a look at the corresponding CONFIG options?

CONFIG_LTT_PROBE_LOCKING=m
# CONFIG_LTT_PROBE_STACK is not set

#
# Kernel hacking
#

[...]

Quoted 7 lines
Quoted 3 lines

CONFIG_INTERRUPT_OFF_HIST=y
CONFIG_CRITICAL_LATENCY_HIST=y
CONFIG_LATENCY_HIST=y

Turn off all histograms. They will kill any measurements you are taking. And yes, you will not get the output from latency_trace that you are after.

Steven and Daniel, I tried your suggestion with the following resulsts:
CRITICAL_IRQSOFF_TIMING: preempt_max_latency remains 0 even under load,
cyclictest -b is able to store a trace in /proc/latency_trace

CRITICAL_PREEMPT_TIMING: kernel won´t start at all (vmlinuz is read from tftp server but nothing afterwards)
WAKEUP_TIMING:           is working as expected.

So switching off the histograms is an improvement. For the moment, I can live with this situation (especially the cyclictest -b option is very useful),
but I wonder if anyone else has the same problems?

Regards, Gerrit

Quoted 9 lines

-- Steve

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

--

Quoted 13 lines
Quoted 9 lines

[...]

Quoted 3 lines

CONFIG_INTERRUPT_OFF_HIST=y
CONFIG_CRITICAL_LATENCY_HIST=y
CONFIG_LATENCY_HIST=y

Turn off all histograms. They will kill any measurements you are taking. And yes, you will not get the output from latency_trace that you are after.

Steven and Daniel, I tried your suggestion with the following resulsts:
CRITICAL_IRQSOFF_TIMING: preempt_max_latency remains 0 even under load,
cyclictest -b is able to store a trace in /proc/latency_trace

Quoted 6 lines
CRITICAL_PREEMPT_TIMING: kernel won´t start at all (vmlinuz is read from tftp server but nothing afterwards)
WAKEUP_TIMING:           is working as expected.

So switching off the histograms is an improvement. For the moment, I can live with this situation (especially the cyclictest -b option is very useful),
but I wonder if anyone else has the same problems?

critcal irqs off timings wont start with wakeup timing on. You need to disable that. But that you can do from the command line.

echo 0 > /proc/sys/kernel/wakeup_timing

-- Steve