mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
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 commitbd4c82c22c("mm, THP, swap: delay splitting THP after swapped out"), on ARM64 system according to commitd0637c505f("arm64: enable THP_SWAP for arm64") and on RISC-V system according to commit87f81e66e2("riscv: enable THP_SWAP for RV64"). Enable THP_SWAP for LoongArch, testing the micro-benchmark which is introduced by commitd0637c505f("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 <chenhuacai@loongson.cn>
This commit is contained in:
parent
d0b35b0247
commit
ff4a2443ef
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue