A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SlabAllocator.h File Reference
#include <memory>
+ Include dependency graph for SlabAllocator.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  settings_t
 
struct  _stritem
 
struct  slabclass_t
 
class  SlabAllocator
 

Macros

#define POWER_SMALLEST   1
 
#define POWER_LARGEST   256 /* actual cap is 255 */
 
#define SLAB_GLOBAL_PAGE_POOL   0 /* magic slab class for storing pages for reassignment */
 
#define CHUNK_ALIGN_BYTES   8
 
#define MAX_NUMBER_OF_SLAB_CLASSES   (63 + 1) /* Slab sizing definitions. */
 
#define POWER_SMALLEST   1
 
#define POWER_LARGEST   256 /* actual cap is 255 */
 
#define SLAB_GLOBAL_PAGE_POOL   0 /* magic slab class for storing pages for reassignment */
 
#define CHUNK_ALIGN_BYTES   8
 
#define MAX_NUMBER_OF_SLAB_CLASSES   (63 + 1)
 
#define SLABS_ALLOC_NO_NEWPAGE   1
 

Typedefs

typedef shared_ptr< SlabAllocatorSlabAllocatorPtr
 
typedef struct _stritem item
 

Macro Definition Documentation

#define CHUNK_ALIGN_BYTES   8

Definition at line 25 of file SlabAllocator.h.

#define CHUNK_ALIGN_BYTES   8

Definition at line 25 of file SlabAllocator.h.

#define MAX_NUMBER_OF_SLAB_CLASSES   (63 + 1) /* Slab sizing definitions. */

Definition at line 27 of file SlabAllocator.h.

#define MAX_NUMBER_OF_SLAB_CLASSES   (63 + 1)

Definition at line 27 of file SlabAllocator.h.

#define POWER_LARGEST   256 /* actual cap is 255 */

Definition at line 23 of file SlabAllocator.h.

#define POWER_LARGEST   256 /* actual cap is 255 */

Definition at line 23 of file SlabAllocator.h.

#define POWER_SMALLEST   1

Definition at line 22 of file SlabAllocator.h.

#define POWER_SMALLEST   1

Definition at line 22 of file SlabAllocator.h.

#define SLAB_GLOBAL_PAGE_POOL   0 /* magic slab class for storing pages for reassignment */

Definition at line 24 of file SlabAllocator.h.

#define SLAB_GLOBAL_PAGE_POOL   0 /* magic slab class for storing pages for reassignment */

Definition at line 24 of file SlabAllocator.h.

#define SLABS_ALLOC_NO_NEWPAGE   1

Allocate object of given length. 0 on error

Definition at line 90 of file SlabAllocator.h.

Typedef Documentation

typedef struct _stritem item

Structure for storing items within memcached.

typedef shared_ptr<SlabAllocator> SlabAllocatorPtr

Definition at line 12 of file SlabAllocator.h.