summaryrefslogtreecommitdiff
path: root/Kernel/API/Syscall.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-15 14:30:51 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-15 17:18:11 +0200
commite7d2696a56d158d95ea1462e5523b77b504ffafe (patch)
tree30ec2851262264ea81a2ec54d372f81ac4339374 /Kernel/API/Syscall.h
parentc1af2f28e32fc7d0c5528c17561b68dc29004c4d (diff)
downloadserenity-e7d2696a56d158d95ea1462e5523b77b504ffafe.zip
Kernel: Shrink default userspace stack size from 4 MiB to 1 MiB
This knocks 70 MiB off our idle footprint, (from 350 MiB to 280 MiB.)
Diffstat (limited to 'Kernel/API/Syscall.h')
-rw-r--r--Kernel/API/Syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index e1346fe25e..9e3d247beb 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -347,7 +347,7 @@ struct SC_create_thread_params {
// ... ok, if you say so posix. Guess we get to lie to people about guard page size
unsigned int guard_page_size = 0; // Rounded up to PAGE_SIZE
unsigned int reported_guard_page_size = 0; // The lie we tell callers
- unsigned int stack_size = 4 * MiB; // Default PTHREAD_STACK_MIN
+ unsigned int stack_size = 1 * MiB; // Default PTHREAD_STACK_MIN
void* stack_location; // nullptr means any, o.w. process virtual address
# if ARCH(X86_64)
FlatPtr rdi;