The disk manager controls operations between the eXtremeDB cache and the persistent storage media. Following is the definition of the
mco_disk_info_t
structure which describes the state of the current Disk Manager.Disk info
The structure is defined in
mco.h
as follows:typedef struct mco_disk_info { mco_offs_t data_file_size; /* Total size of database storage */ mco_offs_t log_file_size; /* Total size of database log */ mco_offs_t used_database_size; /* Size of used part of database storage */ } mco_disk_info_t;
data_file_size Total size of database storage log_file_size Total size of database log. used_database_size Size of used part of database storage
Cache info
Following is the definition of the
mco_disk_cache_info_t
structure which describes the state of the current Disk Manager cache.The structure is defined in
mco.h
as follows:typedef struct mco_disk_cache_info_t_ { mco_counter_t connection_cache_hits; mco_counter_t cache_hits; mco_counter_t cache_misses; mco_counter_t allocated_pages; mco_counter_t used_pages; mco_counter32_t pinned_pages; /* Number of pinned pages: need to be 32 bit to be able to use atomic */ mco_counter_t modified_pages; /* Number of pages modified by active transactions */ mco_counter_t dirty_pages; /* Number of dirty pages */ mco_counter_t copied_pages; /* Number of copies of original pages (REDO_LOG+MCO_COMMIT_DELAYED) */ mco_counter_t write_delayed_pages; /* Number of write delayed pages */ mco_counter_t subsequent_reads; /* Number of reads of sequentally located paged */ } mco_disk_cache_info_t;