timings
Provides timing statistics.
Description
The timing stats provide histogram data from high-resolution timers over various operations within the system. This only measures the time spent in the front-end thread for each operation, meaning that the timings may not be representative if items have to be fetched from disk as part of the operation.
To retrieve more accurate timing statistics, use mctimings instead of timings.
Example
The following example, uses the 10.5.2.117 host and the default port, 11210:
cbstats 10.5.2.117:11210 timings
Response
The following is sample output from cbstats timings:
disk_commit (1024 total)
0 - 1s : (100.00%) 1024 ###################################################
Avg : ( 1s)
get_stats_cmd (30663276 total)
0 - 1us : ( 0.05%) 14827
1us - 2us : ( 6.56%) 1995778 ##
2us - 4us : ( 41.79%) 10804626 ##############
4us - 8us : ( 45.20%) 1044043 #
8us - 16us : ( 45.49%) 89929
16us - 32us : ( 45.90%) 124472
32us - 64us : ( 46.38%) 148935
64us - 128us : ( 56.17%) 2999690 ###
128us - 256us : ( 68.57%) 3804009 ####
256us - 512us : ( 69.91%) 411281
512us - 1ms : ( 78.77%) 2717402 ###
1ms - 2ms : ( 96.36%) 5391526 #######
2ms - 4ms : ( 99.05%) 826345 #
4ms - 8ms : ( 99.96%) 278727
8ms - 16ms : (100.00%) 11443
16ms - 32ms : (100.00%) 217
32ms - 65ms : (100.00%) 19
65ms - 131ms : (100.00%) 7
Avg : ( 347us)
disk_vbstate_snapshot (93280 total)
32us - 64us : ( 15.34%) 14308 ######
64us - 128us : ( 74.74%) 55413 #########################
128us - 256us : ( 91.39%) 15532 #######
256us - 512us : ( 95.69%) 4007 #
512us - 1ms : ( 99.49%) 3546 #
1ms - 2ms : ( 99.95%) 423
2ms - 4ms : ( 99.99%) 43
4ms - 8ms : (100.00%) 4
2s - 4s : (100.00%) 4
Avg : ( 190us)
notify_io (4 total)
4us - 8us : ( 25.00%) 1 ############
16us - 32us : ( 75.00%) 2 ########################
32us - 64us : (100.00%) 1 ############
Avg : ( 17us)
The following are the possible return values, which depend on what occurred on the data bucket:
| Values | Description |
|---|---|
|
Background fetches waiting for disk |
|
Background fetches waiting in the dispatcher queue |
|
Age of data written to disk |
|
Time waiting for a commit after a batch of updates |
|
Wait for disk to delete an item |
|
Wait for disk to store a new item |
|
Time spent persisting vbucket state changes |
|
Wait time for disk to modify an existing item |
|
Servicing get requests |
|
Servicing get_stats requests |
|
Servicing vbucket set state commands |
|
Item allocation size counters (in bytes) |
|
Time for waking blocked connections |
|
Time since most recently persisted item was initially queued for storage. |
|
Time spent servicing tap mutations |