projects
/
platform
/
upstream
/
erofs-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a26cd36
)
erofs-utils: lib: shorten EROFS_FRAGMENT_INMEM_SZ_MAX
author
Gao Xiang
<hsiangkao@linux.alibaba.com>
Fri, 14 Feb 2025 06:24:07 +0000
(14:24 +0800)
committer
Gao Xiang
<hsiangkao@linux.alibaba.com>
Sat, 15 Feb 2025 01:01:15 +0000
(09:01 +0800)
EROFS_CONFIG_COMPR_MAX_SZ (currently 4MiB) is too large and could
cause OOM kills on small setups.
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20250214062407.3281416-3-hsiangkao@linux.alibaba.com
lib/fragments.c
patch
|
blob
|
history
diff --git
a/lib/fragments.c
b/lib/fragments.c
index a4311b1a6055a2bdbff0256c687ba5443449095d..e22b773e46253ee8d5a32ec9f7787a5c9069f92f 100644
(file)
--- a/
lib/fragments.c
+++ b/
lib/fragments.c
@@
-31,7
+31,7
@@
struct erofs_fragment_dedupe_item {
u8 data[];
};
-#define EROFS_FRAGMENT_INMEM_SZ_MAX
EROFS_CONFIG_COMPR_MAX_SZ
+#define EROFS_FRAGMENT_INMEM_SZ_MAX
(256 * 1024)
#define EROFS_TOF_HASHLEN 16
#define FRAGMENT_HASHSIZE 65536