Commit 2078ef2
committed
deepin: arm64: cpufeature: disable LSE on UMA
deepin inclusion
category: performance
Disable LSE (Large System Extension) atomic instructions
on UMA (Uniform Memory Access) systems to improve
performance of per-CPU atomic operations. LSE atomics can
exhibit significant overhead on certain microarchitectures
(e.g., Neoverse V2) due to "far atomic" implementations
bypassing L1 cache [1]. LL/SC (Load-Link/Store-Conditional)
is substantially faster for uncontended per-CPU workloads
typical on UMA systems.
The default value is 1 (enabled), which automatically
disables LSE on single-node (UMA) systems. Set to 0 to
force LSE enablement on UMA systems regardless of
performance impact.
When this feature is active, the kernel logs:
"LSE atomics: disabled on UMA, use lse_disable_on_uma=0 to enable."
NUMA systems are unaffected and continue using hardware
detected LSE capability normally.
PS:
Test with byte-unixbench6 in kp920 24c and 64GB memory,
improve whole scores by 3.8%.
Link: https://lore.kernel.org/r/e7d539ed-ced0-4b96-8ecd-048a5b803b85@paulmck-laptop [1]
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent c075a7c commit 2078ef2
2 files changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3065 | 3065 | | |
3066 | 3066 | | |
3067 | 3067 | | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
3068 | 3089 | | |
3069 | 3090 | | |
3070 | 3091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1540 | 1540 | | |
1541 | 1541 | | |
1542 | 1542 | | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
1543 | 1567 | | |
1544 | 1568 | | |
1545 | 1569 | | |
| |||
2348 | 2372 | | |
2349 | 2373 | | |
2350 | 2374 | | |
2351 | | - | |
| 2375 | + | |
2352 | 2376 | | |
2353 | 2377 | | |
2354 | 2378 | | |
| |||
0 commit comments