https://bugs.kde.org/show_bug.cgi?id=465465

--- Comment #9 from Ivica <[email protected]> ---
Created attachment 156192
  --> https://bugs.kde.org/attachment.cgi?id=156192&action=edit
Cache conflicts log file

Hi!

As promised, attached is the cachegrind cg_annotate output on a code that has
cache conflicts. Cachegrind was running on Raspberry Pi Ubuntu. The source code
is available here:
https://github.com/ibogosavljevic/johnysswlab/tree/master/2023-02-cache-conflicts

The test includes two scenarios:
* Matrix multiplication, with matrices sizes 496, 512 and 528 doubles
(corresponding to 3968, 4096 and 4224 bytes).
* Binary search with sizes 15.96 MB, 16 MB and 16.04 MB.

For each dataset size there is a separate function, e.g.
matrix_mul1, matrix_mul2, matrix_mul3
binary_search1, binary_search2, binary_search3

matrix_mul2 and binary_search2 have cache conflicts. matrix_mul2 also has 4K
aliasing, which is related to the Intel CPU.

If you look at the eviction statistics, for matrix_mul2 and binary_search2 data
gets evicted much faster compared to the other cases.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to