UIO (User I/O) refers to I/O requests sent from the user side. zbs_client converts these user I/O requests into internal ABS I/O requests and sends them to the lease owner of the corresponding extent. Users can view UIO statistics via the command line.
Procedure
Run the following command to view UIO statistics on a node:
zbs-perf-tools chunk uio summary [--chunk-addr <ip>]
| Parameter | Description |
|---|---|
--chunk-addr <ip> | The zbs-chunkd RPC server address. Default: 127.0.0.1:10200, the chunk on the node where the command is run. |
Output example
$zbs-perf-tools chunk uio summary
---------------------------------------------------
host 127.0.0.1:10200
instance_id 1
total_iops 4852.00
total_bw 403.66 MB/s(384.96 MiB/s)
total_latency 230.05 US
read_iops 885.00
read_bw 146.32 MB/s(139.54 MiB/s)
read_latency 172.73 US
write_iops 3967.00
write_bw 257.35 MB/s(245.42 MiB/s)
write_latency 242.83 US
local_io_ratio 1.00 (4852.00 / 4852.00)
local_io_latency 230.05 US
local_io_bw 403.66 MB/s(384.96 MiB/s)
local_read_ratio 1.00 (885.00 / 885.00)
local_read_latency 172.73 US
local_read_bw 146.32 MB/s(139.54 MiB/s)
local_write_ratio 1.00 (3967.00 / 3967.00)
local_write_latency 242.83 US
local_write_bw 257.35 MB/s(245.42 MiB/s)
failed_io_ratio 0.00
retry_io_ratio 0.00
retry_queue_size 0
active_extents 7630
active_volumes 21
waiting_queue_size 0
---------------------------------------------------Output note
| Parameter | Description |
|---|---|
total_iops | The total IOPS of the zbs_client module in the last 1 second. |
total_bw | The total bandwidth of the zbs_client module in the last 1 second. |
total_latency | The average total latency of the zbs_client module in the last 1 second. |
read_iops | The read IOPS of the zbs_client module in the last 1 second. |
read_bw | The read bandwidth of the zbs_client module in the last 1 second. |
read_latency | The average read latency of the zbs_client module in the last 1 second. |
write_iops | The write IOPS of the zbs_client module in the last 1 second. |
write_bw | The write bandwidth of the zbs_client module in the last 1 second. |
write_latency | The average write latency of the zbs_client module in the last 1 second. |
local_io_ratio | The ratio of I/O requests sent to the local access in the last 1 second. |
local_io_latency | The average latency of I/O requests sent to the local access in the last 1 second. |
local_io_bw | The bandwidth of I/O requests sent to the local access in the last 1 second. |
local_read_ratio | The ratio of read I/O requests sent to the local access in the last 1 second. |
local_read_latency | The average latency of read I/O requests sent to the local access in the last 1 second. |
local_read_bw | The bandwidth of read I/O requests sent to the local access in the last 1 second. |
local_write_ratio | The ratio of write I/O requests sent to the local access in the last 1 second. |
local_write_latency | The average latency of write I/O requests sent to the local access in the last 1 second. |
local_write_bw | The bandwidth of write I/O requests sent to the local access in the last 1 second. |
failed_io_ratio | The failed I/O ratio in the last 1 second. |
retry_io_ratio | The ratio of retried I/O requests in the last 1 second. |
retry_queue_size | The current retry queue size. |
active_extents | The current number of active extents. |
active_volumes | The current number of active volumes. |
waiting_queue_size | The current waiting queue size. |
Information:
In a multi–physical disk pool environment, performance metrics are displayed for each chunk individually. To view the overall performance data, run
zbs-perf-tools node uio summary.
Procedure
Run the following command to view the overall performance information about the access module:
zbs-perf-tools chunk access summary [--chunk-addr <ip>]
| Parameter | Description |
|---|---|
--chunk-addr <ip> | The zbs-chunkd RPC server address. Default: 127.0.0.1:10200, the chunk on the node where the command is run. |
Output example
$ sudo zbs-perf-tools chunk access summary
----------------------------------------------------
host 127.0.0.1:10200
instance_id 1
read_iops 0.00
read_latency 0.00 NS
read_bw 0.00 B/s(0.00 B/s)
write_iops 0.00
write_latency 0.00 NS
write_bw 0.00 B/s(0.00 B/s)
total_iops 0.00
total_latency 0.00 NS
total_bw 0.00 B/s(0.00 B/s)
io_hard_rate 0.00
io_retry_rate 0.00
io_timeout_rate 0.00
from_local_read_iops 0.00
from_local_read_latency 0.00 NS
from_local_read_bw 0.00 B/s(0.00 B/s)
from_local_write_iops 0.00
from_local_write_latency 0.00 NS
from_local_write_bw 0.00 B/s(0.00 B/s)
from_local_total_iops 0.00
from_local_total_latency 0.00 NS
from_local_total_bw 0.00 B/s(0.00 B/s)
from_local_throttle_latency 0.00 NS
from_remote_read_iops 0.00
from_remote_read_latency 0.00 NS
from_remote_read_bw 0.00 B/s(0.00 B/s)
from_remote_write_iops 0.00
from_remote_write_latency 0.00 NS
from_remote_write_bw 0.00 B/s(0.00 B/s)
from_remote_total_iops 0.00
from_remote_total_latency 0.00 NS
from_remote_total_bw 0.00 B/s(0.00 B/s)
from_remote_throttle_latency 0.00 NS
----------------------------------------------------Output note
| Parameter | Description |
|---|---|
read_iops | The read IOPS of the access module in the last 1 second. |
read_latency | The average read latency of the access module in the last 1 second. |
read_bw | The read bandwidth of the access module in the last 1 second. |
write_iops | The write IOPS of the access module in the last 1 second. |
write_latency | The average write latency of the access module in the last 1 second. |
write_bw | The write bandwidth of the access module in the last 1 second. |
total_iops | The total IOPS of the access module in the last 1 second. |
total_latency | The average total latency of the access module in the last 1 second. |
total_bw | The total bandwidth of the access module in the last 1 second. |
io_hard_rate | The number of hard I/Os marked by the access module in the last 1 second. Hard I/Os usually occur when there are slow disks in the LSM. |
io_retry_rate | The number of read retries in the access module in the last 1 second. When a read replica fails, access attempts to read from the next replica. |
io_timeout_rate | The number of I/O timeouts sent to the local access in the last 1 second. |
from_local_read_iops | The read IOPS from local requests processed by access in the last 1 second. |
from_local_read_latency | The average read latency from local requests processed by access in the last 1 second. |
from_local_read_bw | The read bandwidth from local requests processed by access in the last 1 second. |
from_local_write_iops | The write IOPS from local requests processed by access in the last 1 second. |
from_local_write_latency | The average write latency from local requests processed by access in the last 1 second. |
from_local_write_bw | The write bandwidth from local requests processed by access in the last 1 second. |
from_local_total_iops | The total IOPS from local requests processed by access in the last 1 second. |
from_local_total_latency | The average total latency from local requests processed by access in the last 1 second. |
from_local_total_bw | The total bandwidth from local requests processed by access in the last 1 second. |
from_local_throttle_latency | The average latency of throttled I/Os from local requests processed by access in the last 1 second. |
from_remote_read_iops | The read IOPS from remote requests processed by access in the last 1 second. |
from_remote_read_latency | The average read latency from remote requests processed by access in the last 1 second. |
from_remote_read_bw | The read bandwidth from remote requests processed by access in the last 1 second. |
from_remote_write_iops | The write IOPS from remote requests processed by access in the last 1 second. |
from_remote_write_latency | The average write latency from remote requests processed by access in the last 1 second. |
from_remote_write_bw | The write bandwidth from remote requests processed by access in the last 1 second. |
from_remote_total_iops | The total IOPS from remote requests processed by access in the last 1 second. |
from_remote_total_latency | The average total latency from remote requests processed by access in the last 1 second. |
from_remote_total_bw | The total bandwidth from remote requests processed by access in the last 1 second. |
from_remote_throttle_latency | The average latency of throttled I/O from remote requests processed by access in the last 1 second. |
Information:
In a multi–physical disk pool environment, performance metrics are displayed for each chunk individually. To view the overall performance data, run
zbs-perf-tools node access summary.
Procedure
Run the following command to view the replica I/O flow and basic statistics of the current access module:
zbs-perf-tools chunk access replica_io [--chunk-addr <ip>] [-d]
| Parameter | Description |
|---|---|
--chunk-addr <ip> | The zbs-chunkd RPC server address. Default: 127.0.0.1:10200, the chunk on the node where the command is run. |
-d | An array-type parameter. The destination chunk ID, also called cid. If specified, displays only the data for the destination Chunk. |
Output example
$zbs-perf-tools chunk access replica_io -d 1 -d 2
DIRECTION READ IOPS READ LATENCY READ BW WRITE IOPS WRITE LATENCY WRITE BW TOTAL IOPS TOTAL LATENCY TOTAL BW
--------------------------------------------------------------------------------------------------------------------------------------------------------------
1 -> 3 0.00 0.00 NS 0.00 B/s(0.00 B/s) 129.00 324.91 US 1.13 MB/s(1.08 MiB/s) 129.00 324.91 US 1.13 MB/s(1.08 MiB/s)
1 -> 2 0.00 0.00 NS 0.00 B/s(0.00 B/s) 188.00 166.46 US 2.37 MB/s(2.26 MiB/s) 188.00 166.46 US 2.37 MB/s(2.26 MiB/s)
1 -> 1 0.00 0.00 NS 0.00 B/s(0.00 B/s) 209.00 141.29 US 2.49 MB/s(2.38 MiB/s) 209.00 141.29 US 2.49 MB/s(2.38 MiB/s)Output note
| Parameter | Description |
|---|---|
DIRECTION | The replica I/O flow direction. |
READ IOPS | The read IOPS in the last 1 second. |
READ LATENCY | The average read latency in the last 1 second. |
READ BW | The read bandwidth in the last 1 second. |
WRITE IOPS | The write IOPS in the last 1 second. |
WRITE LATENCY | The average write latency in the last 1 second. |
WRITE BW | The write bandwidth in the last 1 second. |
TOTAL IOPS | The total IOPS in the last 1 second. |
TOTAL LATENCY | The average total latency in the last 1 second. |
TOTAL BW | The total bandwidth in the last 1 second. |