TL;DR

  • EBS now supports TRIM on every volume type, announced 30 Nov 2026. Blocks your OS trims are left out of snapshots you take afterwards.
  • It is off by default on gp2, gp3, io1, io2, st1 and sc1, and on by default on the new Adaptive Volumes (gp3a, io2a). Nitro instances only.
  • No extra charge for TRIM. On non-adaptive volumes it only cuts snapshot cost; on gp3a/io2a it also cuts the volume bill.
  • Watch out: TRIM uses your provisioned IOPS, and changing the setting needs a detach and reattach.
  • My view: worth switching on for database volumes, but schedule it and test first.

Contents

  • What changed
  • The facts at a glance
  • How it works in practice
  • What this means for you
  • Related posts
  • Sources

What changed

Amazon EBS now accepts TRIM on all volume types. TRIM is the standard way for an operating system to tell storage that some blocks no longer hold data. Once TRIM is enabled for a volume and your OS sends the requests, those blocks are left out of the snapshots you take from then on. Existing snapshots do not change.

The announcement says the biggest winners are applications that write and delete a lot, such as databases that compact pages or drop temporary tables. It also says your savings depend on how often you delete data and how often you snapshot.

The reason this matters more than a normal snapshot tweak: on the new Adaptive Volumes I covered in EBS Adaptive Volumes: Pay for Data Stored, Not Size Provisioned, TRIM is what shrinks the amount of data you are billed for on the volume itself.

The facts at a glance

Item What AWS states
Announced 30 Nov 2026 (What's New)
Volume types All of them: gp2, gp3, io1, io2, st1, sc1, gp3a, io2a
Default Enabled on gp3a and io2a, disabled on the others (docs)
Instances Nitro-based only. Not supported on trn2, trn2u and p6e-gb300 families
Not supported Local Zones, Wavelength, Outposts, Multi-AZ volumes, Middle East (UAE), Middle East (Bahrain), the European Sovereign Cloud (Germany) and the China Regions
Granularity 512 KiB blocks. Misaligned TRIMs leave the partly trimmed block counted as changed
Price "No additional charge for TRIM" per the docs
Setting Volume property TrimOnAttach; read-only per-attachment TrimState

Two details are easy to miss. First, TrimOnAttach is applied only when the volume attaches, so on an existing volume you change it with ModifyVolume and then detach and reattach. Second, the announcement says TRIM configuration in the EC2 APIs for launching instances and creating images is "available soon", so it is not there yet.

How it works in practice

Two layers have to agree. The volume has to advertise TRIM to the guest (that is TrimOnAttach), and the OS has to actually send TRIM for freed blocks. The docs say the volume setting is necessary but not sufficient on its own.

For the OS side, the docs recommend periodic TRIM rather than continuous. On Amazon Linux 2023 and 2027 the fstrim.timer service is already enabled by default. On other distributions it depends. These are the commands from the user guide:

# enable weekly TRIM (fstrim.timer), then check it sudo systemctl enable --now fstrim.timer systemctl is-enabled fstrim.timer 

On Windows Server 2016 and later TRIM is on by default. A value of 0 means enabled:

fsutil behavior query DisableDeleteNotify 

These come from the docs. The bash block passes bash -n; I have not run any of it against an instance.

The docs spell out why to avoid the discard mount option for most workloads: TRIM commands count against your provisioned IOPS and throughput like writes, so during heavy deletes (compaction, log rotation) continuous TRIM can compete with the application. Running it in a quiet window before your regular snapshot gives the same snapshot benefit.

To confirm it is working, the docs point at three signals: snapshot cost over time, the VolumeConsumedBytes CloudWatch metric (it should drop after a TRIM run), and the trim_ops statistic in EBS detailed performance statistics.

What this means for you

Who should care, and what to do first

If you run databases or anything that churns data on EBS and takes regular snapshots, this is a cheap experiment. If your volumes are mostly append-only, you will see little. My suggestion: pick one non-critical volume, enable TRIM, let a weekly fstrim run, and compare the next snapshot's size. I have not measured any saving; AWS itself says it depends on your delete and snapshot pattern.

What gets simpler

Nothing to retire here. It is a setting plus an OS schedule, and snapshot size is the only thing that changes.

What gets more complex

  • Two switches to keep aligned: TrimOnAttach on the volume and TRIM behaviour in the OS.
  • Changing the setting on a live volume needs a detach and reattach, so plan a maintenance window. The docs advise turning TRIM off in the OS first if you need to stop quickly.
  • TRIM eats provisioned IOPS. If a volume already runs close to its limits, add headroom before enabling it.
  • Coverage gaps: no Multi-AZ volumes (see EBS Multi-AZ Volumes), no Outposts, and a few regions are excluded.
  • Existing snapshots stay as they are, so savings arrive only as old snapshots age out under your retention policy.

Cost

TRIM itself is free. On gp2, gp3, io1, io2, st1 and sc1 the volume bill stays based on provisioned size and only snapshot storage shrinks. The snapshot per-GB price did not render on the EBS pricing page when I read it, so I am not quoting one: pricing not stated here, check the page for your Region.

For gp3a the pricing page has a worked example, as read on 3 Dec 2026. A 2,000 GB volume holds 1,000 GB for six hours, then 400 GB is deleted and trimmed, leaving 600 GB for six hours. Storage is $0.08 per GB-month for the first 500 GB and $0.06 per GB-month above that.

  • Before TRIM: ((0.08 × 500) + (0.06 × 500)) × 21,600 ÷ (86,400 × 30) = $0.583
  • After TRIM: ((0.08 × 500) + (0.06 × 100)) × 21,600 ÷ (86,400 × 30) = $0.383

IOPS and throughput are billed on what you provision, so trimming does not change those lines. Without TRIM on an Adaptive Volume you would keep paying for the deleted 400 GB, which is why AWS recommends leaving it on there.

Getting the best out of it

  • Prefer a weekly fstrim scheduled shortly before the snapshot job.
  • Align application TRIMs to 512 KiB where you can.
  • Test the performance impact with your real workload before rolling out widely.
  • Check trim_ops and VolumeConsumedBytes to prove TRIM is reaching the volume.
  • IaC: the announcement says the setting is available through the EBS APIs on create and modify. I did not confirm CloudFormation, CDK or Terraform support, so check your provider's docs.

Related posts

Sources

Drafted with AI assistance. I review and edit every post.