# Analyze cache behavior with Perf C2C on Arm

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/)
- [Arm Statistical Profiling Extension and false sharing](https://learn.arm.com/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/how-to-1/)
- [Set up your environment for Arm SPE and Perf C2C profiling](https://learn.arm.com/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/how-to-2/)
- [False sharing example](https://learn.arm.com/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/how-to-3/)
- [Perform root cause analysis with Perf C2C](https://learn.arm.com/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/how-to-4/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Introductory |
| Reading time: | 15 min |
| Last updated: | 08 Oct 2026 |

|  |  |
| --- | --- |
| Author: | Kieran Hejmadi , Arm<br>[GitHub](https://github.com/kieranhejmadi01)<br>[LinkedIn](https://linkedin.com/in/kieran-hejmadi-88920815b) |
| Arm IP: | [Neoverse](https://support.arm.com/?tab=compute-ip&Product%20Type=Infrastructure%20Processors) |
| Tags: | [Performance and Architecture](https://learn.arm.com/tag/performance-and-architecture/) [AWS Graviton](https://learn.arm.com/tag/aws-graviton) [Microsoft Azure Cobalt](https://learn.arm.com/tag/microsoft-azure-cobalt) [Google Axion](https://learn.arm.com/tag/google-axion) [Oracle Cloud Infrastructure (OCI) Ampere Compute](https://learn.arm.com/tag/oracle-cloud-infrastructure-oci-ampere-compute) [Arm AGI CPU](https://learn.arm.com/tag/arm-agi-cpu) [Linux](https://learn.arm.com/tag/linux) [perf](https://learn.arm.com/tag/perf) [Runbook](https://learn.arm.com/tag/runbook) |

### Who is this for?
This topic is for performance-oriented developers working on Arm-based cloud or server systems who want to optimize memory access patterns and investigate cache inefficiencies using Perf C2C and Arm SPE.

### What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Identify and fix false sharing issues using Perf C2C, a cache line analysis tool.
- Enable and use the Arm Statistical Profiling Extension (SPE) on Linux systems.
- Investigate cache line performance with Perf C2C.

### Prerequisites
Before starting, you'll need the following prerequisites:
- Access to an Arm AGI CPU or an Arm-based cloud instance with support for the Arm Statistical Profiling Extension (SPE).
- A basic understanding of cache coherency and its impact on performance.
- Familiarity with Linux Perf tools.

### Summary
You’ll analyze cache behavior on Arm cloud systems with Arm SPE and Perf C2C. First, you’ll verify SPE and Linux `perf` access, then build aligned and unaligned versions of a multithreaded C example. Next, you’ll compare runtimes with `perf stat` and use Perf C2C to identify contended cache lines and map them to source code. You’ll finish by applying alignment changes to reduce false sharing.
