libmdbx  0.11.6.39 (2022-04-13T11:05:50+03:00)
One of the fastest compact embeddable key-value ACID database without WAL.
MDBX_envinfo Struct Reference

Information about the environment. More...

#include <mdbx.h>

Public Attributes

struct {
   uint64_t   lower
 
   uint64_t   upper
 
   uint64_t   current
 
   uint64_t   shrink
 
   uint64_t   grow
 
mi_geo
 
uint64_t mi_mapsize
 
uint64_t mi_last_pgno
 
uint64_t mi_recent_txnid
 
uint64_t mi_latter_reader_txnid
 
uint64_t mi_self_latter_reader_txnid
 
uint64_t mi_meta0_txnid
 
uint64_t mi_meta0_sign
 
uint64_t mi_meta1_txnid
 
uint64_t mi_meta1_sign
 
uint64_t mi_meta2_txnid
 
uint64_t mi_meta2_sign
 
uint32_t mi_maxreaders
 
uint32_t mi_numreaders
 
uint32_t mi_dxb_pagesize
 
uint32_t mi_sys_pagesize
 
struct {
   struct {
      uint64_t   x
 
      uint64_t   y
 
   }   current
 
   struct {
      uint64_t   x
 
      uint64_t   y
 
   }   meta0
 
   struct {
      uint64_t   x
 
      uint64_t   y
 
   }   meta1
 
   struct {
      uint64_t   x
 
      uint64_t   y
 
   }   meta2
 
mi_bootid
 A mostly unique ID that is regenerated on each boot. More...
 
uint64_t mi_unsync_volume
 
uint64_t mi_autosync_threshold
 
uint32_t mi_since_sync_seconds16dot16
 
uint32_t mi_autosync_period_seconds16dot16
 
uint32_t mi_since_reader_check_seconds16dot16
 
uint32_t mi_mode
 
struct {
   uint64_t   newly
 
   uint64_t   cow
 
   uint64_t   clone
 
   uint64_t   split
 
   uint64_t   merge
 
   uint64_t   spill
 
   uint64_t   unspill
 
   uint64_t   wops
 
mi_pgop_stat
 

Detailed Description

Information about the environment.

See also
mdbx_env_info_ex()

Member Data Documentation

◆ clone

uint64_t MDBX_envinfo::clone

Quantity of parent's dirty pages clones for nested transactions

◆ cow

uint64_t MDBX_envinfo::cow

Quantity of pages copied for update

◆ current [1/2]

uint64_t MDBX_envinfo::current

Current datafile size

◆ current [2/2]

struct { ... } MDBX_envinfo::current

◆ grow

uint64_t MDBX_envinfo::grow

Growth step for datafile

◆ lower

uint64_t MDBX_envinfo::lower

Lower limit for datafile size

◆ merge

uint64_t MDBX_envinfo::merge

Page merges

◆ meta0

struct { ... } MDBX_envinfo::meta0

◆ meta1

struct { ... } MDBX_envinfo::meta1

◆ meta2

struct { ... } MDBX_envinfo::meta2

◆ mi_autosync_period_seconds16dot16

uint32_t MDBX_envinfo::mi_autosync_period_seconds16dot16

Current auto-sync period in 1/65536 of second, see mdbx_env_set_syncperiod().

◆ mi_autosync_threshold

uint64_t MDBX_envinfo::mi_autosync_threshold

Current auto-sync threshold, see mdbx_env_set_syncbytes().

◆ mi_bootid

struct { ... } MDBX_envinfo::mi_bootid

A mostly unique ID that is regenerated on each boot.

As such it can be used to identify the local machine's current boot. MDBX uses such when open the database to determine whether rollback required to the last steady sync point or not. I.e. if current bootid is differ from the value within a database then the system was rebooted and all changes since last steady sync must be reverted for data integrity. Zeros mean that no relevant information is available from the system.

◆ mi_dxb_pagesize

uint32_t MDBX_envinfo::mi_dxb_pagesize

Database pagesize

◆ mi_geo

struct { ... } MDBX_envinfo::mi_geo

◆ mi_last_pgno

uint64_t MDBX_envinfo::mi_last_pgno

Number of the last used page

◆ mi_latter_reader_txnid

uint64_t MDBX_envinfo::mi_latter_reader_txnid

ID of the last reader transaction

◆ mi_mapsize

uint64_t MDBX_envinfo::mi_mapsize

Size of the data memory map

◆ mi_maxreaders

uint32_t MDBX_envinfo::mi_maxreaders

Total reader slots in the environment

◆ mi_meta0_sign

uint64_t MDBX_envinfo::mi_meta0_sign

◆ mi_meta0_txnid

uint64_t MDBX_envinfo::mi_meta0_txnid

◆ mi_meta1_sign

uint64_t MDBX_envinfo::mi_meta1_sign

◆ mi_meta1_txnid

uint64_t MDBX_envinfo::mi_meta1_txnid

◆ mi_meta2_sign

uint64_t MDBX_envinfo::mi_meta2_sign

◆ mi_meta2_txnid

uint64_t MDBX_envinfo::mi_meta2_txnid

◆ mi_mode

uint32_t MDBX_envinfo::mi_mode

Current environment mode. The same as mdbx_env_get_flags() returns.

◆ mi_numreaders

uint32_t MDBX_envinfo::mi_numreaders

Max reader slots used in the environment

◆ mi_pgop_stat

struct { ... } MDBX_envinfo::mi_pgop_stat

Statistics of page operations.

Overall statistics of page operations of all (running, completed and aborted) transactions in the current multi-process session (since the first process opened the database after everyone had previously closed it).

◆ mi_recent_txnid

uint64_t MDBX_envinfo::mi_recent_txnid

ID of the last committed transaction

◆ mi_self_latter_reader_txnid

uint64_t MDBX_envinfo::mi_self_latter_reader_txnid

ID of the last reader transaction of caller process

◆ mi_since_reader_check_seconds16dot16

uint32_t MDBX_envinfo::mi_since_reader_check_seconds16dot16

Time since the last readers check in 1/65536 of second, see mdbx_reader_check().

◆ mi_since_sync_seconds16dot16

uint32_t MDBX_envinfo::mi_since_sync_seconds16dot16

Time since the last steady sync in 1/65536 of second

◆ mi_sys_pagesize

uint32_t MDBX_envinfo::mi_sys_pagesize

System pagesize

◆ mi_unsync_volume

uint64_t MDBX_envinfo::mi_unsync_volume

Bytes not explicitly synchronized to disk

◆ newly

uint64_t MDBX_envinfo::newly

Quantity of a new pages added

◆ shrink

uint64_t MDBX_envinfo::shrink

Shrink threshold for datafile

◆ spill

uint64_t MDBX_envinfo::spill

Quantity of spilled dirty pages

◆ split

uint64_t MDBX_envinfo::split

Page splits

◆ unspill

uint64_t MDBX_envinfo::unspill

Quantity of unspilled/reloaded pages

◆ upper

uint64_t MDBX_envinfo::upper

Upper limit for datafile size

◆ wops

uint64_t MDBX_envinfo::wops

Number of explicit write operations (not a pages) to a disk

◆ x

uint64_t MDBX_envinfo::x

◆ y

uint64_t MDBX_envinfo::y

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