Skip to content

Commit 0d644e9

Browse files
chunkeeyrichardweinberger
authored andcommitted
um: increase default virtual physical memory to 64 MiB
The current 32 MiB of RAM causes OOMs to appear shortly after booting in a minimal OpenWrt 22.03 configuration with a 5.10.134 kernel. Of course, passing a "mem=64M" (from the --help text) parameter works too, but it produces the following (info) message: | [ 0.000000] Unknown kernel command line parameters "mem=64M", will be passed to user space. That's why, I think it would be nicer, if this is working out of the box again :). Signed-off-by: Christian Lamparter <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 16c546e commit 0d644e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/kernel/um_arch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static int have_root __initdata;
132132
static int have_console __initdata;
133133

134134
/* Set in uml_mem_setup and modified in linux_main */
135-
long long physmem_size = 32 * 1024 * 1024;
135+
long long physmem_size = 64 * 1024 * 1024;
136136
EXPORT_SYMBOL(physmem_size);
137137

138138
static const char *usage_string =

0 commit comments

Comments
 (0)