hulk inclusion category: performance bugzilla: https://gitee.com/openeuler/kernel/issues/I8QS6H
--------------------------------
The cache false-sharing exists in the struct file, for syscall test case of Unixbench. In a system with a 128B cacheline size, we force set it to 64B alignment to get a better performance.
If we use alignment, it would waste ~192 bytes at worst case for each file struct.
We enable it on openEuler arm64 platform.
If unsure, see N.
Signed-off-by: Xie XiuQi xiexiuqi@huawei.com --- arch/arm64/configs/openeuler_defconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/openeuler_defconfig b/arch/arm64/configs/openeuler_defconfig index 158a9f3bb8fd..0d0d7e04d4b5 100644 --- a/arch/arm64/configs/openeuler_defconfig +++ b/arch/arm64/configs/openeuler_defconfig @@ -6592,6 +6592,7 @@ CONFIG_NLS_UTF8=m # CONFIG_DLM is not set # CONFIG_UNICODE is not set CONFIG_IO_WQ=y +CONFIG_FILE_MITIGATION_FALSE_SHARING=y # end of File systems
CONFIG_RESCTRL=y