linux/arch/loongarch
Huacai Chen ff4a2443ef 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 bd4c82c22c ("mm, THP, swap: delay
splitting THP after swapped out"), on ARM64 system according to commit
d0637c505f ("arm64: enable THP_SWAP for arm64") and on RISC-V system
according to commit 87f81e66e2 ("riscv: enable THP_SWAP for RV64").

Enable THP_SWAP for LoongArch, testing the micro-benchmark which is
introduced by commit d0637c505f ("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>
2024-05-14 12:24:18 +08:00
..
boot LoongArch: Update dts for Loongson-2K2000 to support GMAC/GNET 2024-04-10 21:08:51 +08:00
configs LoongArch changes for v6.8 2024-01-19 13:30:49 -08:00
crypto LoongArch/crypto: Clean up useless assignment operations 2024-03-19 15:50:34 +08:00
include LoongArch: Select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 2024-05-14 12:24:18 +08:00
kernel LoongArch: Lately init pmu after smp is online 2024-04-25 22:17:52 +08:00
kvm LoongArch changes for v6.9 2024-03-22 10:22:45 -07:00
lib LoongArch: Select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 2024-05-14 12:24:18 +08:00
mm LoongArch: Fix access error when read fault on a write-only VMA 2024-04-24 12:36:07 +08:00
net LoongArch: BPF: Prevent out-of-bounds memory access 2024-01-17 12:43:13 +08:00
pci LoongArch: Add FDT booting support from efi system table 2022-12-14 08:41:53 +08:00
power LoongArch: Export some arch-specific pm interfaces 2023-06-29 20:58:44 +08:00
vdso LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
Kbuild LoongArch: Allow device trees be built into the kernel 2024-01-17 12:43:00 +08:00
Kconfig LoongArch: Select THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE 2024-05-14 12:24:18 +08:00
Kconfig.debug LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
Makefile LoongArch changes for v6.9 2024-03-22 10:22:45 -07:00