From c5dda9e387101dba4a654f6304553509d73dc298 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 23 May 2008 10:10:54 +0200 Subject: [PATCH] smalloc: increase alloc size Signed-off-by: Jens Axboe --- smalloc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/smalloc.c b/smalloc.c index b21a03d9..7ffc112c 100644 --- a/smalloc.c +++ b/smalloc.c @@ -15,8 +15,8 @@ #define MP_SAFE /* define to made allocator thread safe */ -#define INITIAL_SIZE 1048576 /* new pool size */ -#define MAX_POOLS 32 /* maximum number of pools to setup */ +#define INITIAL_SIZE 32*1048576 /* new pool size */ +#define MAX_POOLS 4 /* maximum number of pools to setup */ unsigned int smalloc_pool_size = INITIAL_SIZE; @@ -384,6 +384,8 @@ void *smalloc(unsigned int size) { unsigned int i; + printf("size=%u\n", size); + global_read_lock(); i = last_pool; -- 2.25.1