ham_freelist_slotsize_stats_t Struct Reference

#include <hamsterdb_stats.h>

Data Fields

ham_u32_t first_start
ham_u32_t free_fill
ham_u32_t epic_fail_midrange
ham_u32_t epic_win_midrange
ham_u32_t scan_count
ham_u32_t ok_scan_count
ham_u32_t scan_cost
ham_u32_t ok_scan_cost

Detailed Description

We keep track of VERY first free slot index + free slot index pointing at last (~ supposed largest) free range + 'utilization' of the range between FIRST and LAST as a ratio of number of free slots in there vs. total number of slots in that range (giving us a 'fill' ratio) + a fragmentation indication, determined by counting the number of freelist slot searches that FAILed vs. SUCCEEDed within the first..last range, when the search begun at the 'first' position (a FAIL here meaning the freelist scan did not deliver a free slot WITHIN the first..last range, i.e. it has scanned this entire range without finding anything suitably large).

Note that the free_fill in here is AN ESTIMATE.

Definition at line 89 of file hamsterdb_stats.h.


Field Documentation

Definition at line 95 of file hamsterdb_stats.h.

Definition at line 96 of file hamsterdb_stats.h.

Definition at line 91 of file hamsterdb_stats.h.

Definition at line 94 of file hamsterdb_stats.h.

Definition at line 105 of file hamsterdb_stats.h.

Definition at line 101 of file hamsterdb_stats.h.

summed cost ('duration') of all scans per size range

Definition at line 104 of file hamsterdb_stats.h.

number of scans per size range

Definition at line 99 of file hamsterdb_stats.h.


The documentation for this struct was generated from the following file:
Generated by  doxygen 1.6.3