Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anpep/cache_query
Utilities for performance event measurement in Linux
https://github.com/anpep/cache_query
c cache linux perf performance python
Last synced: 19 days ago
JSON representation
Utilities for performance event measurement in Linux
- Host: GitHub
- URL: https://github.com/anpep/cache_query
- Owner: anpep
- License: other
- Created: 2019-12-26T18:16:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T12:02:25.000Z (almost 5 years ago)
- Last Synced: 2024-04-17T17:53:25.432Z (8 months ago)
- Topics: c, cache, linux, perf, performance, python
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
cache_query
===========Introduction
------------
cache_query is an experimental (and buggy) framework for simple cache access
benchmarks on C programs.In order to write a benchmark, include your C program inside of the `test'
directory and annotate it accordingly. For instance,1 //! var variantName_16: -DCOLS=16 -DHELLO
2 //! var variantName_32: -DCOLS=32 -DEXAMPLENote that the syntax for variant specification is as follows:
//! var _:The supplied will be the value of the X axis in the generated plot,
while the Y axis will hold the cache miss rate captured during execution.Hacking
-------
cache_query relies on the perf_event_open(2) system call for counting hardware
performance events (PERF_COUNT_HW_CACHE_MISSES and PERF_COUNT_HW_CACHE_REFERENCES
as of now). Refer to the cache_query.c file in order to add or remove performance
counters.The current code for reading child process events is somewhat buggy, and may not
be indicative of the real state of the executing process. Don't use cache_query
for production or mission-critical systems.Contact
-------
Contact angel for any question or suggestion regarding this software.Licensing
---------
This software is licensed under the public domain and may be modified and
redistributed at will with no restrictions or licensing constraints.