Skip to contentSkip to conversation

The cost of local interrupt enable/disable

QUESTION Tejun Heo 2 participants 2 messages Sep 17, 2005

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

Hello, guys.

I'm curious about the cost of local_irq_enable/disable()'s on various
architectures. I found a freebsd discussion thread by googling which says that each takes 3 cycles on i386 (very cheap), but for Pentium4, people are talking in the order of several hundreds cycles. Are these correct? How about other architectures?

TIA.

Signature · 1 line
tejun
#1 lore raw

Hi,

Quoted 5 lines

I'm curious about the cost of local_irq_enable/disable()'s on various
architectures. I found a freebsd discussion thread by googling which says that each takes 3 cycles on i386 (very cheap), but for Pentium4, people are talking in the order of several hundreds cycles. Are these correct? How about other architectures?

It varies on ppc64, but its in the order of 10s of cycles. 40-50 cycles is probably a decent estimation.

Anton