PMC(1) BSD General Commands Manual PMC(1)NAME
pmc -- performance-monitoring counter interface for command execution
SYNOPSIS
pmc -h
pmc -C
pmc -c event command [options ...]
DESCRIPTION
pmc is a means of using a processor's performance-monitoring counter (PMC) facility to measure various aspects of a program's execution. It
is meant to be used in a fashion similar to time(1).
The arguments are as follows:
-h Display a list of performance counter events available on the system.
-C Cancel any performance counters that are currently running.
-c event
Count the event specified by event while running the command.
DIAGNOSTICS
PMC support is not compiled into the kernel Performance-monitoring counter support has not been compiled into the kernel. It may be
included using the PERFCTRS option. See options(4) for details.
PMC counters are not supported by CPU Performance-monitoring counters are not available for the CPU.
SEE ALSO time(1), options(4)HISTORY
The pmc command first appeared in NetBSD 1.6.
AUTHORS
The pmc command was written by Frank van der Linden <fvdl@wasabisystems.com>. The kernel support for reading performance counters on the
i386 architecture was written by
Jason R. Thorpe <thorpej@zembu.com>.
BUGS
The pmc command currently only supports performance-monitoring counters on the i386 architecture.
BSD October 24, 2000 BSD
Check Out this Related Man Page
PMC_READ(3) BSD Library Functions Manual PMC_READ(3)NAME
pmc_read, pmc_rw, pmc_write, -- read and write hardware performance counters
LIBRARY
Performance Counters Library (libpmc, -lpmc)
SYNOPSIS
#include <pmc.h>
int
pmc_read(pmc_id_t pmc, pmc_value_t *value);
int
pmc_rw(pmc_id_t pmc, pmc_value_t newvalue, pmc_value_t *oldvaluep);
int
pmc_write(pmc_id_t pmc, pmc_value_t value);
DESCRIPTION
These functions read and write the current value of a PMC.
Function pmc_read() will read the current value of the PMC specified by argument pmc and write it to the location specified by argument
value.
Function pmc_write() will set the current value of the PMC specified by argument pmc to the value specified by argument value.
Function pmc_rw() combines a read and a write into a single atomic operation.
For write operations the PMC should be a quiescent state.
RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the
error.
ERRORS
A call to these functions may fail with the following errors:
[EBUSY] A write operation specified a currently running PMC.
[EINVAL] Argument pmc specified a PMC not in a readable state.
[EINVAL] The PMC specified by argument pmc was not owned by the current process.
SEE ALSO pmc(3), hwpmc(4)BSD November 25, 2007 BSD
Man Page
15 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Hello All,
I want to build some monitoring of processes in HP-UX 11.x.
Is there any way to get the whole set of commands and arguments instead of the first 60 characters? I read that there's a limitation of the ps -ef command that we can't overcome. In this case is there any other command... (17 Replies)
I am looking for a commercial tool that will give me -UNIX Monitoring performance solution+ reports on CCV format. (as perfmon on windows machines).
The tool must have following counters per PROCESS:
Page Faults/sec
Virtual Bytes
% Processor Time
Handles count
Threads count... (19 Replies)
Hi All
I am reading a huge file of size 2GB atleast. I am reading each line and cutting certain columns and writing it to another file.
Here is the logic.
int main()
{
string u_line;
string Char_List;
string u_file;
int line_pos;
string temp_form_u_file;
... (10 Replies)
Hello,
My field is operations monitoring and this is the first time I am looking into server monitoring, so apologies if I ask stupid questions.
I would like to know if it is possible to integrate nmon with BMC patrol, i.e. feeding metrics/events from nmon into BMC patrol?
Thanks in... (6 Replies)
Hi all,
I am planning to give a presentation on performance measure. I have decided to focus on the commands which are used to know the performance of the server. I have a idea of prstat,vmstat,netstat, and iostat. Could anybody suggest me any other commands which are used for perforamance... (7 Replies)
In my C program i am using very large file(approx 400MB) to read parts of it frequently. But due to large file the performance of the program goes down very badly. It shows very high I/O usage and I/O wait time.
My question is, What are the ways to optimize or tune I/O on linux or how i can get... (10 Replies)
Dear experts ,
Pls advice for any good Tool to monitor the CPU and performance of AIX the system ..
to keep monitoring to show me the utilization of that system .. (12 Replies)
There might be some problem with my server,
because every morning at 7, it's performance become bad with no DB extra deadlock.
But I just couldn't figure it out.
Please give me some advise, thanks a lot...
According to the CPU performace chart, Daily CPU loading Maximum: 42 %, Average:36%.
... (8 Replies)
I've just been handed a hot potato from a colleague who left :(... our client has been complaining about slow performance on one of our servers.
I'm not very experienced in investigating performance issues so I hoping someone will be so kind to provide some guidance
Here is an overview of the... (8 Replies)
Dear Guru,
IHAC who complaint that his CentOS is getting performance issue.
I have to help him out of there.
Could you please tell me which tools is better to gathering the whole system performance data?
-- CPU/Memory/IO(disk & Network)/swap
I would like the tools could be... (6 Replies)
Hi all,
is any of you using RMC for monitoring your LPARs? Is it viable?
I know the IBM Magazine article and the Redbooks about it but I would like to hear from first hand.
Thanks in advance for sharing your experience! (7 Replies)
Hi All,
I currently have a shell script which is pulling multiple counters from various sources. Due to the counters being cumulative counters I've got some code to work out the delta from the last reading and current which is working fine.
The problem i have now is being able to work out the... (8 Replies)
I have a IBM Power9 server coupled with a NVMe StorWize V7000 GEN3 storage, doing some benchmarks and noticing that single thread I/O (80% Read / 20% Write, common OLTP I/O profile) seems slow.
./xdisk -R0 -r80 -b 8k -M 1 -f /usr1/testing -t60 -OD -V
BS Proc AIO read% IO Flag IO/s ... (8 Replies)