Spdk/test/lib
Jim Harris bc00666271 util: enable dynamic spdk_histogram_data sizing
Currently, each histogram range is hardcoded to
128 buckets (1ULL << 7), resulting in 58 ranges
(64 - 7 + 1) and a total size of 58 * 128 *
sizeof(uint64_t) = 59392 bytes.

To allow for more usage models in cases where this
size is prohibitive, enable the following changes:

1) specify number of buckets per range (in number of bits)
2) specify max datapoint value (in number of bits)

The latter can be useful for cases where datapoints
are never close to requiring all 64 bits - and allows
reducing the number of ranges.  Any data points that
exceed the max will be tallied in the last bucket
in the last range.

Testing shows no performance disadvantage using the
dynamic approach.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I5979bcdff6209faaa9dee293918ef2a78679bcd4

Reviewed-on: https://review.gerrithub.io/392707
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-12-29 14:20:48 -05:00
..
bdev bdevperf: change the type of io_time_in_usec into uint64_t 2017-12-21 12:20:15 -05:00
blobfs event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
env astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
event event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
json test: move JSON library unit tests to test/unit 2017-06-20 13:46:07 -04:00
nvme util: enable dynamic spdk_histogram_data sizing 2017-12-29 14:20:48 -05:00
util util: enable dynamic spdk_histogram_data sizing 2017-12-29 14:20:48 -05:00
Makefile test: add util/histogram_perf test application 2017-12-29 14:20:48 -05:00
test_env.c nvme: normalize PCI addresses before comparing 2017-11-16 18:17:09 -05:00
ut_multithread.c event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00