Skip to content

Server statistics: statdump

View as Markdown

coradb statdump utility checks statistics information processed by the CoraDB database server. The statistics information mainly consists of the following: File I/O, Page buffer, Logs, Transactions, Concurrency/Lock, Index, and Network request.

You can also use corasql's session commands to check the statistics information only about the corasql's connection. For details, see Dumping corasql execution statistics information.

coradb statdump [options] database_name
  • coradb: An integrated utility for the CoraDB service and database management.
  • statdump: A command that dumps the statistics information on the database server execution.
  • database_name: The name of database which has the statistics data to be dumped.

The following shows [options] available with the coradb statdump utility.

-i, --interval=SECOND

This option specifies the periodic number of Dumping statistics as seconds.

The following outputs the accumulated values per second.

coradb statdump -i 1 -c testdb

The following outputs the accumulated values during 1 second, as starting with 0 value per every 1 second.

coradb statdump -i 1 testdb

The following outputs the last values which were executed with -i option.

coradb statdump testdb

The following outputs the same values with the above. -c option doesn't work if it is not used with -i option together.

coradb statdump -c testdb

The following outputs the values per every 5 seconds.

$ coradb statdump -i 5 -c testdb
Mon November 11 23:44:36 KST 2019
*** SERVER EXECUTION STATISTICS ***
Num_file_creates = 0
Num_file_removes = 0
Num_file_ioreads = 0
Num_file_iowrites = 3
Num_file_iosynches = 3
The timer values for file_iosync_all are:
Num_file_iosync_all = 0
Total_time_file_iosync_all = 0
Max_time_file_iosync_all = 0
Avg_time_file_iosync_all = 0
Num_file_page_allocs = 0
Num_file_page_deallocs = 0
Num_data_page_fetches = 0
Num_data_page_dirties = 0
Num_data_page_ioreads = 0
Num_data_page_iowrites = 0
Num_data_page_flushed = 0
Num_data_page_private_quota = 11327
Num_data_page_private_count = 0
Num_data_page_fixed = 1
Num_data_page_dirty = 0
Num_data_page_lru1 = 18
Num_data_page_lru2 = 10
Num_data_page_lru3 = 0
Num_data_page_victim_candidate = 0
Num_log_page_fetches = 0
Num_log_page_ioreads = 0
Num_log_page_iowrites = 6
Num_log_append_records = 9
Num_log_archives = 0
Num_log_start_checkpoints = 0
Num_log_end_checkpoints = 0
Num_log_wals = 0
Num_log_page_iowrites_for_replacement = 0
Num_log_page_replacements = 0
Num_page_locks_acquired = 0
Num_object_locks_acquired = 0
Num_page_locks_converted = 0
Num_object_locks_converted = 0
Num_page_locks_re-requested = 0
...

The following are the explanation about the above statistical information. You can find the statistic category (database module), the name, the stat type and a brief description for each statistic.

There are several types of statistic, based on how they are collected:

  • Accumulator: The stat values are incremented whenever the tracked action happens.
  • Counter/timer: The stat tracks both the number and the duration of an action. Also biggest and average duration are tracked.
  • Snapshot: The stat is peeked from database.
  • Complex: The stat tracks multiple values for an action, separated by various attributes.

Most statistics are accumulators (they are incremented when an action happens). Other statistics can be counter/timers (they track both number of actions and their duration), some are peeked from database (snapshot) and some are computed based on other values. Lastly, there are several complex statistics which track detailed information on some operations.

File I/O

Stat name Stat type Description
Num_file_removes Accumulator The number of files removed
Num_file_creates Accumulator The number of files created
Num_file_ioreads Accumulator The number of files read
Num_file_iowrites Accumulator The number of files stored
Num_file_iosynches Accumulator The number of file synchronization
..file_iosync_all Counter/timer The number and duration of sync all files
Num_file_page_allocs Accumulator The number of page allocations
Num_file_page_deallocs Accumulator The number of page deallocations

Page buffer

Stat name Stat type Description
Num_data_page_fetches Accumulator The number of fetched pages
Num_data_page_dirties Accumulator The number of dirty pages
Num_data_page_ioreads Accumulator The number of pages read from disk (more means less efficient, it correlates with lower hit ratio)
Num_data_page_iowrites Accumulator The number of pages write to disk (more means less efficient)
Num_data_page_private_quota Snapshot The target number of pages for private LRU lists
Num_data_page_private_count Snapshot The actual number of pages for private LRU lists
Num_data_page_fixed Snapshot The number of fixed pages in data buffer
Num_data_page_dirty Snapshot The number of dirty pages in data buffer
Num_data_page_lru1 Snapshot The number of pages in LRU1 zone in data buffer
Num_data_page_lru2 Snapshot The number of pages in LRU2 zone in data buffer
Num_data_page_lru3 Snapshot The number of pages in LRU3 zone in data buffer
Num_data_page_victim_candidate Snapshot The number of victim candidate pages in data buffer

Logs

Stat name Stat type Description
Num_log_page_fetches Accumulator The number of fetched log pages
Num_log_page_ioreads Accumulator The number of log pages read
Num_log_page_iowrites Accumulator The number of log pages stored
Num_log_append_records Accumulator The number of log records appended
Num_log_archives Accumulator The number of logs archived
Num_log_start_checkpoints Accumulator The number of started checkpoints
Num_log_end_checkpoints Accumulator The number of ended checkpoints
Num_log_wals Accumulator The number of log flushes requested to write a data page.
Num_log_page_iowrites_for_replacement Accumulator The number of log data pages written to disk due to replacements (should be zero)
Num_log_page_replacements Accumulator The number of log data pages discarded due to replacements
Num_prior_lsa_list_size Accumulator Current size of the prior LSA(Log Sequence Address) list. CoraDB write the order of writing into the prior LSA list, before writing operation from the log buffer to the disk; this list is used to raise up the concurrency by reducing the waiting time of the transaction from writing to disk
Num_prior_lsa_list_maxed Accumulator The count of the prior LSA list being reached at the maximum size. The maximum size of the prior LSA list is log_buffer_size * 2. If this value is big, we can assume that log writing jobs happen a lot at the same time
Num_prior_lsa_list_removed Accumulator The count of LSA being moved from prior LSA list into log buffer. We can assume that the commits have happened at the similar count with this value
Log_page_buffer_hit_ratio Computed Hit ratio of log page buffers (Num_log_page_fetches - Num_log_page_fetch_ioreads)*100 / Num_log_page_fetches

Concurrency/lock

Stat name Stat type Description
Num_page_locks_acquired Accumulator The number of locked pages acquired
Num_object_locks_acquired Accumulator The number of locked objects acquired
Num_page_locks_converted Accumulator The number of locked pages converted
Num_object_locks_converted Accumulator The number of locked objects converted
Num_page_locks_re-requested Accumulator The number of locked pages requested
Num_object_locks_re-requested Accumulator The number of locked objects requested
Num_page_locks_waits Accumulator The number of locked pages waited
Num_object_locks_waits Accumulator The number of locked objects waited
Num_object_locks_time_waited_usec Accumulator The time in microseconds spent on waiting for all object locks
Time_obj_lock_acquire_time Complex Time consumer for locking objects classified by lock mode

Transactions

Stat name Stat type Description
Num_tran_commits Accumulator The number of commits
Num_tran_rollbacks Accumulator The number of rollbacks
Num_tran_savepoints Accumulator The number of savepoints
Num_tran_start_topops Accumulator The number of top operations started
Num_tran_end_topops Accumulator The number of top operations stopped
Num_tran_interrupts Accumulator The number of interruptions
Num_tran_postpone_cache_hits Accumulator The number of cache hits when executing transaction postpone ops
Num_tran_postpone_cache_miss Accumulator The number of cache misses when executing transaction postpone ops Cache misses may degrade performance of transaction commits and may impact all log operations
Num_tran_topop_postpone_cache_hits Accumulator The number of cache hits when executing top operations postpone ops
Num_tran_topop_postpone_cache_miss Accumulator The number of cache misses when executing top operations postpone Cache misses may degrade performance of top operations commits and may impact all log operations

Index

Stat name Stat type Description
Num_btree_inserts Accumulator The number of nodes inserted
Num_btree_deletes Accumulator The number of nodes deleted
Num_btree_updates Accumulator The number of nodes updated
Num_btree_covered Accumulator The number of cases in which an index includes all data upon query execution
Num_btree_noncovered Accumulator The number of cases in which an index includes some or no data upon query execution
Num_btree_resumes Accumulator The exceeding number of index scan specified due to too many results
Num_btree_multirange_optimization Accumulator The number of executions on multi-range optimization for the WHERE ... IN ... LIMIT condition query statement
Num_btree_splits Accumulator The number of B-tree split-operations
Num_btree_merges Accumulator The number of B-tree merge-operations
Num_btree_get_stats Accumulator The number of B-tree get stat calls
..bt_leaf Counter/timer The number and duration of all operations in index leaves
..bt_find_unique Counter/timer The number and duration of B-tree 'find-unique' operations
..btrange_search Counter/timer The number and duration of B-tree 'range-search' operations
..bt_insert_obj Counter/timer The number and duration of B-tree 'insert object' operations
..bt_delete_obj Counter/timer The number and duration of B-tree 'physical delete object' operations
..bt_mvcc_delete Counter/timer The number and duration of B-tree 'mvcc delete' operations
..bt_mark_delete Counter/timer The number and duration of B-tree mark delete operations
..bt_undo_insert Counter/timer The number and duration of B-tree 'undo insert' operations
..bt_undo_delete Counter/timer The number and duration of B-tree 'undo physical delete' operations
..bt_undo_mvcc_delete Counter/timer The number and duration of B-tree 'undo mvcc delete' operations
..bt_vacuum Counter/timer The number and duration of B-tree vacuum deleted object operations
..bt_vacuum_insid Counter/timer The number and duration of vacuum operations on B-tree 'insert id'
..bt_fix_ovf_oids Counter/timer The number and duration of B-tree overflow page fixes
..bt_unique_rlocks Counter/timer The number and duration of blocked read locks on unique indexes
..bt_unique_wlocks Counter/timer The number and duration of blocked write locks on unique indexes
..bt_traverse Counter/timer The number and duration of B-tree traverse
..bt_find_unique_traverse Counter/timer The number and duration of B-tree traverse for 'find unique'
..bt_range_search_traverse Counter/timer The number and duration of B-tree traverse for 'range search'
..bt_insert_traverse Counter/timer The number and duration of B-tree traverse for 'insert'
..bt_delete_traverse Counter/timer The number and duration of B-tree traverse for 'physical delete'
..bt_mvcc_delete_traverse Counter/timer The number and duration of B-tree traverse for 'mvcc delete'
..bt_mark_delete_traverse Counter/timer The number and duration of B-tree traverse for 'mark delete'
..bt_undo_insert_traverse Counter/timer The number and duration of B-tree traverse for 'undo physical insert'
..bt_undo_delete_traverse Counter/timer The number and duration of B-tree traverse for 'undo physical delete'
..bt_undo_mvcc_delete_traverse Counter/timer The number and duration of B-tree traverse for 'undo delete'
..bt_vacuum_traverse Counter/timer The number and duration of B-tree traverse for vacuum deleted object
..bt_vacuum_insid_traverse Counter/timer The number and duration of B-tree traverse for vacuum 'insert id'

Load index online

Stat name Stat type Description
..btree_online_load Counter/timer The number and duration of B-tree online index loading statements
..btree_online_insert_task Counter/timer The number and duration of batch insert tasks by index loader
..btree_online_prepare_task Counter/timer The number and duration of preparing (sorting) index loader tasks
..btree_online_insert_leaf Counter/timer The number and duration of leaf pages processed by index loader (multiple keys may be inserted while a leaf page is processed)
Num_btree_online_inserts Accumulator The number of key inserts by index loader
Num_btree_online_inserts_same_page_hold Accumulator The number of successive inserts by index loader in same leaf page (loader optimization to avoid expensive index traversals)
Num_btree_online_inserts_retry Accumulator The number of restarted inserts because successive keys do not belong to same leaf or because there is not enough space
Num_btree_online_inserts_retry_nice Accumulator The number of restarted inserts to let others access leaf page

Query

Stat name Stat type Description
Num_query_selects Accumulator The number of SELECT query execution
Num_query_inserts Accumulator The number of INSERT query execution
Num_query_deletes Accumulator The number of DELETE query execution
Num_query_updates Accumulator The number of UPDATE query execution
Num_query_sscans Accumulator The number of sequential scans (full scan)
Num_query_iscans Accumulator The number of index scans
Num_query_lscans Accumulator The number of LIST scans
Num_query_setscans Accumulator The number of SET scans
Num_query_methscans Accumulator The number of METHOD scans
Num_query_nljoins Accumulator The number of nested loop joins
Num_query_mjoins Accumulator The number of parallel joins
Num_query_objfetches Accumulator The number of fetch objects
Num_query_holdable_cursors Snapshot The number of holdable cursors in the current server.

Sort

Stat name Stat type Description
Num_sort_io_pages Accumulator The number of pages fetched on the disk during sorting (more means less efficient)
Num_sort_data_pages Accumulator The number of pages found on the page buffer during sorting (more means less efficient)

Network

Stat name Stat type Description
Num_network_requests Accumulator The number of network requested

Heap

Stat name Stat type Description
Num_heap_stats_sync_bestspace Accumulator The updated number of the "best page" list. "Best pages" means that the data pages of which the free space is more than 30% in the environment of multiple INSERTs and DELETEs. Only some information of these pages are saved as the "best page" list. In the "best page" list, the information of a million pages is saved at once. This list is searched when INSERTing a record, and then this list is updated when there are no free space to store this record on the pages. If there are still no free space to store this record even this list is updated for several times, this recorded is stored into a new page.
Num_heap_home_inserts Accumulator The number of inserts in heap HOME type records
Num_heap_big_inserts Accumulator The number of inserts in heap BIG type records
Num_heap_assign_inserts Accumulator The number of inserts in heap ASSIGN type records
Num_heap_home_deletes Accumulator The number of deletes from heap HOME type records in non-MVCC mode
Num_heap_home_mvcc_deletes Accumulator The number of deletes from heap HOME type records in MVCC mode
Num_heap_home_to_rel_deletes Accumulator The number of deletes from heap HOME to RELOCATION type records in MVCC mode
Num_heap_home_to_big_deletes Accumulator The number of deletes from heap HOME to BIG type records in MVCC mode
Num_heap_rel_deletes Accumulator The number of deletes from heap RELOCATION type records in non-MVCC mode
Num_heap_rel_mvcc_deletes Accumulator The number of deletes from heap RELOCATION type records in MVCC mode
Num_heap_rel_to_home_deletes Accumulator The number of deletes from heap RELOCATION to HOME type records in MVCC mode
Num_heap_rel_to_big_deletes Accumulator The number of deletes from heap RELOCATION to BIG type records in MVCC mode
Num_heap_rel_to_rel_deletes Accumulator The number of deletes from heap RELOCATION to RELOCATION type records in MVCC mode
Num_heap_big_deletes Accumulator The number of deletes from heap BIG type records in non-MVCC mode
Num_heap_big_mvcc_deletes Accumulator The number of deletes from heap BIG type records in MVCC mode
Num_heap_home_updates Accumulator The number of updates in place of heap HOME type records in non-MVCC mode(*)
Num_heap_home_to_rel_updates Accumulator The number of updates of heap HOME to RELOCATION type records in non-MVCC mode(*)
Num_heap_home_to_big_updates Accumulator The number of updates of heap HOME to BIG type records in non-MVCC mode(*)
Num_heap_rel_updates Accumulator The number of updates of heap RELOCATION type records in non-MVCC mode(*)
Num_heap_rel_to_home_updates Accumulator The number of updates of heap RELOCATION to HOME type records in non-MVCC mode(*)
Num_heap_rel_to_rel_updates Accumulator The number of updates of heap RELOCATION to RELOCATION type records in non-MVCC mode(*)
Num_heap_rel_to_big_updates Accumulator The number of updates of heap RELOCATION to BIG type records in non-MVCC mode(*)
Num_heap_big_updates Accumulator The number of updates of heap BIG type records in non-MVCC mode(*)
Num_heap_home_vacuums Accumulator The number of vacuumed heap HOME type records
Num_heap_big_vacuums Accumulator The number of vacuumed heap BIG type records
Num_heap_rel_vacuums Accumulator The number of vacuumed heap RELOCATION type records
Num_heap_insid_vacuums Accumulator The number of vacuumed heap newly inserted records
Num_heap_remove_vacuums Accumulator The number of vacuum operations that remove heap records
..heap_insert_prepare Counter/timer The number and duration of preparing heap insert operation
..heap_insert_execute Counter/timer The number and duration of executing heap insert operation
..heap_insert_log Counter/timer The number and duration of logging heap insert operation
..heap_delete_prepare Counter/timer The number and duration of preparing heap delete operation
..heap_delete_execute Counter/timer The number and duration of executing heap delete operation
..heap_delete_log Counter/timer The number and duration of logging heap delete operation
..heap_update_prepare Counter/timer The number and duration of preparing heap update operation
..heap_update_execute Counter/timer The number and duration of executing heap update operation
..heap_update_log Counter/timer The number and duration of logging heap update operation
..heap_vacuum_prepare Counter/timer The number and duration of preparing heap vacuum operation
..heap_vacuum_execute Counter/timer The number and duration of executing heap vacuum operation
..heap_vacuum_log Counter/timer The number and duration of logging heap vacuum operation

Query plan cache

Stat name Stat type Description
Num_plan_cache_add Accumulator The number of entries added to query cache
Num_plan_cache_lookup Accumulator The number of lookups in query cache
Num_plan_cache_hit Accumulator The number of hits in query cache
Num_plan_cache_miss Accumulator The number of misses in query cache
Num_plan_cache_full Accumulator The number of times query cache becomes full
Num_plan_cache_delete Accumulator The number of entries deleted from query cache
Num_plan_cache_invalid_xasl_id Accumulator The number of failed attempts of retrieving entries by XASL ID.
Num_plan_cache_entries Snapshot The current number of entries in query cache

Vacuuming

Stat name Stat type Description
Num_vacuum_log_pages_vacuumed Accumulator The number of log data pages processed by vacuum workers.
Num_vacuum_log_pages_to_vacuum Accumulator The number of log data pages to be vacuumed by vacuum workers. (if value is much bigger than Num_vacuum_log_pages_vacuumed, it means vacuum system lags behind)
Num_vacuum_prefetch_requests_log_pages Accumulator The number of requests to prefetch buffer for log pages from vacuum
Num_vacuum_prefetch_hits_log_pages Accumulator The number of hits to prefetch buffer for log pages from vacuum
..vacuum_master Counter/timer The number and duration of vacuum master iterations.
..vacuum_job Counter/timer The number and duration of vacuum jobs
..vacuum_worker_process_log Counter/timer The number and duration of process log tasks
..vacuum_worker_execute Counter/timer The number and duration of execute vacuum tasks
Vacuum_data_page_buffer_hit_ratio Computed Hit ratio of vacuuming data page buffers
Vacuum_page_efficiency_ratio Computed Ratio between number of page unfix of vacuum with dirty flag and total number of page unfix of vacuum. Ideally, the vacuum process performsonly write operations since it cleans up all unused records. Even with an optimized vacuum process, 100% efficiency is not possible.
Vacuum_page_fetch_ratio Computed Ratio (percentage) of page unfix from vacuum module versus total.
Num_data_page_avoid_dealloc Snapshot The number of data pages that cannot be deallocated by vacuum

Heap bestspace

Stat name Stat type Description
..heap_stats_sync_bestspace Counter/timer The number and duration of bestspace synchronization operations
Num_heap_stats_bestspace_entries Accumulator The number of best pages which are saved on the "best page" list
Num_heap_stats_bestspace_maxed Accumulator The maximum number of pages which can be saved on the "best page" list
..bestspace_add Counter/timer The number and duration of adding entries to bestspace cache
..bestspace_del Counter/timer The number and duration of deleting from bestpace cache
..bestspace_find Counter/timer The number and duration of finding a bestpace cache entry
..heap_find_page_bestspace Counter/timer The number and duration of searching heap pages in bestspace cache
..heap_find_best_page Counter/timer The number and duration of finding or creating (if not found) a page to insert in heap.

Page buffer fix

Stat name Stat type Description
Data_page_fix_lock_acquire_time_msec Computed Time waiting for other transaction to load page from disk
Data_page_fix_hold_acquire_time_msec Computed Time to obtain page latch
Data_page_fix_acquire_time_msec Computed Total time to fix page
Data_page_allocate_time_ratio Computed Ratio of time necessary for page loading from disk versus the total time of fixing a page
Data_page_total_promote_success Computed Number of successful page latch promotions from shared to exclusive
Data_page_total_promote_fail Computed Number of failed page latch promotions
Data_page_total_promote_time_msec Computed Time for promoting page latches
Num_data_page_hash_anchor_waits Accumulator Number of waits on page buffer hash bucket
Time_data_page_hash_anchor_wait Accumulator Total wait time on page buffer hash bucket
Num_data_page_fix_ext Complex Number of data page fixes classified by: - module (system, worker, vacuum) - page type - page fetch/found mode - page latch mode - page latch condition
Time_data_page_lock_acquire_time Complex Time consumed waiting for other thread to load data page from disk: - module (system, worker, vacuum) - page type - page fetch/found mode - page latch mode - page latch condition
Time_data_page_hold_acquire_time Complex Time consumed waiting for data page latch: - module (system, worker, vacuum) - page type - page fetch/found mode - page latch mode
Time_data_page_fix_acquire_time Complex Time consumed fixing data page: - module (system, worker, vacuum) - page type - page fetch/found mode - page latch mode - page latch condition
Num_data_page_promote_ext Complex Number of data page promotions classified by: - module (system, worker, vacuum) - page type - promote latch condition - holder latch mode - successful/failed promotion
Num_data_page_promote_time_ext Complex Time consumed for data page promotions classified by: - module (system, worker, vacuum) - page type - promote latch condition - holder latch mode - successful/failed promotion

Page buffer unfix

Stat name Stat type Description
Num_unfix_void_to_private_top Accumulator Unfix newly loaded data page and add to top of private LRU list
Num_unfix_void_to_private_mid Accumulator Unfix newly loaded data page and add to middle of private LRU list
Num_unfix_void_to_shared_mid Accumulator Unfix newly loaded data page and add to middle of shared LRU list
Num_unfix_lru1_private_to_shared_mid Accumulator Unfix data page and move from zone 1 of private list to shared middle
Num_unfix_lru2_private_to_shared_mid Accumulator Unfix data page and move from zone 2 of private list to shared middle
Num_unfix_lru3_private_to_shared_mid Accumulator Unfix data page and move from zone 3 of private list to shared middle
Num_unfix_lru2_private_keep Accumulator Unfix data page and keep it in zone 2 of private list
Num_unfix_lru2_shared_keep Accumulator Unfix data page and keep it in zone 2 of shared list
Num_unfix_lru2_private_to_top Accumulator Unfix data page and boost it from zone 2 of private list to its top
Num_unfix_lru2_shared_to_top Accumulator Unfix data page and boost it from zone 2 of shared list to its top
Num_unfix_lru3_private_to_top Accumulator Unfix data page and boost it from zone 3 of private list to its top
Num_unfix_lru3_shared_to_top Accumulator Unfix data page and boost it from zone 3 of shared list to its top
Num_unfix_lru1_private_keep Accumulator Unfix data page and keep it in zone 1 of private list
Num_unfix_lru2_shared_keep Accumulator Unfix data page and keep it in zone 2 of shared list
Num_unfix_void_to_private_mid_vacuum Accumulator Unfix newly loaded data page and add to middle of private LRU list (vacuum thread)
Num_unfix_lru1_any_keep_vacuum Accumulator Unfix data page and keep it in zone 1 of private/shared list (vacuum thread)
Num_unfix_lru2_any_keep_vacuum Accumulator Unfix data page and keep it in zone 2 of private/shared list (vacuum thread)
Num_unfix_lru3_any_keep_vacuum Accumulator Unfix data page and keep it in zone 3 of private/shared list (vacuum thread)
Num_unfix_void_aout_found Accumulator Newly loaded data page was found in AOUT list
Num_unfix_void_aout_not_found Accumulator Newly loaded data page was not found in AOUT list
Num_unfix_void_aout_found_vacuum Accumulator Newly loaded data page was found in AOUT list (vacuum thread)
Num_unfix_void_aout_not_found_vacuum Accumulator Newly loaded data page was not found in AOUT list (vacuum thread)
Num_data_page_unfix_ext Complex Number of data page unfixes classified by: - module (system, worker, vacuum) - page type - dirty or not - dirtied by holder or not - holder latch mode

Page buffer I/O

Stat name Stat type Description
Data_page_buffer_hit_ratio Computed Hit ratio of data page buffers (Num_data_page_fetches - Num_data_page_ioreads)*100 / Num_data_page_fetches
Num_adaptive_flush_pages Accumulator The number of data pages requested from adaptive flush controller.
Num_adaptive_flush_log_pages Accumulator The number of log data pages requested from adaptive flush controller
Num_adaptive_flush_max_pages Accumulator The total number of page tokens assigned by adaptive flush controller
..compensate_flush Counter/timer The number and duration of flush compensations force by adaptive flush controller
..assign_direct_bcb Counter/timer The number and duration of assigning bcb's directly to waiters
..wake_flush_waiter Counter/timer The number and duration of waking up a thread waiting for bcb
..flush_collect Counter/timer The number and duration of flush thread collecting BCB sets
..flush_flush Counter/timer The number and duration of flush thread flushing BCB sets
..flush_sleep Counter/timer The number and duration of flush thread pauses
..flush_collect_per_page Counter/timer The number and duration of flush thread collecting one BCB
..flush_flush_per_page Counter/timer The number and duration of flush thread flushing one BCB
Num_data_page_writes Accumulator The total number of data pages flushed to disk
Num_data_page_dirty_to_post_flush Accumulator Number of flushed pages sent to post-flush thread for processing
Num_data_page_skipped_flush Accumulator The total number of BCB's that flush thread skipped
Num_data_page_skipped_flush_need_wal Accumulator The number of BCB's that flush thread skipped because it required log data pages be flushed first
Num_data_page_skipped\ _flush_already_flushed Accumulator The number of BCB's that flush thread skipped because they have been flushed already
Num_data_page_skipped_flush_fixed_or_hot Accumulator The number of BCB's that flush thread skipped because they are fixed or have been fixed since collected.

Page buffer victimization

Stat name Stat type Description
..alloc_bcb Counter/timer The number and duration of BCB allocation to store new data page. When a database is just started, the page buffer has available BCB's ready to be picked. However, once page buffer becomes full all BCB's are in use, one must be victimized. The time tracked here includes BCB victimization and loading from disk.
..alloc_bcb_search_victim Counter/timer The number and duration of searches through all LRU lists for victims
..alloc_bcb_cond_wait_high_prio Counter/timer The number and duration of direct victim waits in high-priority queue
..alloc_bcb_cond_wait_low_prio Counter/timer The number and duration of direct victim waits in low-priority queue
Num_alloc_bcb_prioritize_vacuum Accumulator The number of vacuum direct victim waits in high-priority queue
Num_alloc_bcb_wait_threads_high_priority Snapshot The current number of direct victim waiters in high-priority queue
Num_alloc_bcb_wait_threads_low_priority Snapshot The current number of direct victim waiters in low-priority queue
Num_flushed_bcbs_wait_for_direct_victim Snapshot The current number of BCB's waiting for post-flush thread to process them and assign directly.
Num_victim_use_invalid_bcb Accumulator The number of BCB's allocated from invalid list
..alloc_bcb_get_victim_search_own_private_list Counter/timer The number and duration of getting a victim from own private list
..alloc_bcb_get_victim_search_others_private_list Counter/timer The number and duration of getting a victim from other private lists
..alloc_bcb_get_victim_searchshared_list Counter/timer The number and duration of getting a victim from a shared list
Num_data_page_avoid_victim Accumulator The number of BCB's that cannot be victimized because they are in process of being flushed to disk
Num_victim_assign_direct_vacuum_void Accumulator The number of direct victims assigned from void zone by vacuum worker
Num_victim_assign_direct_vacuum_lru Accumulator The number of direct victims assigned from LRU zone 3 by vacuum worker
Num_victim_assign_direct_flush Accumulator The number of direct victims assigned by flush thread
Num_victim_assign_direct_panic Accumulator The number of direct victims assigned by panicked LRU searches. If there are a lot of waiters for victims, threads that found other victims while searching LRU list, will also try to assign more directly. Page buffer maintenance thread assignments are also counted here
Num_victim_assign_direct_adjust_lru Accumulator The number of direct victims assigned when BCB falls to LRU zone 3
Num_victim_assign_direct_adjust_lru_to_vacuum Accumulator The number of BCB's falling to LRU zone 3 not assigned as direct victims because a vacuum thread is expected to access it
Num_victim_assign_direct_search_for_flush Accumulator The number of direct victims assigned by flush thread while collecting BCB sets for flush
Num_victim_shared_lru_success Accumulator The number of successful victim searches in shared LRU lists
Num_victim_own_private_lru_success Accumulator The number of successful victim searches in own private LRU lists
Num_victim_other_private_lru_success Accumulator The number of successful victim searches in other private LRU lists
Num_victim_shared_lru_fail Accumulator The number of failed victim searches in shared LRU lists
Num_victim_own_private_lru_fail Accumulator The number of failed victim searches in own private LRU lists
Num_victim_other_private_lru_fail Accumulator The number of failed victim searches in other private LRU lists
Num_victim_all_lru_fail Accumulator The number of unlucky streaks to find victims in the sequence: 1. Own private LRU list (if over quota) 2. Other private LRU list (if own private is over quota) 3. Shared LRU list (this is simplified explanation, see pgbuf_get_victim function)
Num_victim_get_from_lru Accumulator The total number of victim searches in any LRU list
Num_victim_get_from_lru_was_empty Accumulator The number of victim searches in any LRU list that stop immediately because candidate count is zero
Num_victim_get_from_lru_fail Accumulator The number of failed victim searches in any LRU list although the candidate count was not zero
Num_victim_get_from_lru_bad_hint Accumulator The number of failed victim searches in any LRU list because victim was wrong
Num_lfcq_prv_get_total_calls Accumulator The number of victim searches in non-zero candidate private LRUs queue
Num_lfcq_prv_get_empty Accumulator The number of times non-zero candidate private LRUs queue was empty
Num_lfcq_prv_get_big Accumulator The number of victim searches in only very big non-zero candidate private LRUs queue (in this context, very big means way over quota)
Num_lfcq_shr_get_total_calls Accumulator The number of victim searches in non-zero candidate shared LRUs queue
Num_lfcq_shr_get_empty Accumulator The number of times non-zero candidate shared LRUs queue was empty
Num_lfcq_big_private_lists Snapshot The current number of very big non-zero candidate private LRU lists
Num_lfcq_private_lists Snapshot The current number of non-zero candidate private LRU lists
Num_lfcq_shared_lists Snapshot The current number of non-zero candidate shared LRU lists

Double write buffer

Stat name Stat type Description
..DWB_flush_block Counter/timer The number of blocks flushed and total writing duration
..DWB_file_sync_helper Counter/timer The number and duration of files synchronized by DWB helper
..DWB_flush_block_cond_wait Counter/timer The number and duration of DWB thread waits
..DWB_flush_block_sort Counter/timer The number and duration of sorting pages for flush
..DWB_decache_pages_after_write Counter/timer The number and duration of removing pages from DWB cache after flush
..DWB_wait_flush_block Counter/timer The number and duration of waiting for block to be flush to add a page
..DWB_wait_file_sync_helper Counter/timer The number and duration of waiting for DWB helper to sync file
..DWB_flush_force Counter/timer The number and duration of forced full DWB flushes
Num_dwb_flushed_block_volumes Complex A histogram of number of files synchronized by each block flush (last value is for ten or more files)

MVCC snapshot

Stat name Stat type Description
Time_get_snapshot_acquire_time: Accumulator Total time consumed by all transactions to get a snapshot
Count_get_snapshot_retry: Accumulator The number of retries to acquire MVCC snapshot
Time_tran_complete_time: Accumulator Time spent to invalidate snapshot and MVCCID on commit/rollback
Time_get_oldest_mvcc_acquire_time: Accumulator Time spend to acquire "global oldest MVCC ID"
Count_get_oldest_mvcc_retry: Accumulator The number of retries to acquire "global oldest MVCC ID"
Num_mvcc_snapshot_ext Complex Number of data page fixes classified by: - snapshot type - insert/delete MVCCID's status - visible/invisible

Thread workers

Statistics collected by thread worker pools:

Stat name Stat type Description
..start_thread Counter/timer The number and duration of starting new threads
..create_context Counter/timer The number and duration of creating thread context
..execute_task Counter/timer The number and duration of executed tasks
..retire_task Counter/timer The number and duration of retiring task objects
..found_task_in_queue Counter/timer The number of tasks found in queue and the duration of claiming from queue after finishing previous task
..wakeup_with_task Counter/timer The number of tasks assigned to threads on standby and the duration to wakeup thread
..recycle_context Counter/timer The number and duration of thread context recyclings between task executions
..retire_context Counter/timer The number and duration of retired thread contexts

Statistics are collected from two worker pools:

  • Thread_stats_counters_timers: statistics for workers executing client requests.
  • Thread_loaddb_stats_counters_timers: statistics for workers loading data into database (using loaddb command). At least one load session must be active to see these statistics.

Thread daemons

Statistics collected by background daemon threads:

Stat name Stat type Description
..daemon_loop_count Accumulator The number of loops executed by daemon thread
..daemon_execute_time Accumulator The total duration spent by daemon thread on execution
..daemon_pause_time Accumulator The total duration spent by daemon thread between executions
..looper_sleep_count Accumulator The number of times thread looper was put to sleep
..looper_sleep_time Accumulator The total duration thread looper spent on sleep
..looper_reset_count Accumulator The number of times an incremental looper is reset by wakeup
..waiter_wakeup_count Accumulator The number of wakeup requests on daemon thread
..waiter_lock_wakeup_count Accumulator The number of wakeup requests on daemon thread that required lock
..waiter_sleep_count Accumulator The number of times daemon thread went to sleep
..waiter_timeout_count Accumulator The number of daemon thread waits ended with timeout
..waiter_no_sleep_count Accumulator The number of times daemon thread spins with no wait
..waiter_awake_count Accumulator The number of times daemon thread is awaken by other thread request
..waiter_wakeup_delay_time Accumulator The total duration of awaking daemon thread

Statistics are collected for next daemon threads:

Daemon name Description
Page_flush_daemon_thread Background thread that flushes data pages to disk
Page_post_flush_daemon_thread Background thread that may reclaim memory space occupied by flushes data pages
Page_flush_control_daemon_thread Background thread that controls data flush rate
Page_maintenance_daemon_thread Background thread that recalculates quotas for private LRU lists
Deadlock_detect_daemon_thread Background thread that looks for deadlocks and chooses victims to unblock the system
Log_flush_daemon_thread Background thread that flushes log data to disk

-o, --output-file=FILE

-o options is used to store statistics information of server processing for the database to a specified file.

coradb statdump -o statdump.log testdb

-c, --cumulative

You can display the accumulated operation statistics information of the target database server by using the -c option.

Num_data_page_fix_ext, Num_data_page_unfix_ext, Time_data_page_hold_acquire_time, Time_data_page_fix_acquire_time information can be output only when this option is specified; however, these information will be omitted because they are for CoraDB Engine developers.

By combining this with the -i option, you can check the operation statistics information at a specified interval.

coradb statdump -i 5 -c testdb

-s, --substr=STRING

You can display statistics about items, the names of which include the specified string by using -s option.

The following example shows how to display statistics about items, the names of which include "data".

coradb statdump -s data testdb
*** SERVER EXECUTION STATISTICS ***
Num_data_page_fetches = 0
Num_data_page_dirties = 0
Num_data_page_ioreads = 0
Num_data_page_iowrites = 0
Num_data_page_flushed = 0
Num_data_page_private_quota = 327
Num_data_page_private_count = 898
Num_data_page_fixed = 1
Num_data_page_dirty = 3
Num_data_page_lru1 = 857
Num_data_page_lru2 = 873
Num_data_page_lru3 = 898
Num_data_page_victim_candidate = 898
Num_sort_data_pages = 0
Vacuum_data_page_buffer_hit_ratio = 0.00
Num_data_page_hash_anchor_waits = 0
Time_data_page_hash_anchor_wait = 0
Num_data_page_writes = 0
Num_data_page_dirty_to_post_flush = 0
Num_data_page_skipped_flush = 0
Num_data_page_skipped_flush_need_wal = 0
Num_data_page_skipped_flush_already_flushed = 0
Num_data_page_skipped_flush_fixed_or_hot = 0
Num_data_page_avoid_dealloc = 0
Num_data_page_avoid_victim = 0
Num_data_page_fix_ext:
Num_data_page_promote_ext:
Num_data_page_promote_time_ext:
Num_data_page_unfix_ext:
Time_data_page_lock_acquire_time:
Time_data_page_hold_acquire_time:
Time_data_page_fix_acquire_time: