From: Jens Axboe Date: Fri, 23 May 2008 08:10:54 +0000 (+0200) Subject: smalloc: increase alloc size X-Git-Tag: fio-1.21-rc1~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c5dda9e387101dba4a654f6304553509d73dc298;p=fio.git smalloc: increase alloc size Signed-off-by: Jens Axboe --- 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;