AWS Cost Efficiency

Choosing the Right AWS Graviton Instance for Your Workloads: A Cost Analysis

AWS Graviton Series Part 1

Did you know?

Graviton3 outpaces x86 with DDR5 memory, doubling data transfer to a whopping 64 billion elements/sec — enough to power real-time analytics and in-memory databases with massive datasets!

AWS Graviton processors optimize price performance for cloud workloads on Amazon EC2. Graviton2-based instances offer up to 40% better price performance than current x86 instances, benefiting workloads like application servers, microservices, video encoding, HPC, EDA, gaming, databases, in-memory caches, and CPU-based machine learning.[1]

In this blog post, we will explore the scenarios and use cases for Graviton Instances, as well as conduct a cost comparison between x86 and Graviton Instances. We will also discuss cost considerations for AWS Graviton Instances. This will help you make informed decisions when choosing the right instance type for your business workloads.

Scenarios and Use Cases for Graviton Instances

Given below are the use-cases/scenarios where one can use Graviton instances to achieve cost savings while meeting desired workload requirements.[3]

General Purpose

1. Scenario: Web Application Hosting
"WebTech Solutions Inc.," a web development company, currently utilizes EC2 On-Demand instances for hosting its portfolio of web applications and websites.

Their platform serves a diverse range of clients and requires reliable and scalable infrastructure to handle fluctuating traffic patterns.

WebTech Solutions employs 30 instances of t3.large, each with 2 vCPUs, 8 GiB of memory, and running on Amazon Linux 2.

As WebTech Solutions expands its client base and enhances its web applications, optimizing their cloud infrastructure becomes crucial for both performance and cost efficiency.

To address these requirements, WebTech can migrate to AWS General Purpose instances, specifically the M6g family.

Powered by AWS custom Graviton2 processors, the M6g instances offer a balance of compute, memory, and networking resources, making them well-suited for hosting web applications with varying workload demands.

2. Current Costs

  • Cost per instance per hour: $0.045
  • Monthly Cost Calculation: 30 instances * 24 hours/day * 30 days/month * $0.045/hour = $1,215

3. Optimized Costs - WebTech Solutions plans to switch to M6g instances

  • Cost per instance per hour for M6g instances: $0.038
  • Monthly Cost Calculation: 30 instances * 24 hours/day * 30 days/month * $0.038/hour = $1,026

4. Savings

  • Monthly Savings: $1,215 (current cost) - $1,026 (optimized cost) = $189
  • Annual Savings: $189 * 12 months = $2,268

    By migrating to AWS General Purpose instances powered by Graviton2 processors (M6g), WebTech Solutions can save approximately $2,268 annually, ensuring they have the scalable and cost-effective infrastructure needed to host their web applications while optimizing costs.

Compute Optimized

1. Scenario: Batch Processing and Analytics

A data analytics firm, "DataMetrics," currently hosts its data processing platform on EC2 On-Demand instances.

The platform serves various clients and handles large-scale data analysis tasks, including batch processing and real-time analytics.

DataMetrics relies on 15 instances of c5.xlarge, each equipped with 4 vCPUs and 8 GiB of memory, running on Ubuntu 20.04 LTS. As DataMetrics scales its operations and processes increasingly large datasets, optimizing cloud infrastructure becomes critical for cost efficiency and performance.

To address these needs, DataMetrics should migrate to AWS Graviton Compute-Optimized instances, specifically the C6g family.

Powered by AWS Graviton2 processors, these instances offer superior performance for compute-intensive workloads at a lower cost. By transitioning to the C6g instances, DataMetrics expects to achieve significant cost savings while improving the performance of its data processing platform.

2. Current Costs

  • Cost per instance per hour: $0.17
  • Monthly Cost Calculation:15 instances * 24 hours/day * 30 days/month * $0.17/hour = $1,530

3. Optimized Costs - Data Metrics plans to switch to C6g (Graviton) instances

  • Cost per instance per hour for C6g instances: $0.136
  • Monthly Cost Calculation:15 instances * 24 hours/day * 30 days/month * $0.136/hour = $1,224

4. Savings

  • Monthly Savings: $1,530 (current cost) - $1,224 (optimized cost) = $306
  • Annual Savings: $306 * 12 months = $3,672

By migrating to AWS Graviton Compute-Optimized instances, DataMetrics can save approximately $3,672 annually, representing a reduction of around 20-25% in their infrastructure expenses.

Observing the performance of the new Graviton3-based C7g instances, they noted a 20-80% increase in performance and up to 35% reduced tail latencies.- Nick Tornow, Head of Platform, Twitter[3]

Memory Optimized

1. Scenario: AI Model Training

"AI Solutions Inc", a cutting-edge artificial intelligence startup, currently relies on EC2 On-Demand instances for training large-scale machine learning models.

Their AI models require extensive memory capacity to store and process massive datasets efficiently. AI Solutions utilizes 30 instances of r5.8xlarge, each with 32 vCPUs and 256 GiB of memory, running on Ubuntu 20.04 LTS.

As AI Solutions ventures into more ambitious AI projects and deals with increasingly complex datasets, optimizing their cloud infrastructure becomes essential for both performance and cost efficiency.

To address these requirements, AI Solutions can migrate to AWS Memory-Optimized instances, specifically the R6gd family.

Powered by AWS custom Graviton2 processors and featuring local NVMe storage, the R6gd instances offer exceptional memory performance and storage capabilities, ideal for memory-intensive AI workloads such as model training and inference.

2. Current Costs

  • Cost per instance per hour: $4.00
  • Monthly Cost Calculation: 30 instances * 24 hours/day * 30 days/month * $4.00/hour = $21,600

3. Optimized Costs - AI Solutions plans to switch to R6gd instances

  • Cost per instance per hour for R6gd instances: $3.60
  • Monthly Cost Calculation: 30 instances * 24 hours/day * 30 days/month * $3.60/hour = $19,440

4. Savings

  • Monthly Savings: $21,600 (current cost) - $19,440 (optimized cost) = $2,160
  • Annual Savings: $2,160 * 12 months = $25,920

By migrating to AWS Memory-Optimized instances with local NVMe storage (R6gd), AI Solutions can save approximately $25,920 annually, enabling them to train more advanced AI models and handle larger datasets while optimizing their infrastructure costs.

We were able to transition our caching servers to r6gd.8xlarge instances with a simple recompile and are enjoying a 33% price benefit and improved latency. -Andrew Shieh, Director of Operations at SmugMug[3]

Storage Optimized

1. Scenario: Content Distribution and Media Streaming

"StreamNet Inc.," a leading provider of streaming media services, currently relies on EC2 On-Demand instances to distribute and stream media content to their global audience.

Their platform requires high storage capacity and throughput to deliver high-definition video content seamlessly. StreamNet utilizes 20 instances of i3.16xlarge, each with 64 vCPUs, 488 GiB of memory, and 8 x 7.6 TB NVMe SSD storage, running on Amazon Linux 2.

As StreamNet expands its content library and audience reach, optimizing their cloud infrastructure becomes paramount for both storage capacity and performance.

To meet these requirements, StreamNet can migrate to AWS Storage-Optimized instances, specifically the Im4gn family. Powered by AWS Graviton2 processors, the Im4gn instances offer superior storage performance and efficiency, ideal for storage-intensive workloads such as content distribution and media streaming.

2. Current Costs:

  • Cost per instance per hour: $10.00
  • Monthly Cost Calculation: 20 instances * 24 hours/day * 30 days/month * $10.00/hour = $14,400

3. Optimized Costs - StreamNet plans to switch to Im4gn instances

  • Cost per instance per hour for Im4gn instances: $8.00
  • Monthly Cost Calculation: 20 instances * 24 hours/day * 30 days/month * $8.00/hour = $11,520

4. Savings

  • Monthly Savings: $14,400 (current cost) - $11,520 (optimized cost) = $2,880
  • Annual Savings: $2,880 * 12 months = $34,560

By migrating to AWS Storage-Optimized instances powered by Graviton2 processors (Im4gn), StreamNet can save approximately $34,560 annually, ensuring they have the necessary storage capacity and performance to deliver high-quality streaming media content to their global audience while optimizing costs.

At Elastic, we tested the I4g instances, powered by AWS Graviton2 processors and we saw up to 35% better price-performance.-Yuvraj Gupta, Principal Product Manager, Elastic[3]

Accelerated Computing

1. Scenario: AI/ML Model Training

"AI Inference Solutions Ltd.," a machine learning inference service provider, currently utilizes EC2 On-Demand instances for running inference tasks on trained machine learning models.

Their platform serves real-time predictions to various applications and requires high-speed inferencing capabilities. AI Inference Solutions employs 15 instances of p3.2xlarge, each equipped with NVIDIA Tesla V100 GPUs and 8 vCPUs, running on Ubuntu 20.04 LTS.

As AI Inference Solutions scales its inference services and handles more concurrent requests, optimizing their cloud infrastructure becomes crucial for both performance and cost efficiency.

To address these requirements, AI Inference Solutions can migrate to AWS Accelerated Computing instances, specifically the G5g family. Powered by AWS custom Graviton2 processors and featuring NVIDIA A100 Tensor Core GPUs, the G5g instances offer exceptional performance for machine learning inference tasks, enabling AI Inference Solutions to deliver real-time predictions with low latency and high throughput.

2. Current Costs

  • Cost per instance per hour: $4.00
  • Monthly Cost Calculation: 15 instances * 24 hours/day * 30 days/month * $4.00/hour = $7,200

3. Optimized Costs - AI Inference Solutions plans to switch to G5g instances

  • Cost per instance per hour for G5g instances: $3.20
  • Monthly Cost Calculation: 15 instances * 24 hours/day * 30 days/month * $3.20/hour = $5,760

4. Savings

  • Monthly Savings: $7,200 (current cost) - $5,760 (optimized cost) = $1,440
  • Annual Savings: $1,440 * 12 months = $17,280

By migrating to AWS Accelerated Computing instances with NVIDIA A100 GPUs (G5g), AI Inference Solutions can save approximately $17,280 annually.

Mircom modernized OpenGN’s single pane of glass and reduced infrastructure costs 30–40% using Amazon EC2 G5g Instances.-Tony Falbo, founder and CEO of Mircom.[4]

Consider checking AWS Graviton Instance page for Pricing and cost considerations.

Comparison: x86 vs Graviton Instances

When deciding between AWS Graviton instances (based on ARM architecture) and traditional x86-based instances (Intel/AMD), it's essential to consider various aspects such as pricing, performance, and workload compatibility. Below is a detailed comparison highlighting the key differences and advantages of each option.[5]

Aspect Graviton (Graviton2) x86 (Intel/AMD)
On-Demand Pricing Generally lower on-demand pricing. Example: m6g.large is cheaper than m5.large. Higher on-demand pricing. Example: m5.large is more expensive than m6g.large.
Cost Savings Significant savings, typically 20-40% cheaper for equivalent instances. More expensive on both on-demand and reserved pricing.
Performance Competitive performance, often better for ARM-optimized workloads. Strong performance, especially for workloads not optimized for ARM.
Workload Types Ideal for containerized applications, microservices, web servers, HPC, certain databases.
Suitable for a wide range of traditional and legacy workloads.
Workload Compatibility Requires testing and potential optimization for ARM architecture. AWS provides migration tools. Broad compatibility with most existing applications.
Operational Overhead Initial overhead for reconfiguring and testing applications. Minimal overhead; most applications run natively.
Example Instance c6g.large (Graviton2) c5.large (Intel) or c5a.large (AMD)

Conclusion

In summary, choosing the best AWS Graviton option needs a strategic approach. You have to consider how much it costs and how well it works for what you need. Graviton3 is great for handling lots of data quickly, especially for tasks like real-time analytics and managing databases. On the other hand, Graviton2 is good for different types of work and is both cost-effective and performs well.

It's important to understand how Graviton works with AWS services so you can make the most of it and improve your overall infrastructure. By utilizing AWS Graviton intelligently, businesses can not only reduce expenses but also enhance efficiency across a spectrum of digital tasks, contributing to overall operational excellence.

References

1. Enable Up to 40% Better Price Performance for Your Workloads with AWS Graviton2 Based Amazon EC2 Instances

2. aws-graviton-getting-started/managed_services.md at main

3. AWS Graviton - ARM Processor

4. Creating an Optimized Solution for Smart Buildings Using Amazon EC2 G5g Instances with Mircom’s OpenGN | Case Study | AWS

5. EC2 On-Demand Instance Pricing – Amazon Web Services

Subscribed !
Your information has been submitted
Oops! Something went wrong while submitting the form.

Similar Blog Posts

Maintain Control and Curb Wasted Spend!
Strategical use of SCPs saves more cloud cost than one can imagine. Astuto does that for you!
Let’s Talk
Let’s Talk