VMS.DevelopPerformanceCounters History
Show minor edits - Show changes to markup - Cancel
Performance counters can be accessed in multiple ways, normally through a higher-level tool. For This work, we chose to directly use Linux's built-in performance counter calls, which we place at strategic locations in the source code of VMS. The reasons for this choice and details of how to use the calls is in the attached PDF. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel. The PDF should be read before trying to use the visualization system, in order to understand what can go wrong.
Performance counters can be accessed in multiple ways, normally through a higher-level tool. For This work, we chose to directly use Linux's built-in performance counter calls, which we place at strategic locations in the source code of VMS. The reasons for this choice and details of how to use the calls is in the perf_event usage. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel. The PDF should be read before trying to use the visualization system, in order to understand what can go wrong.
To check the perf_event_paranoid file, execute: cat /proc/sys/kernel/perf_event_paranoid (it should print out "1"). To change it, you need root priveleges, then just use vi or any other text editor, and put a "1" all by itself on the first line of the file.
To check the perf_event_paranoid file, execute: cat /proc/sys/kernel/perf_event_paranoid (it should print out "-1"). To change it, you need root priveleges, then just use vi or any other text editor, and put a "-1" all by itself on the first line of the file.
Performance counters can be accessed in multiple ways, normally through a higher-level tool. For This work, we chose to directly use Linux's built-in performance counter calls, which we place at strategic locations in the source code of VMS. The reasons for this choice and details of how to use the calls is in the attached PDF. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel. The PDF should be read before trying to use the visualization system.
Performance counters can be accessed in multiple ways, normally through a higher-level tool. For This work, we chose to directly use Linux's built-in performance counter calls, which we place at strategic locations in the source code of VMS. The reasons for this choice and details of how to use the calls is in the attached PDF. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel. The PDF should be read before trying to use the visualization system, in order to understand what can go wrong.
- high level page on perf counter usage
- high level page on perf counter usage
- page on low-level perf counter usage
- if above link is broken, here's a cached version
- page on low-level perf counter usage
- if above link is broken, here's a cached version
To check the perf_event_paranoid file execute: cat /proc/sys/kernel/perf_event_paranoid (it should print out "1")
To check the perf_event_paranoid file, execute: cat /proc/sys/kernel/perf_event_paranoid (it should print out "1"). To change it, you need root priveleges, then just use vi or any other text editor, and put a "1" all by itself on the first line of the file.
- /proc/sys/kernel/perf_event_paranoid must contain 1 (for access by non-privileged users -- the most common reason the calls fail)
- /proc/sys/kernel/perf_event_paranoid must contain 1 (the most common reason the calls fail)
- execute this to check the switch: cat /boot/config-<uname output> | grep CONFIG_PERF_COUNTERS
- execute this to check the switch: cat /boot/config-uname output | grep CONFIG_PERF_COUNTERS
- execute this to check the switch: cat /boot/config-<uname output> | grep CONFIG_PERF_COUNTERS
- execute this to check the switch: cat /boot/config-<uname output> | grep CONFIG_PERF_COUNTERS
- execute this to check the switch: cat /boot/config-<uname release> | grep CONFIG_PERF_COUNTERS
- execute this to check the switch: cat /boot/config-<uname output> | grep CONFIG_PERF_COUNTERS
To check the CONFIG_PERF_COUNTERS compiler switch,
- execute uname -r to print the kernel release and look for the corresponding config file in the /boot directory
- execute this to check the switch: cat /boot/config-<uname release> | grep CONFIG_PERF_COUNTERS
- It may also work to do this: gzip -cd /proc/config.gz | grep CONFIG_PERF_COUNTERS
To check the perf_event_paranoid file execute: cat /proc/sys/kernel/perf_event_paranoid (it should print out "1")
The attached PDF says how to enable performance counters on Linux, and how to put performance counters directly into source code. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel. The PDF should be read before trying to use the visualization system.
Performance counters can be accessed in multiple ways, normally through a higher-level tool. For This work, we chose to directly use Linux's built-in performance counter calls, which we place at strategic locations in the source code of VMS. The reasons for this choice and details of how to use the calls is in the attached PDF. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel. The PDF should be read before trying to use the visualization system.
- Kernel has to be compiled with CONFIG_PERF_COUNTERS=y
- /proc/sys/kernel/perf_event_paranoid must contain 1 (for access by non-privileged users)
- Kernel has to be compiled with CONFIG_PERF_COUNTERS=y (which is the default for recent kernels)
- /proc/sys/kernel/perf_event_paranoid must contain 1 (for access by non-privileged users -- the most common reason the calls fail)
Here is a page kept by a developer on the PAPI project. It has a fairly complete discussion of all things related to Linux performance counter usage:
- high level page on perf counter page
The most common reason for perf counters not working are:
- Kernel has to be compiled with CONFIG_PERF_COUNTERS=y
- /proc/sys/kernel/perf_event_paranoid must contain 1 (for access by non-privileged users)
Here are some pages from a site by a developer on the PAPI project. The site has a fairly complete discussion of all things related to Linux performance counter usage:
- high level page on perf counter usage
The attached PDF talks about how to put performance counters directly into source code. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel.
The attached PDF says how to enable performance counters on Linux, and how to put performance counters directly into source code. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel. The PDF should be read before trying to use the visualization system.
- top level page on perf counter page
- man page on low-level perf counter usage
- high level page on perf counter page
- page on low-level perf counter usage
- main perf counter page
- top level page on perf counter page
Here is a page kept by a developer on the PAPI project. It has a fairly complete discussion of all things related to Linux performance counter usage:
- main perf counter page
- man page on low-level perf counter usage
- if above link is broken, here's a cached version
The attached PDF talks about how to put performance counters directly into source code. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel.
The attached PDF talks about how to put performance counters directly into source code. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel.
Performance Counter Usage
The attached PDF talks about how to put performance counters directly into source code. It references this design document from the Linux source tree: Design document describing the details of performance counters in the Linux kernel.