>
kubernetes, Linux, Planet, PostgreSQL, Technical

Graviton2 versus Graviton4

Just a short post, because I thought this was pretty remarkable. Below, I have screenshots showing the CPU utilization of two AWS instances in us-west-2 which are running an identical workload.

They are running the CloudNativePG playground, which is a production-like learning and testing environment (all running virtually inside the single ec2 instance, which can be easily started and stopped or terminated and recreated). The standard CNPG playground setup consists of two Kubernetes clusters named kind-k8s-eu and kind-k8s-us. Each Kubernetes cluster contains a CloudNativePG cluster with HA between three postgres replicas running across three nodes/servers locally, and then there is cross-cluster replication from the EU cluster (primary) to the US cluster (standby).

What jumped out at me was the huge difference in CPU utilization! The Graviton2 instance runs maybe 40% utilization while the Graviton4 instance runs around 10% utilization.

I just now checked the AWS on-demand pricing page, and m6g.xlarge is $0.154/hr while m8g.xlarge is $0.17952/hour. That is a 16.6% increase in price, and for this particular workload it could be as much as a 300% increase in performance. At a fleet level, this should translate into significant cost saving opportunities if anyone adopted Graviton2 and if they are able to scale down overall instance counts based on better performance of newer generation chips.

Honestly, 40% utilization is technically fine for most of my own Kubernetes and Postgres experiments… but the 16.6% price increase is just low enough that I’ll probably start using the m8g instances anyway. 🙂

Things like this also underscore why it’s so hard to compare processors… how can we compare across different families, when we see differences like this between generations WITHIN a family?! Besides that, the total number of different processor choices we have today is overwhelming, taking into account all the different providers in the market. It’s a tough job.

Unknown's avatar

About Jeremy

Building and running reliable data platforms that scale and perform. about.me/jeremy_schneider

Discussion

2 thoughts on “Graviton2 versus Graviton4

  1. Elevarq's avatar

    Why not using the m8g.large or even m8g.medium, to save some money and still have better or comparable performance?

    Like

    Posted by Elevarq | August 4, 2025, 11:30 am

Leave a New Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Disclaimer

This is my personal website. The views expressed here are mine alone and may not reflect the views of my employer.

contact: 312-725-9249 or schneider @ ardentperf.com


https://about.me/jeremy_schneider

oaktableocmaceracattack

(a)

Enter your email address to receive notifications of new posts by email.

Join 76 other subscribers