From: Jens Axboe Date: Wed, 14 Jan 2015 04:35:31 +0000 (-0700) Subject: smalloc: limit to 1 pool, and bump size to 16MB X-Git-Tag: fio-2.2.5~13 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=23bd40f944b7b5adb776d92cf614107be2a56445 smalloc: limit to 1 pool, and bump size to 16MB We can easily add new pools, but if we do this after jobs have been forked off, then it wont really be shared storage as the new mmap mappings will only apply to the process that instantiated them. Since we moved the randommap mappings to private storage, we should not need a lot of room for shared allocations. Hence I hope the 16MB will suffice. Signed-off-by: Jens Axboe --- diff --git a/smalloc.c b/smalloc.c index 1ba93535..67cb7cc1 100644 --- a/smalloc.c +++ b/smalloc.c @@ -25,8 +25,8 @@ #define SMALLOC_BPI (sizeof(unsigned int) * 8) #define SMALLOC_BPL (SMALLOC_BPB * SMALLOC_BPI) -#define INITIAL_SIZE 8192*1024 /* new pool size */ -#define MAX_POOLS 128 /* maximum number of pools to setup */ +#define INITIAL_SIZE 16*1024*1024 /* new pool size */ +#define MAX_POOLS 1 /* maximum number of pools to setup */ #define SMALLOC_PRE_RED 0xdeadbeefU #define SMALLOC_POST_RED 0x5aa55aa5U