Hermes  0.9.5-beta
Hierarchical Distributed I/O Buffering System
hermes::SharedMemoryContext Struct Reference

#include <buffer_pool.h>

Collaboration diagram for hermes::SharedMemoryContext:

Public Attributes

u8shm_base
 
ptrdiff_t buffer_pool_offset
 
ptrdiff_t metadata_manager_offset
 
u64 shm_size
 
BufferOrganizerbo
 
std::vector< std::vector< std::string > > buffering_filenames
 
int open_files [kMaxDevices][kMaxBufferPoolSlabs]
 
FILE * swap_file
 

Detailed Description

A structure to represent shared memory context

Member Data Documentation

◆ shm_base

u8* hermes::SharedMemoryContext::shm_base

A pointer to the beginning of shared memory.

◆ buffer_pool_offset

ptrdiff_t hermes::SharedMemoryContext::buffer_pool_offset

The offset from the beginning of shared memory to the BufferPool.

◆ metadata_manager_offset

ptrdiff_t hermes::SharedMemoryContext::metadata_manager_offset

The offset from the beginning of shared memory to the Metadata Arena.

◆ shm_size

u64 hermes::SharedMemoryContext::shm_size

The total size of the shared memory (needed for munmap).

◆ bo

BufferOrganizer* hermes::SharedMemoryContext::bo

This will only be valid on Hermes cores, and NULL on client cores.

◆ buffering_filenames

std::vector<std::vector<std::string> > hermes::SharedMemoryContext::buffering_filenames

vector of buffering file names

◆ open_files

int hermes::SharedMemoryContext::open_files[kMaxDevices][kMaxBufferPoolSlabs]

2D array of open files for each device and buffer pool slab

◆ swap_file

FILE* hermes::SharedMemoryContext::swap_file

pointer to swap file


The documentation for this struct was generated from the following file: