Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.1.4, 7.0.5, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 7.1.3
-
Untriaged
-
0
-
Unknown
-
KV 2023-4
Description
During a refactor of the histogram rendering in cbstats, we appear to have broken the size_label function.
Any sizes in the megabyte range are incorrect.
This is because for this range of values, we incorrectly perform a division by 2 * 1024, instead of 1024 ^ 2, and assume this converts from bytes to megabytes.
In order to obtain correct labels for the affected version, we must undo the division for the labels in the megabyte range, and then divide by the correct value.
On affected versions, multiply the MiB value by (2 * 1024), then divide by (1024 * 1024).
item_alloc_sizes (68997 total)
|
0B - 303.00B : ( 0.0058%) 4
|
303.00B - 703.00B : ( 27.2099%) 18770 #########
|
703.00B - 703.00B : ( 27.2099%) 0
|
703.00B - 831.00B : ( 31.6579%) 3069 #
|
831.00B - 1.50KB : ( 40.0554%) 5794 ##
|
1.50KB - 24.00KB : ( 50.3660%) 7114 ###
|
24.00KB - 160.00KB : ( 55.1517%) 3302 #
|
160.00KB - 352.00KB : ( 60.0852%) 3404 #
|
352.00KB - 512.00KB : ( 65.6101%) 3812 #
|
512.00KB - 640.00KB : ( 70.6596%) 3484 #
|
640.00KB - 768.00KB : ( 75.6917%) 3472 #
|
768.00KB - 832.00KB : ( 78.1962%) 1728
|
832.00KB - 896.00KB : ( 80.6658%) 1704
|
896.00KB - 992.00KB : ( 83.4109%) 1894
|
992.00KB - 544.00MB : ( 85.1733%) 1216 (correct: 992.00KB - 1.0625MB)
|
544.00MB - 608.00MB : ( 87.5284%) 1625 (correct: 1.0625MB - 1.1875MB)
|
608.00MB - 672.00MB : ( 89.8633%) 1611 (correct: 1.1875MB - 1.3125MB)
|
672.00MB - 704.00MB : ( 91.0373%) 810 (...)
|
704.00MB - 736.00MB : ( 92.2605%) 844 (...)
|
736.00MB - 768.00MB : ( 93.4780%) 840 (...)
|
768.00MB - 800.00MB : ( 94.7273%) 862 (...)
|
800.00MB - 800.00MB : ( 94.7273%) 0 (...)
|
800.00MB - 832.00MB : ( 96.0143%) 888 (...)
|
832.00MB - 832.00MB : ( 96.0143%) 0 (...)
|
832.00MB - 864.00MB : ( 97.2897%) 880 (...)
|
864.00MB - 864.00MB : ( 97.2897%) 0 (...)
|
864.00MB - 896.00MB : ( 98.5710%) 884 (...)
|
896.00MB - 896.00MB : ( 98.5710%) 0 (...)
|
896.00MB - 928.00MB : ( 99.8145%) 858 (...)
|
928.00MB - 928.00MB : ( 99.8145%) 0 (...)
|
928.00MB - 960.00MB : (100.0000%) 128 (correct: 1.8125MB - 1.875MB)
|
Avg : (412.30KB)
|