Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2001 09:45:21 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Bsdguru@aol.com
Cc:        hackers@freebsd.org
Subject:   RE: splx() overhead.
Message-ID:  <XFMail.011008094521.jhb@FreeBSD.org>
In-Reply-To: <16e.20f7124.28f3296e@aol.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 08-Oct-01 Bsdguru@aol.com wrote:
> In doing some kernel profiling analysis it seems that splx is taking up big 
> chunks of time.

That's becaause splx() can result in interrupts blocked during an spl() getting
a chance to run, including soft interrrupts such as softclock and the network
software interrupts.  Note that splx itself is quick, it is the releasing of
interrupts which is expensive, which will only happen on the "outside" splx()
if you have nested spl's.

> The mbuf macros call splimp()..splx() explicitly..are they required at 
> interrupt time? Is there a higher performance way of protecting the necessary
> code?

Not really.

> B

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.011008094521.jhb>