From e46aa51aa27833e44975b24842e8175c4a0a54da Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 14 Feb 2019 10:45:11 +0106 Subject: schulung_tools: matrix: add instructions counter The amount of instructions should be the same regardless what method you use (1 or 2) but the cache misses will be very different. Looking at these statistics side by side clearly illustrate the problem. Update the README to also include the instruction count. Signed-off-by: John Ogness --- schulung_tools/matrix/README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schulung_tools/matrix/README b/schulung_tools/matrix/README index 9fcb33e..8adf916 100644 --- a/schulung_tools/matrix/README +++ b/schulung_tools/matrix/README @@ -6,9 +6,9 @@ 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 +# look at actual instruction and cache statistics +sudo perf stat -e instructions -e cache-misses ./main -1 +sudo perf stat -e instructions -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) -- cgit v1.2.3