diff options
| author | Huacai Chen <[email protected]> | 2024-05-14 04:24:18 +0000 |
|---|---|---|
| committer | Huacai Chen <[email protected]> | 2024-05-14 04:24:18 +0000 |
| commit | ff4a2443ef88874943f6d8444fb86327ec6f96b0 (patch) | |
| tree | 1c536dd6f3afb1de005b4bef532d41cd0a359b27 /scripts/generate_rust_target.rs | |
| parent | LoongArch: Select ARCH_WANT_DEFAULT_BPF_JIT (diff) | |
| download | kernel-ff4a2443ef88874943f6d8444fb86327ec6f96b0.tar.gz kernel-ff4a2443ef88874943f6d8444fb86327ec6f96b0.zip | |
LoongArch: Select THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE
THP_SWAP has been proven to improve the swap throughput significantly on
x86_64 system according to commit bd4c82c22c367e0 ("mm, THP, swap: delay
splitting THP after swapped out"), on ARM64 system according to commit
d0637c505f8a1d ("arm64: enable THP_SWAP for arm64") and on RISC-V system
according to commit 87f81e66e2e84c7 ("riscv: enable THP_SWAP for RV64").
Enable THP_SWAP for LoongArch, testing the micro-benchmark which is
introduced by commit d0637c505f8a1d ("arm64: enable THP_SWAP for arm64")
shows below numbers on the Loongson-3A5000 board:
swp out bandwidth w/o patch: 1815716 bytes/ms (mean of 10 tests)
swp out bandwidth w/ patch: 3410003 bytes/ms (mean of 10 tests)
Improved by 46.75%!
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
