lockmeter
[Top] [All Lists]

Re: Lockmetering on uniprocessor kernels?

To: "Khyron" <khyron@xxxxxxxxxx>, "Frank Hofmann - European Solaris CTE-Sustaining Engineering" <Frank.Hofmann@xxxxxxx>
Subject: Re: Lockmetering on uniprocessor kernels?
From: "John Hawkes" <hawkes@xxxxxxx>
Date: Tue, 27 Nov 2001 15:07:57 -0800
Cc: <lockmeter@xxxxxxxxxxx>
References: <Pine.BSF.4.33.0111272232090.69399-100000@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-lockmeter@xxxxxxxxxxx
From: "Khyron" <khyron@xxxxxxxxxx>
> But couldn't lockmetering still indicate which locks are
> being held for how long? Or is there a better way to go about
> it on uniproc kernels? Or are uniproc locks that finely tuned
> that its irrelevant?

But what's the point of how long the lock is held?  There isn't going to
be contention.  Only the BKL (kernel_flag) can be held across a context
switch, and even for that one the scheduler drops the lock and
reacquires it when that thread gets the CPU back again.  And if an
interrupt-level piece of code acquires a lock, that lock better not be
something that's held by a non-interrupt-level piece of code.

I believe the only thing that's interesting is how long interrupts are
disabled.

Feel free to hack uniprocessor spinlocks to invoke the Lockmeter
routines, if you want to experiment with them.

John Hawkes


<Prev in Thread] Current Thread [Next in Thread>