diff options
| author | John Ogness <john.ogness@linutronix.de> | 2019-02-14 10:45:11 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-02-14 10:45:11 +0106 |
| commit | e46aa51aa27833e44975b24842e8175c4a0a54da (patch) | |
| tree | 5987a90d93823bae84ea0693856317d81f0e2f2a | |
| parent | 1df58f151a324dbe97f1958fafc1471ec911c629 (diff) | |
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 <john.ogness@linutronix.de>
| -rw-r--r-- | schulung_tools/matrix/README | 6 |
1 files 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) |
