kernel profiling: spinlock_exit consumes 36% CPU time.

Julian Elischer julian at
Tue Oct 7 13:39:44 UTC 2008

邱剑 wrote:
> Hi, folks,

spinlocks disable interrupts so the profiling interrupt is held off
from the
moment that the spinlock is entered to the moment it is exited, and all
of that time is attributed to spinlock_exit().

so that this tells you that 3% of your time is spent under spinlocks
which is  a  lot.

as others have asked, "what version"?

you should look up lock profiling to see WHICH lock
is teh ine in question.

More information about the freebsd-questions mailing list