#ifndef RDB_BIGALLOC
#define RDB_BIGALLOC
#include "list.h"
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
rdb_ALLOCATOR base;
lcb_clist_t bufs;
unsigned refcount;
unsigned min_blk_alloc;
unsigned max_blk_alloc;
unsigned max_blk_count;
unsigned n_requests;
unsigned n_toobig;
unsigned n_toosmall;
unsigned total_malloc;
unsigned total_requests;
unsigned total_toobig;
unsigned total_toosmall;
} rdb_BIGALLOC;
#define RDB_BIGALLOC_ALLOCSZ_MAX 65536
#define RDB_BIGALLOC_ALLOCSZ_MIN 256
#define RDB_BIGALLOC_BLKCNT_MAX 8
#define RDB_BIGALLOC_RECHECK_RATE 15
void
rdb_bigalloc_dump(rdb_BIGALLOC *alloc, FILE *fp);
#ifdef __cplusplus
}
#endif
#endif