Skip to contentSkip to conversation

CONFIG_CRITICAL_IRQSOFF_TIMING

DISCUSSION Gerrit Binnenmars 3 participants 3 messages Oct 30, 2007 – Oct 31, 2007

lore
Share & tools
lore
#0 lore raw
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
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_PRINTK_TIME is not set
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_UNUSED_SYMBOLS=y
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
CONFIG_DETECT_SOFTLOCKUP=y
CONFIG_SCHED_DEBUG=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_SLAB is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_LOCK_ALLOC=y
# CONFIG_PROVE_LOCKING is not set
CONFIG_LOCKDEP=y
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_LOCKDEP is not set
CONFIG_TRACE_IRQFLAGS=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
CONFIG_STACKTRACE=y
CONFIG_PREEMPT_TRACE=y
CONFIG_EVENT_TRACE=y
CONFIG_FUNCTION_TRACE=y
# CONFIG_WAKEUP_TIMING is not set
CONFIG_LATENCY_TRACE=y
# CONFIG_CRITICAL_PREEMPT_TIMING is not set
CONFIG_CRITICAL_IRQSOFF_TIMING=y
CONFIG_INTERRUPT_OFF_HIST=y
CONFIG_CRITICAL_TIMING=y
CONFIG_DEBUG_TRACE_IRQFLAGS=y
CONFIG_LATENCY_TIMING=y
CONFIG_CRITICAL_LATENCY_HIST=y
CONFIG_LATENCY_HIST=y
CONFIG_MCOUNT=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_HIGHMEM is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_LIST is not set
CONFIG_FRAME_POINTER=y
CONFIG_FORCED_INLINING=y
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_LKDTM is not set
# CONFIG_FAULT_INJECTION is not set
CONFIG_EARLY_PRINTK=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_STACK_USAGE is not set
CONFIG_DEBUG_RODATA=y
CONFIG_4KSTACKS=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
CONFIG_DOUBLEFAULT=y

Greetings Gerrit

Quoted 8 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 2 lines · Gerrit Binnenmars

CONFIG_LTT_PROBE_LOCKING=m
# CONFIG_LTT_PROBE_STACK is not set

I wonder which kernel your using? I don't recall LTT being part of real time in the past .. What the architecture too ?

Quoted 5 lines

CONFIG_CRITICAL_IRQSOFF_TIMING=y
CONFIG_INTERRUPT_OFF_HIST=y
CONFIG_CRITICAL_TIMING=y
CONFIG_DEBUG_TRACE_IRQFLAGS=y
CONFIG_LATENCY_TIMING=y

You might try disabling the histogram option temporarily, it may have be effecting things (not sure how tho) ..

Daniel

#2 lore raw
In reply to Gerrit Binnenmars

I somehow was removed from the CC list, so I didn't see it.

<rant>I hate lists that think it's best to only post to the list and tell you to take all people off the CC list. Those are lists that are run by people that have way too much time on their hands to be reading mailing lists all day. Between LKML, linux-rt-users, virt, lguest, and a ton of internal lists, I can't keep up! When in a coding frenzy, I may not read lists for days.</rant>

--

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 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.

-- Steve