Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Check that both the hardware and the kernel support Arm SPE and verify that Linux
perf can access the relevant events. Run sudo modprobe arm_spe_pmu to confirm if the SPE kernel module is loaded. Run ls /sys/bus/event_source/devices/ | grep arm_spe to check if SPE is included in the kernel.Start with the unaligned version of the example to expose false sharing. Then, profile the cache-aligned version to compare results and confirm the impact of alignment.
Expect a runtime and counter difference between the two builds, with the unaligned version typically showing more cache-related contention. Exact values vary by system and load.
Look for a report that highlights shared or contended cache lines and maps addresses back to symbols or source locations. You should be able to identify which structures or lines of code are involved in the contention.
Verify that the alignment changes are present in the compiled binaries and that multiple threads are actively updating shared data. Repeat measurements with
perf stat -r 3 for each binary and confirm that your SPE and perf setup is correct.