From e241f3a801c5e01ef89e55b18c8e6d3329711047 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Feb 2019 13:41:15 +0100 Subject: [PATCH] Kernel: Shrink kmalloc() chunk size from 128 to 64. This sacrifices some speed for more space. I don't want to work on a new allocator right this moment, so this buys me some time. --- Kernel/kmalloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/kmalloc.cpp b/Kernel/kmalloc.cpp index 6e564619e0..7f6c669250 100644 --- a/Kernel/kmalloc.cpp +++ b/Kernel/kmalloc.cpp @@ -19,7 +19,7 @@ struct [[gnu::packed]] allocation_t { dword nchunk; }; -#define CHUNK_SIZE 128 +#define CHUNK_SIZE 64 #define POOL_SIZE (1024 * 1024) #define ETERNAL_BASE_PHYSICAL 0x100000