Instances›AWS EC2›im4gn›im4gn.2xlarge
Compute
vCPUs8
Memory32 GiB
Mem / vCPU4.00 GiB
ProcessorGraviton2 Processor
Clock speed2.5 GHz
Architecturearm64
Storage
Type1 × 3,750 GB NVMe SSD
Bandwidth10,000 Mbps
Throughput1250 MB/s
IOPS40,000
Networking
PerformanceUp to 25 Gigabit
Max ENIs4
IPv6Yes
GPUNone
Family sizes
im4gn.large2 vCPU · 8 GiB
im4gn.xlarge4 vCPU · 16 GiB
im4gn.2xlarge8 vCPU · 32 GiB
im4gn.4xlarge16 vCPU · 64 GiB
im4gn.8xlarge32 vCPU · 128 GiB
im4gn.16xlarge64 vCPU · 256 GiB
im4gn.2xlarge

The im4gn.2xlarge is a storage-optimized AWS EC2 instance: 8 vCPU and 32 GiB of memory, 4.00 GiB per vCPU. In the name, "4" is the generation, "gn" marks AWS Graviton (ARM) processors and enhanced networking and "2xlarge" is the size within the im4gn family. It runs on AWS Graviton2 Processor at 2.5 GHz, and AWS introduced it in November 2021. im4gn is the current generation of the im family, so there is no newer AWS size to migrate to. Rackspace Spot's gp.vs1.xlarge is a like-for-like substitute at 8 vCPU and 32 GiB, $0.728/hr on AWS in US East (N. Virginia), from $0.031/hr on Rackspace Spot.

Match qualityx86 substitution

im4gn.2xlarge is Graviton (arm64). Rackspace Spot does not have arm64 servers, so gp.vs1.xlarge is an x86_64 substitute with similar specs.

You will need x86 builds of your container images. Most software rebuilds without changes, but anything with compiled native code needs a real rebuild rather than a retag. Speed per core also differs between the two chips, so it is worth testing before deciding how many nodes to run.

No local diskim4gn.2xlarge comes with 1 × 3,750 GB NVMe SSD attached to the machine. Spot nodes use network storage only, so that disk doesn't come with it. If you were using it as fast scratch space, you'd move to a persistent volume or object storage, which are slower to read.
Pricing by region
1 hr
RegionAWS on-demandAWS Spot1-yr Reserved3-yr ReservedRackspace SpotYou save
US East, N. Virginia$0.728$0.177$0.467$0.333$0.031
$0.697 savings
US Central, Chicagono AWS region$0.021
US Central, Dallasno AWS region$0.081
Hong Kong$0.006
Sydney, Australia$0.872$0.236$0.563$0.399$0.006
$0.866 savings
London, UK$0.844$0.176$0.544$0.385$0.031
$0.813 savings
US West, San Jose$0.081
US Central, Dallas 2no AWS region$0.081
US East, N. Virginia 2$0.728$0.177$0.467$0.333$0.081
$0.647 savings
When to use it
Good for
  • ●Distributed file systems and search indexes
  • ●Transactional databases with heavy random I/O
  • ●Streaming ingest that spools to local disk
  • ●Workloads that fit inside 32 GiB of RAM
  • ●Jobs that want 1 × 3,750 GB of local NVMe scratch space
  • ●Network-heavy services — AWS rates this size at Up to 25 Gigabit
Avoid if
  • ●The working set needs more than 32 GiB of RAM
  • ●You cannot rebuild x86-only binaries or vendor images for aarch64
  • ●More than 4.00 GiB of RAM per vCPU is needed — that ratio is fixed for the whole family
  • ●GPU or FPGA acceleration is needed
  • ●Workloads that never touch local disk. The instance-store premium is wasted.
Stop overpaying AWS. This compute costs $531/mo on AWS vs $23/mo on Rackspace Spot.
  • Spot sells spare capacity at market prices. It is the cheapest compute on the internet.
  • Prices are set by supply and demand. You pay what the market decides.
  • Compute is delivered as fully managed Kubernetes. All infrastructure is taken care of.
  • Egress costs $0.01/GB after the free allowance. AWS charges $0.09/GB.
Build your Cloudspace
Frequently asked questions