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. :^)
This commit is contained in:
Andreas Kling 2021-02-12 19:17:09 +01:00
parent e8d3856736
commit 29045f84d4
Notes: sideshowbarker 2024-07-18 22:23:56 +09:00

View file

@ -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; }