Commit dd44db6
deepin: arm64: cpufeature: disable LSE on some cpus
deepin inclusion
category: performance
Disable LSE (Large System Extensions) atomic instructions
on some systems to improve performance of per-CPU atomic
operations. LSE atomics can exhibit significant overhead
on certain microarchitectures (e.g., TSV110) due
to "far atomic" implementations bypassing L1 cache. LL/SC
(Load-Link/Store-Conditional) is substantially faster.
The default value is 0 (enabled), which automatically
disables LSE on some systems. Set to 1 to skip the check
enablement on our test systems regardless of performance
impact.
When this feature is active, the kernel logs:
"LSE atomics: use llsc for performance, use lse_disable_check=1 to disable the feature."
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 <[email protected]>1 parent 91502cb commit dd44db6
File tree
2 files changed
+43
-1
lines changed- Documentation/admin-guide
- arch/arm64/kernel
2 files changed
+43
-1
lines changed| 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 | + | |
3068 | 3083 | | |
3069 | 3084 | | |
3070 | 3085 | | |
| |||
| 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 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
1543 | 1570 | | |
1544 | 1571 | | |
1545 | 1572 | | |
| |||
2348 | 2375 | | |
2349 | 2376 | | |
2350 | 2377 | | |
2351 | | - | |
| 2378 | + | |
2352 | 2379 | | |
2353 | 2380 | | |
2354 | 2381 | | |
| |||
0 commit comments