

# Amazon EBS General Purpose SSD volumes

General Purpose (`gp3` and `gp2`) and General Purpose Adaptive (`gp3a`) volumes are backed by solid-state drives (SSD). They balance price and performance for a wide variety of transactional workloads. We recommend these volumes for most workloads.

Amazon EBS offers the following types of General Purpose SSD volumes:

**Topics**
+ [General Purpose Adaptive SSD (gp3a) volumes](#gp3a-ebs-volume-type)
+ [General Purpose SSD (gp3) volumes](#gp3-ebs-volume-type)
+ [General Purpose SSD (gp2) volumes](#EBSVolumeTypes_gp2)

## General Purpose Adaptive SSD (gp3a) volumes
<a name="gp3a-ebs-volume-type"></a>

General Purpose Adaptive Volumes (`gp3a`) are suited for a wide variety of general purpose workloads and charge only for the storage that you use, not the provisioned volume size. This lets you size a volume for future growth without paying for unused storage. It also means that you don't need to constantly grow your volume using Elastic Volumes as the data grows, or shrink it through complex copy operations. You can provision and scale IOPS and throughput independent of the volume size. `gp3a` volumes are a companion to `gp3` volumes. They're designed for long-running workloads that have cyclical storage patterns, or whose storage growth is hard to predict. To choose between them, consider your application, your typical storage utilization, and your performance requirements. For more information, see [How to choose between gp3a and gp3 volumes](#choose-gp3a-gp3).

**Billing model**  
`gp3a` volumes are billed for the storage that you use, in two tiers. When the used storage on a volume passes 500 GiB, the per-GiB rate drops, so `gp3a` volumes become more cost-effective as they grow. Unlike `gp3` volumes, `gp3a` volumes don't include baseline IOPS or throughput, which are billed separately, based on the values that you provision. For more information, see [Amazon EBS Pricing](https://aws.amazon.com/ebs/pricing/).

**Durability and Latency**  
`gp3a` volumes provide single-digit millisecond latency and 99.8 percent to 99.9 percent volume durability with an annual failure rate (AFR) no higher than 0.2 percent, which translates to a maximum of two volume failures per 1,000 running volumes over a one-year period. AWS designs `gp3a` volumes to deliver their provisioned performance 99 percent of the time. These characteristics are the same as for `gp3` volumes.

**Tip**  
For latency-sensitive workloads, we recommend that you use `io2a` volumes. `io2a` volumes are designed to deliver an average latency of under 500 microseconds for 16KiB I/O operations. `io2a` volumes also deliver better outlier latency compared to General Purpose volumes, reducing the frequency of I/Os exceeding 800 microseconds by over 10 times. For more information, see [Provisioned IOPS Adaptive SSD (io2a) volumes](provisioned-iops.md#io2a-ebs-volume-type).

**Volume specifications**  
`gp3a` volumes support the same specifications as `gp3` volumes: volume sizes up to 64 TiB, up to 80,000 IOPS, and up to 2,000 MiB/s of throughput.

`gp3a` volumes differ from `gp3` volumes in the following ways:
+ Storage is billed based on the amount of data stored on the volume (used storage), not the provisioned volume size.
+ Unlike `gp3` volumes, `gp3a` volumes do not include baseline IOPS or throughput with the price of storage. You provision IOPS and throughput separately and are billed for the values that you provision. `gp3a` volumes have a minimum of 1,000 provisioned IOPS and 125 MiB/s provisioned throughput.
+ `gp3a` volumes are not available as Multi-AZ volumes. If you need a Multi-AZ volume, use a `gp3` volume instead.

**Migrate to gp3a from gp3**  
You can change a `gp3` volume to `gp3a` by using Elastic Volumes. Once the modification is completed, the billing model changes and it doesn't interrupt your Amazon EC2 instance. For more information, see [Modify an Amazon EBS volume using Elastic Volumes operations](ebs-modify-volume.md).

When you modify a volume from `gp3` to `gp3a`, the TrimOnAttach property is set to enabled by default, unless you override it. However, the change takes effect only after a one-time detach and reattach of the volume. Once TRIM is enabled on the volume and your operating system issues TRIM for deleted data, Amazon EBS can exclude deleted blocks from your bill. For more information, see [Amazon EBS volumes TRIM support](ebs-trim.md).

### How to choose between gp3a and gp3 volumes
<a name="choose-gp3a-gp3"></a>

Use the following guidelines:
+ Volumes smaller than 250 GiB provisioned size: use `gp3`. For more information, see [General Purpose SSD (gp3) volumes](#gp3-ebs-volume-type).
+ Volumes larger than 1.5 TiB provisioned size: use `gp3a`.
+ Volumes with more than 250 GiB of unused space typically: use `gp3a`.
+ All other volumes: use `gp3`.
+ For more detailed recommendations for which volumes would be more cost-effective on `gp3a` across your account, use AWS Compute Optimizer. For more information, see [Viewing Amazon EBS volume recommendations](https://docs.aws.amazon.com/compute-optimizer/latest/ug/view-ebs-recommendations.html) in the [AWS Compute Optimizer User Guide](https://docs.aws.amazon.com/compute-optimizer/latest/ug/what-is-compute-optimizer.html).

## General Purpose SSD (gp3) volumes
<a name="gp3-ebs-volume-type"></a>

General Purpose SSD (gp3) volumes help to provide the right balance of price and performance for most applications. You can scale volume performance independently of volume size, so you can provision the performance you need without adding storage capacity. Additionally, gp3 volumes offer a 20 percent lower price per GiB than General Purpose SSD (gp2) volumes.

Use `gp3` volumes for small volumes, ephemeral workloads, and boot volumes. For larger volumes, or for long-running workloads with cyclical or hard-to-predict storage growth, consider `gp3a` volumes instead. For more information, see [General Purpose Adaptive SSD (gp3a) volumes](#gp3a-ebs-volume-type).

gp3 volumes provide single-digit millisecond latency and 99.8 percent to 99.9 percent volume durability with an annual failure rate (AFR) no higher than 0.2 percent, which translates to a maximum of two volume failures per 1,000 running volumes over a one-year period. AWS designs gp3 volumes to deliver their provisioned performance 99 percent of the time.

**Topics**
+ [gp3 volume performance](#gp3-performance)
+ [gp3 volume size](#gp3-sie)
+ [Migrate to gp3 from gp2](#migrate-to-gp3)

### gp3 volume performance
<a name="gp3-performance"></a>

**Tip**  
gp3 volumes do not use burst performance. They can indefinitely sustain their full provisioned IOPS and throughput performance.

**IOPS performance**  
gp3 volumes deliver a consistent baseline IOPS performance of 3,000 IOPS, which is included with the price of storage. You can provision additional IOPS (up to a maximum of 80,000) for an additional cost at a ratio of 500 IOPS per GiB of volume size. Maximum IOPS can be provisioned for volumes 160 GiB or larger (500 IOPS per GiB × 160 GiB = 80,000 IOPS).

**Throughput performance**  
gp3 volumes deliver a consistent baseline throughput performance of 125 MiB/s, which is included with the price of storage. You can provision additional throughput (up to a maximum of 2,000 MiB/s) for an additional cost at a ratio of 0.25 MiB/s per provisioned IOPS. Maximum throughput can be provisioned at 8,000 IOPS or higher and 16 GiB or larger (8,000 IOPS × 0.25 MiB/s per IOPS = 2,000 MiB/s).

**Note**  
On Outposts, gp3 volumes support sizes up to 16 TiB, IOPS up to 16,000, and throughput up to 1,000 MiB/s.

### gp3 volume size
<a name="gp3-sie"></a>

A gp3 volume can range in size from 1 GiB to 64 TiB.

### Migrate to gp3 from gp2
<a name="migrate-to-gp3"></a>

If you are currently using gp2 volumes, you can migrate your volumes to gp3 using [Modify an Amazon EBS volume using Elastic Volumes operations](ebs-modify-volume.md) operations. You can use Amazon EBS Elastic Volumes operations to modify the volume type, IOPS, and throughput of your existing volumes without interrupting your Amazon EC2 instances. When using the console to create a volume or to create an AMI from a snapshot, General Purpose SSD `gp3` is the default selection for volume type. In other cases, `gp2` is the default selection. In these cases, you can select `gp3` as the volume type instead of using `gp2`.

To find out how much you can save by migrating your gp2 volumes to gp3, use the [Amazon EBS gp2 to gp3 migration cost savings calculator](https://d1.awsstatic.com/product-marketing/Storage/EBS/gp2_gp3_CostOptimizer.dd5eac2187ef7678f4922fcc3d96982992964ba5.xlsx).

## General Purpose SSD (gp2) volumes
<a name="EBSVolumeTypes_gp2"></a>

They offer cost-effective storage that is ideal for a broad range of transactional workloads. With `gp2` volumes, performance scales with volume size.

**Tip**  
`gp3` volumes are the latest generation of General Purpose SSD volumes. They offer more predictable performance scaling and prices that are up to 20 percent lower than `gp2` volumes. For more information, see [General Purpose SSD (gp3) volumes](#gp3-ebs-volume-type).   
To find out how much you can save by migrating your `gp2` volumes to `gp3`, use the [Amazon EBS gp2 to gp3 migration cost savings calculator](https://d1.awsstatic.com/product-marketing/Storage/EBS/gp2_gp3_CostOptimizer.dd5eac2187ef7678f4922fcc3d96982992964ba5.xlsx).

`gp2` volumes provide single-digit millisecond latency and 99.8 percent to 99.9 percent volume durability with an annual failure rate (AFR) no higher than 0.2 percent, which translates to a maximum of two volume failures per 1,000 running volumes over a one-year period. AWS designs `gp2` volumes to deliver their provisioned performance 99 percent of the time.

**Topics**
+ [`gp2` volume performance](#gp2-performance)
+ [`gp2` volume size](#gp2-size)

### `gp2` volume performance
<a name="gp2-performance"></a>

**IOPS performance**  
Baseline IOPS performance scales linearly between a minimum of 100 and a maximum of 16,000 at a rate of 3 IOPS per GiB of volume size. IOPS performance is provisioned as follows:
+ Volumes 33.33 GiB and smaller are provisioned with the minimum of 100 IOPS.
+ Volumes larger than 33.33 GiB are provisioned with 3 IOPS per GiB of volume size up to the maximum of 16,000 IOPS, which is reached at 5,334 GiB (3 X 5,334).
+ Volumes 5,334 GiB and larger are provisioned with 16,000 IOPS.

`gp2` volumes smaller than 1 TiB (and that are provisioned with less than 3,000 IOPS) can **burst** to 3,000 IOPS when needed for an extended period of time. A volume's ability to burst is governed by I/O credits. When I/O demand is greater than baseline performance, the volume **spends I/O credits** to burst to the required performance level (up to 3,000 IOPS). While bursting, I/O credits are not accumulated and they are spent at the rate of IOPS that is being used above baseline IOPS (spend rate = burst IOPS - baseline IOPS). The more I/O credits a volume has accrued, the longer it can sustain its burst performance. You can calculate **Burst duration** as follows:

```
                        (I/O credit balance)
Burst duration  =  ------------------------------
                   (Burst IOPS) - (Baseline IOPS)
```

When I/O demand drops to baseline performance level or lower, the volume starts to **earn I/O credits** at a rate of 3 I/O credits per GiB of volume size per second. Volumes have an **I/O credit accrual limit** of 5.4 million I/O credits, which is enough to sustain the maximum burst performance of 3,000 IOPS for at least 30 minutes.

**Note**  
Each volume receives an initial I/O credit balance of 5.4 million I/O credits, which provides a fast initial boot cycle for boot volumes and a good bootstrapping experience for other applications.

The following table lists example volume sizes and the associated baseline performance of the volume, the burst duration (when starting with 5.4 million I/O credits), and the time needed to refill an empty I/O credits balance.


| Volume size (GiB) | Baseline performance (IOPS) | Burst duration at 3,000 IOPS (seconds) | Time to refill empty credit balance (seconds) | 
| --- | --- | --- | --- | 
| 1 to 33.33 | 100 | 1,862 | 54,000 | 
| 100 | 300 | 2,000 | 18,000 | 
| 334 (min size for max throughput) | 1,002 | 2,703 | 5,389 | 
| 750 | 2,250 | 7,200 | 2,400 | 
| 1,000 | 3,000 | N/A\* | N/A\* | 
| 5,334 (min size for max IOPS) and larger | 16,000 | N/A\* | N/A\* | 

\* The baseline performance of the volume exceeds the maximum burst performance.

You can monitor the I/O credit balance for a volume using the Amazon EBS `BurstBalance` metric in Amazon CloudWatch. This metric shows the percentage of I/O credits for `gp2` remaining. For more information, see [Amazon EBS I/O characteristics and monitoring](ebs-io-characteristics.md). You can set an alarm that notifies you when the `BurstBalance` value falls to a certain level. For more information, see [ Creating CloudWatch Alarms](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html).

**Throughput performance**  


`gp2` volumes deliver throughput between 128 MiB/s and 250 MiB/s, depending on the volume size. Throughput performance is provisioned as follows:
+ Volumes that are 170 GiB and smaller deliver a maximum throughput of 128 MiB/s.
+ Volumes larger than 170 GiB but smaller than 334 GiB can burst to a maximum throughput of 250 MiB/s.
+ Volumes that are 334 GiB and larger deliver 250 MiB/s.

Throughput for a `gp2` volume can be calculated using the following formula, up to the throughput limit of 250 MiB/s:

```
Throughput in MiB/s = IOPS performance × I/O size in KiB / 1,024
```

### `gp2` volume size
<a name="gp2-size"></a>

A `gp2` volume can range in size from 1 GiB to 16 TiB. Keep in mind that volume performance scales linearly with the volume size.