Interrupt latency problems
Poul-Henning Kamp
phk at phk.freebsd.dk
Sun May 11 16:06:33 PDT 2003
In message <200305112258.h4BMwWPF029180 at bitblocks.com>, Bakul Shah writes:
>Is it possible to cheaply check how long a mutex was held?
Have WITNESS store a timestamp when mutex is grabbed. Check delta-T
when mutes is releases. Whine if above ?
We already have a similar check for timeout functions, the policy
I opted for there was to only whine if the duration was longer than
the previous higest duration.
Output looks like:
Expensive timeout(9) function: 0xc03d01f0(0) 0.003696815 s
This should be simple to implement for mutex'es too.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-current
mailing list