
I Tried Out Amazon EBS Adaptive Volumes (gp3a)
This page has been translated by machine translation. View original
Introduction
On November 30, 2026, Amazon EBS Adaptive Volumes (gp3a / io2a) were announced.
Adaptive Volumes are EBS volumes whose storage charges depend on the amount of data stored on the volume.
In this article, I wrote to and deleted data from gp3a volumes and observed how VolumeConsumedBytes changed. I also changed a running gp3 volume to gp3a and estimated the impact on monthly costs.
Test Environment
- Region: Tokyo (ap-northeast-1, AZ ap-northeast-1d)
- EC2: t9g.small (arm64)
- OS: Amazon Linux 2023 (kernel 6.18.62-127.181.amzn2023.aarch64)
- File system: XFS (mkfs.xfs 6.12.0, default settings)
- aws-cli: 2.43.0
- Volumes
- gp3a: 10 / 100 / 250 GiB (1,000 IOPS, 125 MiB/s each)
- gp3: 10 GiB (3,000 IOPS, 125 MiB/s)
Creating the Volumes
create-volume
I created 10 / 100 / 250 GiB gp3a volumes with the minimum values of 1,000 IOPS and 125 MiB/s.
aws ec2 create-volume --availability-zone ap-northeast-1d --volume-type gp3a --size 10 --iops 1000 --throughput 125
{
"Iops": 1000,
"VolumeType": "gp3a",
"Throughput": 125,
"TrimOnAttach": "enabled",
"Size": 10
}
Unlike gp3, gp3a does not include baseline IOPS and throughput, and the provisioned values are billed. If --iops is omitted, the default is 3,000 IOPS, and this value is also billed.
TrimOnAttach is enabled from the time of creation, even if you don't specify it.
TrimState After Attaching
After attaching the volume to an EC2 instance, I checked TrimState with describe-volumes.
aws ec2 describe-volumes --volume-ids <ボリューム ID> --query 'Volumes[].{VolumeId:VolumeId,VolumeType:VolumeType,Size:Size,Iops:Iops,Throughput:Throughput,TrimOnAttach:TrimOnAttach,Attachments:Attachments[].{Device:Device,State:State,TrimState:TrimState}}'
[
{
"VolumeId": "vol-0123456789abcdef0",
"VolumeType": "gp3a",
"Size": 10,
"Iops": 1000,
"Throughput": 125,
"TrimOnAttach": "enabled",
"Attachments": [
{
"Device": "/dev/sdf",
"State": "attached",
"TrimState": "enabled"
}
]
}
]
Measuring VolumeConsumedBytes
Writing and Deleting
I created XFS on the three volumes and mounted them at a10, a100, and a250 under /mnt.
dev=/dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_<ボリューム ID からハイフンを除いたもの>
mkfs.xfs -q $dev
mkdir -p /mnt/a10
mount $dev /mnt/a10
Writing and deleting were done in the following four stages.
- Stage 1: Write data equivalent to 20% of the capacity
- Stage 2: Write data equivalent to 30% of the capacity
- Stage 3: Write data equivalent to 30% of the capacity
- Stage 4: Delete the file written in stage 3 and run fstrim manually
To make the data non-zero, I wrote the output of openssl enc with dd.
For the 10 GiB volume, I wrote the 2 GiB of stage 1 as follows.
openssl enc -aes-128-ctr -pass pass:adaptive -pbkdf2 < /dev/zero | dd of=/mnt/a10/stage1.bin bs=1M count=2048 iflag=fullblock conv=fsync
In stage 4, I deleted stage3.bin on each volume and ran fstrim.
rm /mnt/a10/stage3.bin /mnt/a100/stage3.bin /mnt/a250/stage3.bin
sync
fstrim -v /mnt/a10
fstrim -v /mnt/a100
fstrim -v /mnt/a250
Measurement Results
VolumeConsumedBytes is in the AWS/EBS namespace of CloudWatch. I retrieved the values for the 100 GiB volume at 1-hour intervals as follows.
aws cloudwatch get-metric-statistics --namespace AWS/EBS --metric-name VolumeConsumedBytes --dimensions Name=VolumeId,Value=<ボリューム ID> --start-time 2026-12-01T04:00:00Z --end-time "$(date -u +%FT%TZ)" --period 3600 --statistics Minimum Maximum --query 'sort_by(Datapoints,&Timestamp)[].[Timestamp,Minimum,Maximum]' --output text
The output unit is bytes.
2026-12-01T13:00:00+09:00 21544566784.0 21544566784.0
2026-12-01T14:00:00+09:00 53756297216.0 53756297216.0
2026-12-01T15:00:00+09:00 85968551936.0 85968551936.0
2026-12-01T16:00:00+09:00 53755772928.0 53755772928.0
I converted the values of the three volumes to GiB (2^30 bytes) and summarized them to three decimal places. The stored amount is the amount of file data on the volume at that point. Because stages 2 and 3 wrote to separate files, the stored amount is cumulative from stage 1.
| Stage | Stored amount (10 / 100 / 250 GiB volumes) | Measured (10 GiB) | Measured (100 GiB) | Measured (250 GiB) |
|---|---|---|---|---|
| 1 | 2 / 20 / 50 GiB | 2.065 GiB | 20.065 GiB | 50.125 GiB |
| 2 | 5 / 50 / 125 GiB | 5.064 GiB | 50.064 GiB | 125.125 GiB |
| 3 | 8 / 80 / 200 GiB | 8.064 GiB | 80.064 GiB | 200.124 GiB |
| 4 | 5 / 50 / 125 GiB | 5.064 GiB | 50.064 GiB | 125.124 GiB |
At every stage, the values nearly matched the stored amount. In stage 4, the space was released by fstrim after deletion.
Changing from gp3 to gp3a
Writes During the Change
I mounted a 10 GiB gp3 volume at /mnt/g10 and ran a loop that synchronously writes the time every second.
while [ ! -f /var/tmp/hb.stop ]; do
echo "$(date -u +%FT%T.%3NZ)" | dd of=/mnt/g10/hb.log oflag=append,dsync conv=notrunc 2>/dev/null || echo "$(date -u +%FT%T.%3NZ) write-error" >> /var/tmp/hb.err
sleep 1
done
While this loop was running, I changed the volume to gp3a with modify-volume.
aws ec2 modify-volume --volume-id <ボリューム ID> --volume-type gp3a
The change completed in about 5 minutes, and no errors were recorded during that time.
Applying TRIM
After changing from gp3 to gp3a, I detached and reattached the volume to enable automatic TRIM.
touch /var/tmp/hb.stop
umount /mnt/g10
aws ec2 detach-volume --volume-id <ボリューム ID> --instance-id <インスタンス ID>
aws ec2 wait volume-available --volume-ids <ボリューム ID>
aws ec2 attach-volume --volume-id <ボリューム ID> --instance-id <インスタンス ID> --device /dev/sdi
aws ec2 wait volume-in-use --volume-ids <ボリューム ID>
These are the values from before the change from gp3 to gp3a through after reattachment. TrimOnAttach is a volume setting, and TrimState is the state for each attachment.
| Point in time | VolumeType | TrimOnAttach | TrimState |
|---|---|---|---|
| Before the change | gp3 | disabled | disabled |
| During modify-volume (ModificationState is optimizing) | gp3a | enabled | disabled |
| After the change completed (ModificationState is completed) | gp3a | enabled | disabled |
| After detaching and attaching | gp3a | enabled | enabled |
Monthly Cost Estimate
I estimated monthly costs using the unit prices for the Tokyo Region (ap-northeast-1). The conditions are as follows.
- Scope: storage, IOPS, and throughput charges
- Size and stored amount: unchanged for one month
- Utilization: the stored amount divided by the provisioned size
- Capacity unit: the GiB number of the size is calculated as-is as GB
- gp3: 3,000 IOPS / 125 MiB/s included in the baseline
- gp3a: the case of 3,000 IOPS / 125 MiB/s, and the case of 1,000 IOPS / 125 MiB/s, the minimum configuration used in the test
- Sizes: 10 / 100 / 250 / 500 / 1,000 GiB
The unit prices are the ap-northeast-1 values from the Price List API.
| Item | Unit | gp3 | gp3a |
|---|---|---|---|
| Storage | GB-month | $0.096 (provisioned size) | $0.096 (up to 500 GB of stored amount) $0.072 (portion beyond 500 GB) |
| IOPS | IOPS-month | $0.006 (free up to 3,000 IOPS) | $0.006 (no free allowance) |
| Throughput | MiB/s-month | $0.048 (free up to 125 MiB/s) | $0.048 (no free allowance) |
The latest unit prices can be checked on the pricing page.
20% Utilization
| Size | Stored amount | gp3 | gp3a (3,000 IOPS / 125 MiB/s) | gp3a (1,000 IOPS / 125 MiB/s) |
|---|---|---|---|---|
| 10 GB | 2 GB | $0.96 | $24.19 | $12.19 |
| 100 GB | 20 GB | $9.60 | $25.92 | $13.92 |
| 250 GB | 50 GB | $24.00 | $28.80 | $16.80 |
| 500 GB | 100 GB | $48.00 | $33.60 | $21.60 |
| 1,000 GB | 200 GB | $96.00 | $43.20 | $31.20 |
50% Utilization
| Size | Stored amount | gp3 | gp3a (3,000 IOPS / 125 MiB/s) | gp3a (1,000 IOPS / 125 MiB/s) |
|---|---|---|---|---|
| 10 GB | 5 GB | $0.96 | $24.48 | $12.48 |
| 100 GB | 50 GB | $9.60 | $28.80 | $16.80 |
| 250 GB | 125 GB | $24.00 | $36.00 | $24.00 |
| 500 GB | 250 GB | $48.00 | $48.00 | $36.00 |
| 1,000 GB | 500 GB | $96.00 | $72.00 | $60.00 |
80% Utilization
| Size | Stored amount | gp3 | gp3a (3,000 IOPS / 125 MiB/s) | gp3a (1,000 IOPS / 125 MiB/s) |
|---|---|---|---|---|
| 10 GB | 8 GB | $0.96 | $24.77 | $12.77 |
| 100 GB | 80 GB | $9.60 | $31.68 | $19.68 |
| 250 GB | 200 GB | $24.00 | $43.20 | $31.20 |
| 500 GB | 400 GB | $48.00 | $62.40 | $50.40 |
| 1,000 GB | 800 GB | $96.00 | $93.60 | $81.60 |
Summary
With gp3a, I confirmed that the amount of stored data is reflected in VolumeConsumedBytes, and that the value goes down after deletion and fstrim.
For EBS volumes with capacity over 250 GB and low utilization (for example, volumes that are oversized because they were created at the TB scale for gp2 burst performance or were temporarily expanded, and are hard to replace with smaller ones), switching to gp3a may lead to cost optimization.
The change can be made without downtime, but fstrim is required to release space, and you need a Nitro-based instance and an OS that supports TRIM, such as Amazon Linux 2023 or later or Windows Server 2016 or later. In addition, automatic TRIM also requires reattachment, and lowering IOPS may reduce performance, so I recommend validating with an AMI or snapshot before switching.
