smalloc: increase alloc size
authorJens Axboe <jens.axboe@oracle.com>
Fri, 23 May 2008 08:10:54 +0000 (10:10 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 23 May 2008 08:10:54 +0000 (10:10 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
smalloc.c

index b21a03d96f168af2c42c57d7fcae1c37c99fbd0d..7ffc112cddad1896b23df3b517afead88e1cda34 100644 (file)
--- 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;