mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2009-02-22, 10:51   #1
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

24×3×11 Posts
Default CPU performance counters, how to use them?

Many years ago (don't dare to count...) I was using some library to count CPU events such as stalls, cache misses, etc.

I guess many people here are as me obsessed by stall removal.

What do people use to access these CPU counters? Dedicated libraries, oprofile, dedicated tools (it looks like Intel VTune for Linux is free for non-commercial use) ?

Last fiddled with by ldesnogu on 2009-02-22 at 10:52
ldesnogu is offline   Reply With Quote
Old 2009-02-22, 11:00   #2
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

1001101000002 Posts
Default

Oprofile for me, but the AMD patched version in their CodeAnalyst for Linux package that adds support for instruction based sampling.

Alex
akruppa is offline   Reply With Quote
Old 2009-02-22, 13:45   #3
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101101000012 Posts
Default

Back in the bad old days, when Intel first published documentation on their performance counters for the original Pentium, your only choice in DOS was to compile your programs with DJGPP, using a real-mode memory management library instead of the default DPMI library, and then read and write the counters directly.

Oprofile is much nicer.
jasonp is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
ICC performance gain testi Msieve 5 2008-11-20 03:00
64-bit performance of v25.6 James Heinrich PrimeNet 11 2008-04-24 01:42
64 bit performance? zacariaz Hardware 1 2007-05-10 13:08
LLR performance on k and n robert44444uk 15k Search 1 2006-02-09 01:43
Performance battlemaxx Prime Sierpinski Project 4 2005-06-29 20:32

All times are UTC. The time now is 18:02.

Thu Oct 22 18:02:35 UTC 2020 up 42 days, 15:13, 2 users, load averages: 3.24, 3.01, 2.84

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.