Instances›AWS EC2›r5n›r5n.4xlarge
Compute
vCPUs16
Memory128 GiB
Mem / vCPU8.00 GiB
ProcessorXeon Platinum 8259
Clock speed2.5 GHz
Architecturex86_64
Storage
TypeEBS only
Bandwidth4,750 Mbps
Throughput593.75 MB/s
IOPS18,750
Networking
PerformanceUp to 25 Gigabit
Max ENIs8
IPv6Yes
GPUNone
Family sizes
r5n.large2 vCPU · 16 GiB
r5n.xlarge4 vCPU · 32 GiB
r5n.2xlarge8 vCPU · 64 GiB
r5n.4xlarge16 vCPU · 128 GiB
r5n.8xlarge32 vCPU · 256 GiB
r5n.12xlarge48 vCPU · 384 GiB
r5n.16xlarge64 vCPU · 512 GiB
r5n.24xlarge96 vCPU · 768 GiB
r5n.metal96 vCPU · 768 GiB
r5n.4xlarge

The r5n.4xlarge pairs 16 vCPU with 128 GiB of RAM, the 8.00 GiB-per-vCPU ratio that marks a memory-optimized instance. In the name, "r" stands for RAM, "5" is the generation, "n" marks enhanced networking and "4xlarge" is the size within the r5n family. It runs on Intel Xeon Platinum 8259 (Cascade Lake) at 2.5 GHz, and AWS introduced it in October 2019. AWS has since shipped r6i, r7i, r8i and r9g; r6i.4xlarge is the direct replacement at this size, scoring 267,525 CoreMark/s against this instance's 223,630 — roughly 20% more throughput for the same vCPU count. mh.vs1.2xlarge on Rackspace Spot lines up one-for-one: 16 vCPU and 128 GiB, $1.19/hr on AWS in US East (N. Virginia), from $0.021/hr on Rackspace Spot.

Pricing by region
1 hr
RegionAWS on-demandAWS Spot1-yr Reserved3-yr ReservedRackspace SpotYou save
US East, N. Virginia$1.192$0.386$0.751$0.483$0.021
$1.171 savings
US Central, Chicagono AWS region$0.021
US Central, Dallasno AWS region$0.131
Hong Kong$1.616$1.016$0.652$0.021
$1.595 savings
Sydney, Australia$1.448$0.491$0.912$0.586$0.021
$1.427 savings
London, UK$1.400$0.419$0.886$0.592$0.131
$1.269 savings
US West, San Jose$1.352$0.369$0.853$0.553$0.002
$1.350 savings
US Central, Dallas 2no AWS region$0.242
When to use it
Good for
  • ●Database instances that keep the working set in RAM
  • ●Graph and search workloads with large indexes
  • ●In-memory caches such as Redis and Memcached
  • ●Workloads that fit inside 128 GiB of RAM
  • ●Parallel work that can occupy 16 vCPU
  • ●Network-heavy services — AWS rates this size at Up to 25 Gigabit
Avoid if
  • ●Starting a new deployment. r6i.4xlarge is the newer generation at this size.
  • ●The working set needs more than 128 GiB of RAM
  • ●GPU or FPGA acceleration is needed
  • ●CPU-bound work. You are paying for memory this workload will not use.
  • ●More than 8.00 GiB of RAM per vCPU is needed — that ratio is fixed for the whole family
  • ●The work is single-threaded. Most of these 16 vCPU would sit idle.
r5n.4xlarge runs $870/mo on AWS on-demand. The equivalent on Rackspace Spot: $15/mo.
  • 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