Amazon EBS detailed performance statistics
Amazon EBS NVMe block devices vend real-time, high-resolution I/O performance statistics for Amazon EBS volumes attached to Nitro-based Amazon EC2 instances. These statistics are presented as aggregated counters that are retained for the duration of the volume's attachment to the instance. The statistics provide details about the cumulative number of operations, bytes sent and received, and time spent on read and write I/O operations. Additionally, the statistics include histograms for read and write I/O operations. They also report the total time your application has exceeded the EBS volume's or attached instance's provisioned IOPS or throughput limits.
You can collect these statistics at a granularity of up to 1 second intervals. If requests are made more frequently than 1 second intervals, the NVMe driver might queue the requests, along with other admin commands, to be processed at a later time.
Considerations
-
The statistics are supported for all Amazon EBS volume types.
-
The statistics are supported only for volumes attached to instances built on the AWS Nitro System.
-
The statistics are available for Multi-Attach enabled volumes. When viewing statistics for a Multi-Attach enabled volume, the statistics are specific to that instance attachment, and reflect only that instance's usage.
-
The statistics are available at no additional cost.
Statistics
The Amazon EBS NVMe block device vends the following statistics:
| Statistic name | Full name | Type | Description |
|---|---|---|---|
total_read_ops |
Total read operations | Counter | The total number of completed read operations. |
total_write_ops |
Total write operations | Counter | The total number of completed write operations. |
total_read_bytes |
Total read bytes | Counter | The total number of read bytes transferred. |
total_write_bytes |
Total write bytes | Counter | The total number of write bytes transferred. |
total_read_time |
Total read time | Counter | The total time spent, in microseconds, by all completed read operations. |
total_write_time |
Total write time | Counter | The total time spent, in microseconds, by all completed write operations. |
ebs_volume_performance_exceeded_iops |
Total time demand exceeded volume provisioned IOPS | Counter | The total time, in microseconds, that IOPS demand exceeded the volume's provisioned IOPS performance. |
ebs_volume_performance_exceeded_tp |
Total time demand exceeded volume provisioned throughput | Counter | The total time, in microseconds, that throughput demand exceeded the volume's provisioned throughput performance. |
ec2_instance_ebs_performance_exceeded_iops |
Total time demand exceeded EC2 instance's IOPS performance | Counter | The total time, in microseconds, that the EBS volume exceeded the attached Amazon EC2 instance's maximum IOPS performance. |
ec2_instance_ebs_performance_exceeded_tp |
Total time demand exceeded EC2 instance's throughput performance | Counter | The total time, in microseconds, that the EBS volume exceeded the attached Amazon EC2 instance's maximum throughput performance. |
volume_queue_length |
Volume queue length | Point in time | The number of read and write operations waiting to be completed. |
trim_ops |
Total TRIM operations | Counter | The total number of completed TRIM operations. This value resets when the volume is attached to an EC2 instance (including when you reattach it to the same or a different instance). Use this statistic to understand how your operating system is issuing TRIM commands. |
read_io_latency_histogram |
Read I/O histogram | Histogram * | The number of read operations completed within each latency bin, in microseconds. |
write_io_latency_histogram |
Write I/O histogram | Histogram * | The number of write operations completed within each latency bin, in microseconds. |
volume_attachment_health_check |
Volume attachment health check | Point in time | The health of the volume's attachment to the instance, reported for all Amazon EBS
volumes, where 0 indicates a healthy attachment. |
* Histogram statistics represent only I/O operations that have completed successfully. Stalled or
impaired I/O operations are not included, but will be evident in the volume_queue_length
statistics, which is presented as a point-in-time statistic.
The statistics that include write I/O operations do not include TRIM operations.
Multi-AZ volume status fields
The Amazon EBS NVMe block device also vends status fields for multi-AZ volumes. The device
provides these fields on NVMe log page 0xD1 (decimal 209), which is
separate from the performance-statistics log page described in the preceding section. The
fields report the data replication state and the failover readiness.
You must read these status fields from the NVMe controller device, for example
/dev/nvme1, and not from the namespace device, for example
/dev/nvme1n1. If you try to read the page from the namespace device, the read
fails with a No such device or address error.
The tools described in Accessing the statistics
use the stats subcommand on the namespace device to read performance statistics.
To read the multi-AZ status fields, use the health subcommand on the controller
device instead. For example, on Linux:
sudo ebsnvme health /dev/nvmeN
where /dev/nvme is the controller device for
the volume (for example, N/dev/nvme1, not /dev/nvme1n1).
The Amazon EBS NVMe block device vends the following status fields:
| Field | Description |
|---|---|
replication_data_state |
The state of data replication between the active and standby replicas of
a multi-AZ volume. The device reports this field as a numeric value, where
0 indicates in-sync, 1 indicates catching-up, and
2 indicates out-of-sync. |
failover_readiness |
Whether the volume is ready to fail over to its standby Availability Zone.
The device reports this field as a numeric value, where 0 indicates
ready and 1 indicates not-ready. |
The CatchupProgress and CatchupTotalBytes fields are not
vended by the NVMe device. These fields are available only from the DescribeVolumeStatus
API.
For more information about monitoring multi-AZ volumes, see Monitor Multi-AZ volumes.
Accessing the statistics
The statistics must be accessed directly from the instance to which the Amazon EBS volume is attached. You can access the statistics using one of the following methods.