r4.xlarge by Amazon Web Services

r4.xlarge is a Memory optimized Gen4 xlarge server offered by Amazon Web Services with 4 vCPUs, 31 GiB of memory and 0 GB of storage. The pricing starts at 0.0763 USD per hour.
4 vCPU
31 GiB Memory
Spare SCore
2,079
(All-cores)
879
(Single-core)

Specifications

Server Metadata

Vendor ID
aws
Name
r4.xlarge
Description
Memory optimized Gen4 xlarge
Family
r4
Hw Virt
Status
active
Observed At
2026-06-18T12:50:33.067662Z

Availability

REGION / IDSPOTONDEMAND
Ohio (US) / us-east-2
0.077867 USD/h 0.266 USD/h
Oregon (US) / us-west-2
0.097433 USD/h 0.266 USD/h
Northern Virgina (US) / us-east-1
0.122367 USD/h 0.266 USD/h
Mumbai (IN) / ap-south-1
0.0872 USD/h 0.274 USD/h
Quebec (CA) / ca-central-1
0.13145 USD/h 0.292 USD/h
California (US) / us-west-1
0.10165 USD/h 0.2964 USD/h
Dublin (IE) / eu-west-1
0.1253 USD/h 0.2964 USD/h
London (GB) / eu-west-2
0.127167 USD/h 0.312 USD/h
Paris (FR) / eu-west-3
0.153433 USD/h 0.312 USD/h
Sydney (AU) / ap-southeast-2
0.1398 USD/h 0.3192 USD/h
Seoul (KR) / ap-northeast-2
0.09115 USD/h 0.32 USD/h
Osaka (JP) / ap-northeast-3
0.1034 USD/h 0.32 USD/h
Tokyo (JP) / ap-northeast-1
0.128633 USD/h 0.32 USD/h
Singapore (SG) / ap-southeast-1
0.128633 USD/h 0.32 USD/h
Frankfurt (DE) / eu-central-1
0.160533 USD/h 0.3201 USD/h
Sao Paulo (BR) / sa-east-1
0.08825 USD/h 0.56 USD/h

Processor

vCPUs
4
Hypervisor
xen
CPU Allocation
Dedicated
CPU Cores
2
CPU Speed
2.3 GHz
CPU Architecture
x86_64
CPU Manufacturer
Intel
CPU Family
Xeon
CPU Model
E5-2686 v4
CPU L1D Cache
32 KiB
CPU L1D Cache Total
64 KiB
CPU L1I Cache
32 KiB
CPU L1I Cache Total
64 KiB
CPU L2 Cache
256 KiB
CPU L2 Cache Total
512 KiB
CPU L3 Cache
45 MiB
CPU L3 Cache Total
45 MiB
CPU Flags
fpu, vme, de, pse, tsc, msr, pae, mce, cx8, apic, sep, mtrr, pge, mca, cmov, pat, pse36, clflush, mmx, fxsr, sse, sse2, ht, syscall, nx, pdpe1gb, rdtscp, lm, constant_tsc, rep_good, nopl, xtopology, cpuid, aperfmperf, tsc_known_freq, pni, pclmulqdq, ssse3, fma, cx16, pcid, sse4_1, sse4_2, x2apic, movbe, popcnt, tsc_deadline_timer, aes, xsave, avx, f16c, rdrand, hypervisor, lahf_lm, abm, 3dnowprefetch, cpuid_fault, pti, fsgsbase, bmi1, hle, avx2, smep, bmi2, erms, invpcid, rtm, rdseed, adx, xsaveopt
Ecpus
2.4
Scalability
120

System Resources and Accelerators

MEMORY
Memory Amount
31 GiB
Memory Amount Actual
31 GiB
GPU
GPU Count
0
GPU Memory Min
0 MiB
GPU Memory Total
0 MiB
GPUs
    STORAGE
    Storage Size
    0 GB
    Storages
      NETWORK
      Network Speed Baseline
      1.25 Gbps
      Network Speed Max
      10 Gbps
      Network Storage Speed Baseline
      0.85 Gbps
      Network Storage Speed Max
      0.85 Gbps
      Inbound Traffic
      0 GB/month
      Outbound Traffic
      0 GB/month
      IPv4
      0

      Server Description

      A memory-optimized legacy instance offering high RAM density for memory-bound workloads with modest compute requirements.

      Memory Optimized

      Amazon Web Services r4.xlarge is a memory-optimized, fourth-generation instance designed for workloads requiring a high memory-to-vCPU ratio. Powered by an Intel Xeon E5-2686 v4 processor running at 2.3 GHz on the x86_64 architecture, it provides 4 vCPUs and 30.0 GB of RAM. The instance operates on the Xen hypervisor and does not include local storage, relying instead on network-attached storage with a 1 Gbps baseline network bandwidth. Benchmark data indicates that while its memory subsystem achieves average performance scores, its overall compute and memory bandwidth capabilities are weak to poor compared to modern standards. This makes the r4.xlarge a qualitatively cost-effective option for legacy memory-bound applications, basic database operations, and caching layers that require substantial memory capacity but have modest processing requirements.

      Economics

      Average Price per Region

      Prices per Zone

      Lowest Prices

      Performance

      Workload Profiles

      0.145Score
      Precomputed compound score for Cache Intensive workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x_i / m_i)^(w_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 50% Redis RPS (pipeline=1, SET), 20% Redis RPS (pipeline=16, SET), 10% PassMark Memory Mark (composite), 10% Memory bandwidth (read, 16 MB ~ L3), 10% PassMark single-thread CPU. Rationale for component selection: In-memory key-value store workload, mixing direct Redis performance metrics with memory speed and latency benchmarks, and single-core CPU performance profiles.
      Component Score Weight Impact
      Raw Reference Normalized Target Actual
      Redis RPS (pipeline=1, SET) 231,008 ops/sec 2,367,640 ops/sec 0.0976 50.00% 50.00% -68.80%
      Redis RPS (pipeline=16, SET) 986,122 ops/sec 15,440,866 ops/sec 0.0639 20.00% 20.00% -42.30%
      PassMark Memory Mark (composite) 1,936 2,418 0.801 10.00% 10.00% -2.19%
      Memory bandwidth (read, 16 MB ~ L3) 21,946 MB/sec 108,322 MB/sec 0.203 10.00% 10.00% -14.70%
      PassMark single-thread CPU 1,639 Mops/s 2,365 Mops/s 0.693 10.00% 10.00% -3.60%

      Memory Bandwidth

      Compression

      OpenSSL

      Geekbench Single-Core

      Score: 874

      Geekbench Multi-Core

      Score: 1,871

      Passmark CPU Scores

      BENCHMARKSCORE
      Mark
      3184
      Compression
      43710
      Encryption
      935
      Extended Instructions
      2085
      Floating Point Maths
      5445
      Integer Maths
      9506
      Physics
      465
      Prime Numbers
      27
      Single Threaded
      1639
      String Sorting
      6336

      Passmark Memory Scores

      BENCHMARKSCORE
      Memory Mark
      1936
      Database Operations
      1222
      Memory Latency
      54
      Memory Read Cached
      19497
      Memory Read Uncached
      10170
      Memory Write
      7198

      Stress-ng Raw Scores

      Stress-ng Relative Multicore Performance

      LLM Inference Speed for Prompt Processing

      LLM Inference Speed for Text Generation

      Static Web Server

      Redis

      Alternatives

      Servers of the Same Family

      INSTANCEvCPUsMEMORYGPUs
      r4.large 215 GiB0
      r4.2xlarge 861 GiB0
      r4.4xlarge 16122 GiB0
      r4.8xlarge 32244 GiB0
      r4.16xlarge 64488 GiB0

      Similar Servers

      INSTANCEVENDORvCPUsMEMORYGPUs

      r4.xlarge FAQs