Skip to content

Commit 4696bb2

Browse files
updates
1 parent 53b2745 commit 4696bb2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

content/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/how-to-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ layout: learningpathall
99
## Example code
1010

1111
{{% notice Learning Goal%}}
12-
The example code in this section demonstrates how false sharing affects performance by comparing two multithreaded programsone with cache-aligned data structures and one without. You’ll compile and run both versions, observe the runtime difference, and learn how memory layout affects cache behavior. This sets the stage for analyzing performance with Perf C2C in the next section.
12+
The example code in this section demonstrates how false sharing affects performance by comparing two multithreaded programs; one with cache-aligned data structures, and one without. You’ll compile and run both versions, observe the runtime difference, and learn how memory layout affects cache behavior. This sets the stage for analyzing performance with `perf c2c` in the next section.
1313
{{% /notice %}}
1414

1515
Use a text editor to copy and paste the C example code below into a file named `false_sharing_example.c`

content/learning-paths/servers-and-cloud-computing/false-sharing-arm-spe/how-to-4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ layout: learningpathall
99
## Compare Performance with perf stat
1010

1111
{{% notice Learning goal %}}
12-
In this section, you’ll learn how to use Linux Perf tools and Arm SPE to identify performance bottlenecks in multithreaded applications. You’ll compare aligned and unaligned workloads, detect cache-related slowdowns like false sharing, and trace memory contention down to the source code using Perf C2C.
12+
In this section, you’ll learn how to use Linux Perf tools and Arm SPE to identify performance bottlenecks in multithreaded applications. You’ll compare aligned and unaligned workloads, detect cache-related slowdowns such as false sharing, and trace memory contention down to the source code using Perf C2C.
1313
{{% /notice %}}
1414

15-
A straightforward method to observe the performance characteristics of both binaries would be to use the `perf stat` command.
15+
A simple way to observe the performance difference of both binaries is to use the `perf stat` command.
1616

1717
For example, run the false sharing version using:
1818

0 commit comments

Comments
 (0)