23 namespace CudaMgr_Namespace {
27 namespace Buffer_Namespace {
32 const size_t max_buffer_pool_size,
34 const size_t min_slab_size,
35 const size_t max_slab_size,
36 const size_t default_slab_size,
37 const size_t page_size,
38 AbstractBufferMgr* parent_mgr =
nullptr)
63 void addSlab(
const size_t slab_size)
override;
66 const size_t page_size,
67 const size_t initial_size)
override;
void addSlab(const size_t slab_size) override
std::unique_ptr< DramArena > allocator_
void allocateBuffer(BufferList::iterator segment_iter, const size_t page_size, const size_t initial_size) override
MgrType getMgrType() override
CudaMgr_Namespace::CudaMgr * cuda_mgr_
Note(s): Forbid Copying Idiom 4.1.
This file includes the class specification for the buffer manager (BufferMgr), and related data struc...
std::string getStringMgrType() override
virtual void initializeMem()
void setAllocator(std::unique_ptr< DramArena > allocator)
void freeAllMem() override
CpuBufferMgr(const int device_id, const size_t max_buffer_pool_size, CudaMgr_Namespace::CudaMgr *cuda_mgr, const size_t min_slab_size, const size_t max_slab_size, const size_t default_slab_size, const size_t page_size, AbstractBufferMgr *parent_mgr=nullptr)