diff options
| -rw-r--r-- | schulung_tools/matrix/README | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/schulung_tools/matrix/README b/schulung_tools/matrix/README index 40a1e75..9fcb33e 100644 --- a/schulung_tools/matrix/README +++ b/schulung_tools/matrix/README @@ -5,3 +5,14 @@ sudo perf stat ./main -1 # investigate bad cache usage sudo perf stat ./main -2 + +# look at actual cache statistics +sudo perf stat -e cache-misses ./main -1 +sudo perf stat -e cache-misses ./main -2 + +# more detailed events like L1-dcache-loads and L1-dcache-load-misses +# may be available on the system (sudo perf list) + +# investigate which lines of code cause the problem +sudo perf record -e cache-misses ./main -2 +sudo perf report |
