From d3f04046f431a2df5ae0ee08b45b9d889749948a Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Mon, 8 May 2023 01:19:37 -0400 Subject: [PATCH] slab: adjust slab sizes --- mem/slab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mem/slab.c b/mem/slab.c index cff8715..ebeb473 100644 --- a/mem/slab.c +++ b/mem/slab.c @@ -3,13 +3,13 @@ #include #include -#define SLAB_MIN_COUNT 256 +#define SLAB_MIN_COUNT 16 #define SLAB_MIN_SIZE 0x10000ull /* 64 KiB */ #define SLAB_ALIGN 7 static size_t slab_sizes[] = { 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 }; static struct slab *slab_cache[ARRAY_SIZE(slab_sizes)]; -static size_t dma_sizes[] = { 0x1000, 0x10000, 0x100000, 0x1000000 }; +static size_t dma_sizes[] = { 0x1000, 0x10000, 0x100000 }; static struct slab *slab_cache_dma[ARRAY_SIZE(slab_sizes)]; static inline void slab_range(struct slab *slab, uintptr_t *o_start, uintptr_t *o_end)