Re: [Lse-tech] lockmeter results comparing 2.4.17, 2.5.3, and 2.5.5

Ravikiran G Thirumalai (kiran@in.ibm.com)
Thu, 28 Feb 2002 14:01:17 +0530


On Wed, Feb 27, 2002 at 11:57:57AM -0800, Hanna Linder wrote:
>
> >
> > I have a concern about the lockmeter results. Lockmeter appears
> > to be measuring lock frequency and hold times and contention. But
> > is it measuring the cost of the cacheline transfers?
>
> This has come up a few times on lse-tech. Lockmeter doesnt
> measure cacheline hits/misses/bouncing. However, someone said
> kernprof could be used to access performance registers on the Pentium
> chip to get this info. I don't know anyone who has tried that though.

I have tried using kernprof; What kernprof can do is list
out the routine-wise performance event counts for a given workload.

I use it with benchmark runs using a script to start and stop profiling
and run the tests in between
something like

kernprof -r
kernprof -b -c all -d pmc -a 0x0020024
urtesttobeexecuted
kernprof -e

Event above "0x0020024" is L2_LINES_IN for P6 family

I've used this to measure cache effects with smp friendly counters,
But for lockmetering, this would not be as good as having cache event
measurements built into lockmeter .......

-Kiran
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/