From 29045f84d458e2a52488672ac11608673a678747 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 12 Feb 2021 19:17:09 +0100 Subject: [PATCH] Kernel: Decrease default userspace stack size to 1 MiB Not sure why this was 4 MiB in the first place, but that's a lot of memory to reserve for each thread when we're running with 512 MiB total in the default testing setup. :^) --- Kernel/Thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Thread.h b/Kernel/Thread.h index fedd5aaaa0..b4dfae9c1d 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -1090,7 +1090,7 @@ public: static IterationDecision for_each(Callback); static constexpr u32 default_kernel_stack_size = 65536; - static constexpr u32 default_userspace_stack_size = 4 * MiB; + static constexpr u32 default_userspace_stack_size = 1 * MiB; u32 ticks_in_user() const { return m_ticks_in_user; } u32 ticks_in_kernel() const { return m_ticks_in_kernel; }