some questions when coding PAPI programs

Open discussion of PAPI.

some questions when coding PAPI programs

Postby kakagou » Sun Sep 20, 2009 5:30 pm

now I am going to write a program to read counter values periodically on linux, for example one time per second,
the program is used to get the counter values of bechmarks
Since PAPI is based on per-thread, how I get the performance counter values of the bechmark periodically?

Should I add codes in linux scheduler? or just write a program to handle this? who can give me some advise?
Posts: 3
Joined: Fri Sep 18, 2009 7:30 am

Re: some questions when coding PAPI programs

Postby Dan Terpstra » Mon Sep 21, 2009 1:13 pm

You need to instrument the benchmark source code with PAPI calls and recompile. You can overflow based on the cycle counter to get periodic values. If you don't have the source, you can use a tool like PerfSuite to get aggregate counts for the whole benchmark.
Dan Terpstra

Re: some questions when coding PAPI programs

Postby yuzhibin » Sun Nov 15, 2009 2:26 am

I think we can monitor the performance counters of a benchmark by PAPI. It can used in following way:
./monitor_perf (PAPI tool name) bzip2 (benchmark name) benchmark parameters...

above program has been developed correctly.
I am working on how to output the values periodically.

Best regards,
Zhibin :roll:
Posts: 4
Joined: Sun Nov 15, 2009 1:56 am

Return to General discussion (read-only)

Who is online

Users browsing this forum: No registered users and 3 guests