github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/testdata/metrics (about) 1 batch 2 set a 1 3 ---- 4 5 iter-new a 6 ---- 7 8 flush 9 ---- 10 0.0: 11 000005:[a#1,SET-a#1,SET] 12 13 # iter b references both a memtable and sstable 5. 14 15 iter-new b 16 ---- 17 18 metrics 19 ---- 20 __level_____count____size___score______in__ingest(sz_cnt)____move(sz_cnt)___write(sz_cnt)____read___r-amp___w-amp 21 WAL 1 28 B - 17 B - - - - 56 B - - - 3.3 22 0 1 771 B 0.25 28 B 0 B 0 0 B 0 771 B 1 0 B 1 27.5 23 1 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 24 2 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 25 3 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 26 4 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 27 5 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 28 6 0 0 B - 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 29 total 1 771 B - 56 B 0 B 0 0 B 0 827 B 1 0 B 1 14.8 30 flush 1 31 compact 0 0 B 0 B 0 (size == estimated-debt, score = in-progress-bytes, in = num-in-progress) 32 ctype 0 0 0 0 0 0 0 (default, delete, elision, move, read, rewrite, multi-level) 33 memtbl 1 256 K 34 zmemtbl 1 256 K 35 ztbl 0 0 B 36 bcache 4 698 B 0.0% (score == hit-rate) 37 tcache 1 680 B 0.0% (score == hit-rate) 38 snaps 0 - 0 (score == earliest seq num) 39 titers 1 40 filter - - 0.0% (score == utility) 41 42 disk-usage 43 ---- 44 2.0 K 45 46 batch 47 set b 2 48 ---- 49 50 flush 51 ---- 52 0.0: 53 000005:[a#1,SET-a#1,SET] 54 000007:[b#2,SET-b#2,SET] 55 56 # iter c references both a memtable and sstables 5 and 7. 57 58 iter-new c 59 ---- 60 61 compact a-z 62 ---- 63 6: 64 000008:[a#0,SET-b#0,SET] 65 66 metrics 67 ---- 68 __level_____count____size___score______in__ingest(sz_cnt)____move(sz_cnt)___write(sz_cnt)____read___r-amp___w-amp 69 WAL 1 28 B - 34 B - - - - 84 B - - - 2.5 70 0 0 0 B 0.00 56 B 0 B 0 0 B 0 1.5 K 2 0 B 0 27.5 71 1 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 72 2 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 73 3 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 74 4 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 75 5 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 76 6 1 778 B - 1.5 K 0 B 0 0 B 0 778 B 1 1.5 K 1 0.5 77 total 1 778 B - 84 B 0 B 0 0 B 0 2.3 K 3 1.5 K 1 28.6 78 flush 2 79 compact 1 0 B 0 B 0 (size == estimated-debt, score = in-progress-bytes, in = num-in-progress) 80 ctype 1 0 0 0 0 0 0 (default, delete, elision, move, read, rewrite, multi-level) 81 memtbl 1 256 K 82 zmemtbl 2 512 K 83 ztbl 2 1.5 K 84 bcache 8 1.4 K 42.9% (score == hit-rate) 85 tcache 2 1.3 K 66.7% (score == hit-rate) 86 snaps 0 - 0 (score == earliest seq num) 87 titers 2 88 filter - - 0.0% (score == utility) 89 90 disk-usage 91 ---- 92 3.6 K 93 94 # Closing iter a will release one of the zombie memtables. 95 96 iter-close a 97 ---- 98 99 metrics 100 ---- 101 __level_____count____size___score______in__ingest(sz_cnt)____move(sz_cnt)___write(sz_cnt)____read___r-amp___w-amp 102 WAL 1 28 B - 34 B - - - - 84 B - - - 2.5 103 0 0 0 B 0.00 56 B 0 B 0 0 B 0 1.5 K 2 0 B 0 27.5 104 1 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 105 2 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 106 3 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 107 4 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 108 5 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 109 6 1 778 B - 1.5 K 0 B 0 0 B 0 778 B 1 1.5 K 1 0.5 110 total 1 778 B - 84 B 0 B 0 0 B 0 2.3 K 3 1.5 K 1 28.6 111 flush 2 112 compact 1 0 B 0 B 0 (size == estimated-debt, score = in-progress-bytes, in = num-in-progress) 113 ctype 1 0 0 0 0 0 0 (default, delete, elision, move, read, rewrite, multi-level) 114 memtbl 1 256 K 115 zmemtbl 1 256 K 116 ztbl 2 1.5 K 117 bcache 8 1.4 K 42.9% (score == hit-rate) 118 tcache 2 1.3 K 66.7% (score == hit-rate) 119 snaps 0 - 0 (score == earliest seq num) 120 titers 2 121 filter - - 0.0% (score == utility) 122 123 # Closing iter c will release one of the zombie sstables. The other 124 # zombie sstable is still referenced by iter b. 125 126 iter-close c 127 ---- 128 129 metrics 130 ---- 131 __level_____count____size___score______in__ingest(sz_cnt)____move(sz_cnt)___write(sz_cnt)____read___r-amp___w-amp 132 WAL 1 28 B - 34 B - - - - 84 B - - - 2.5 133 0 0 0 B 0.00 56 B 0 B 0 0 B 0 1.5 K 2 0 B 0 27.5 134 1 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 135 2 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 136 3 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 137 4 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 138 5 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 139 6 1 778 B - 1.5 K 0 B 0 0 B 0 778 B 1 1.5 K 1 0.5 140 total 1 778 B - 84 B 0 B 0 0 B 0 2.3 K 3 1.5 K 1 28.6 141 flush 2 142 compact 1 0 B 0 B 0 (size == estimated-debt, score = in-progress-bytes, in = num-in-progress) 143 ctype 1 0 0 0 0 0 0 (default, delete, elision, move, read, rewrite, multi-level) 144 memtbl 1 256 K 145 zmemtbl 1 256 K 146 ztbl 1 771 B 147 bcache 4 698 B 42.9% (score == hit-rate) 148 tcache 1 680 B 66.7% (score == hit-rate) 149 snaps 0 - 0 (score == earliest seq num) 150 titers 1 151 filter - - 0.0% (score == utility) 152 153 disk-usage 154 ---- 155 2.8 K 156 157 # Closing iter b will release the last zombie sstable and the last zombie memtable. 158 159 iter-close b 160 ---- 161 162 metrics 163 ---- 164 __level_____count____size___score______in__ingest(sz_cnt)____move(sz_cnt)___write(sz_cnt)____read___r-amp___w-amp 165 WAL 1 28 B - 34 B - - - - 84 B - - - 2.5 166 0 0 0 B 0.00 56 B 0 B 0 0 B 0 1.5 K 2 0 B 0 27.5 167 1 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 168 2 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 169 3 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 170 4 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 171 5 0 0 B 0.00 0 B 0 B 0 0 B 0 0 B 0 0 B 0 0.0 172 6 1 778 B - 1.5 K 0 B 0 0 B 0 778 B 1 1.5 K 1 0.5 173 total 1 778 B - 84 B 0 B 0 0 B 0 2.3 K 3 1.5 K 1 28.6 174 flush 2 175 compact 1 0 B 0 B 0 (size == estimated-debt, score = in-progress-bytes, in = num-in-progress) 176 ctype 1 0 0 0 0 0 0 (default, delete, elision, move, read, rewrite, multi-level) 177 memtbl 1 256 K 178 zmemtbl 0 0 B 179 ztbl 0 0 B 180 bcache 0 0 B 42.9% (score == hit-rate) 181 tcache 0 0 B 66.7% (score == hit-rate) 182 snaps 0 - 0 (score == earliest seq num) 183 titers 0 184 filter - - 0.0% (score == utility) 185 186 disk-usage 187 ---- 188 2.1 K