From: Erik Corry <erik@arbat.com>
To: lm@bitmover.com, linux-kernel@vger.kernel.org, mikpe@csd.uu.se
Subject: Re: [RFC][PATCH] Scalable Scheduling
Date: Tue, 14 Aug 2001 16:22:10 +0200 [thread overview]
Message-ID: <20010814162210.A6660@arbat.com> (raw)
"Larry McVoy" <20010808111844.S23718@work.bitmover.com> wrote:
> Someobdy really ought to take the time to make a cache miss counter program
> that works like /bin/time. So I could do
> $ cachemiss lat_ctx 2
> 10123 instruction, 22345 data, 50432 TLB flushes
Take a look at http://www.csd.uu.se/~mikpe/linux/perfctr/.
It's a patch to make the performance counters per-program, and
make them easy to control.
There's an example program in there called perfex which does what
you want, though the user interface isn't as simple as the above.
You can do
perfex -e 0x00430046 lat_ctx 2
The last two digits of the -e value are the counter to be printed,
which in this case (Athlon) is the data-TLB misses. That stuff
is documented in
http://www.amd.com/products/cpg/athlon/techdocs/pdf/22007.pdf
page 164/180
It would be nice if the patch found it's way into the kernel.
If you have APIC support there is also infrastructure for profiling
based on event-sampling instead of time sampling (sample every 100
cache misses instead of every 100us). (Sadly my old 0.25um Athlon
has no APIC support).
--
Erik Corry erik@arbat.com Ceterum censeo, Microsoftem esse delendam!
next reply other threads:[~2001-08-14 19:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-14 14:22 Erik Corry [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-11 0:04 [RFC][PATCH] Scalable Scheduling Hubertus Franke
2001-08-08 20:02 Hubertus Franke
2001-08-08 19:40 Hubertus Franke
2001-08-08 19:51 ` Victor Yodaiken
2001-08-08 19:16 Hubertus Franke
2001-08-08 19:05 Hubertus Franke
2001-08-08 17:32 Hubertus Franke
2001-08-08 17:43 ` Linus Torvalds
2001-08-08 18:00 ` Linus Torvalds
2001-08-08 18:18 ` Larry McVoy
2001-08-08 18:53 ` David S. Miller
2001-08-10 23:58 ` Chris Wedgwood
2001-08-08 18:28 ` Mike Kravetz
2001-08-08 19:06 ` Daniel Phillips
2001-08-08 19:14 ` Linus Torvalds
2001-08-08 19:27 ` Victor Yodaiken
2001-08-08 16:16 Mike Kravetz
2001-08-08 16:40 ` Linus Torvalds
2001-08-08 17:05 ` Mike Kravetz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010814162210.A6660@arbat.com \
--to=erik@arbat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lm@bitmover.com \
--cc=mikpe@csd.uu.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox