From 768ae8e611350ff86f2ace1f2ef9c72ba1011219 Mon Sep 17 00:00:00 2001 From: Cyber Knight Date: Sun, 3 Jul 2022 21:30:48 +0800 Subject: [PATCH] include/linux: lz4: Reduce LZ4 memory usage to 16KB - 64KB seems to not behave well at high memory pressure hence let's reduce it to 16KB which is the default. Suggested-by: vantoman Signed-off-by: Cyber Knight Signed-off-by: Ruchit --- include/linux/lz4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/lz4.h b/include/linux/lz4.h index 60bac103a692..263b98ff4221 100755 --- a/include/linux/lz4.h +++ b/include/linux/lz4.h @@ -55,7 +55,7 @@ * Reduced memory usage can improve speed, due to cache effect * Default value is 14, for 16KB, which nicely fits into Intel x86 L1 cache */ -#define LZ4_MEMORY_USAGE 16 +#define LZ4_MEMORY_USAGE 14 #define LZ4_MAX_INPUT_SIZE 0x7E000000 /* 2 113 929 216 bytes */ #define LZ4_COMPRESSBOUND(isize) (\