Ecstaticloud
Initializing0%
Ecstaticloud Logo
Back to all insights
Enterprise AI & LLMOpsNovember 6, 2026• 8 min read

Benchmarking vLLM on AWS Graviton4: How to Slash LLM Inference Latency by 40% on Kubernetes

As generative AI workloads scale, traditional GPU clusters often become cost-prohibitive and underutilized. Learn how deploying vLLM on AWS Graviton4 processors via Amazon EKS significantly reduces inference latency while cutting infrastructure spend by up to 40%.

For years, the standard playbook for serving Large Language Models (LLMs) has been simple: rent as many NVIDIA GPUs as your cloud quota allows, deploy vLLM or TGI, and optimize for throughput. However, as AI architectures mature in production, this "GPU-first" paradigm is encountering severe friction: high idle costs, GPU capacity allocation constraints, and over-provisioning for low-to-medium throughput workloads.

While GPUs remain unchallenged for ultra-high-throughput training and massive parameters (e.g., Llama-3-70B at batch size 128), real-world enterprise architectures often consist of domain-specific 8B parameter models, task-tailored adapters, and strict latency SLAs for small batch sizes (BS=1 to 4).

In this technical deep dive, we evaluate AWS Graviton4—Amazon's custom ARM-based silicon—as a primary execution target for LLM inference on Amazon EKS using vLLM's CPU execution engine. We will demonstrate how Graviton4's architectural improvements (Neoverse V2, massive DDR5 memory bandwidth) paired with static Kubernetes CPU pinning allow you to cut Inter-Token Latency (ITL) by 40% while slashing overall infrastructure spend by up to 40% compared to equivalent x86 CPU and legacy GPU instances.


Why Graviton4 for LLM Inference?

LLM token generation (the autoregressive decoding phase) is fundamentally memory-bandwidth bound, not compute-bound. During generation, the model reads billions of weights from memory for every single generated token.

       +-----------------------------------------------------------+
       |                  MEMORY BANDWIDTH BOTTLE-NECK             |
       |                                                           |
       |   +------------------+             +------------------+   |
       |   |  System DRAM     |  5600 MT/s  |  CPU Compute     |   |
       |   |  (DDR5 Channels) |===========> |  Neoverse V2 Core|   |
       |   +------------------+  ~280 GB/s  +------------------+   |
       |                                                           |
       |   * Every token generated requires reading full FP16/INT8 |
       |     weight matrices from memory into core caches.         |
       +-----------------------------------------------------------+

Traditional x86 cloud CPUs often bottleneck here due to limited memory channels and thread contention across NUMA domains. AWS Graviton4 addresses this bottleneck through specific hardware advancements:

  1. ARM Neoverse V2 Cores: Graviton4 packs up to 96 Neoverse V2 cores, providing 2MB of private L2 cache per core (double Graviton3).
  2. Superior DDR5 Memory Bandwidth: Featuring 12 channels of DDR5-5600 SDRAM, Graviton4 delivers up to 50% more memory bandwidth than Graviton3 and significantly outpaces comparable dual-socket x86 architecture configurations.
  3. SVE2 Vector Processing & Bfloat16: Scalable Vector Extension 2 (SVE2) and native bfloat16 / int8 dot-product acceleration allow single-instruction multi-data (SIMD) execution over matrix math operations directly inside the CPU pipeline.

When combined with vLLM's optimized CPU engine—which ports PagedAttention to CPU virtual memory management—Graviton4 becomes a highly cost-effective runtime for 7B-8B parameter models.


Architecture Overview: vLLM on Amazon EKS with Graviton4

To run low-latency LLM workloads reliably on CPU, your Kubernetes orchestration layer must eliminate thread context switching, hyperthreading contention, and socket-crossing overhead.

Below is our production-grade architectural stack running on Amazon EKS:

                                 +-------------------------------------------------------+
                                 |                 Amazon EKS Cluster                    |
                                 |                                                       |
                                 |  +-------------------------------------------------+  |
                                 |  |         Karpenter Provisioner NodePool          |  |
                                 |  |           (Targeting c8g.24xlarge)              |  |
                                 |  +------------------------+------------------------+  |
                                 |                           |                           |
                                 |                           v                           |
                                 |  +-------------------------------------------------+  |
                                 |  |       Graviton4 Node (96 Cores, 192GB RAM)     |  |
                                 |  |       kubelet: --cpu-manager-policy=static      |  |
                                 |  |                                                 |  |
                                 |  |   +-----------------------------------------+   |  |
                                 |  |   |           vLLM Pod (Guaranteed QOS)     |   |  |
                                 |  |   |                                         |   |  |
                                 |  |   |  - System Core Isolation (Cores 0-3)   |   |  |
                                 |  |   |  - Pinned Compute Cores  (Cores 4-95)  |   |  |
                                 |  |   |  - OpenMP / ACL Acceleration Engine    |   |  |
                                 |  |   |  - CPU PagedAttention KV Cache Block   |   |  |
                                 |  |   +-----------------------------------------+   |  |
                                 |  +-------------------------------------------------+  |
                                 +-------------------------------------------------------+

Key Infrastructure Pillars

  • Instance Family: c8g.24xlarge (Compute-Optimized Graviton4, 96 vCPUs, 192 GiB RAM) or c8g.metal for full bare-metal control without hypervisor involvement.
  • Karpenter: Dynamically provisions c8g nodes based on custom labels and tolerations.
  • Static CPU Manager Policy: Configured via Kubernetes KubeletConfiguration to isolate workloads and allocate dedicated physical cores to vLLM worker threads.

Step-by-Step Implementation Guide

Step 1: Provisioning Graviton4 Nodes via Karpenter

Define a NodePool and EC2NodeClass for Karpenter targeting AWS Graviton4 instances. Ensure you use the ARM64 Optimized Amazon Linux 2023 or Bottlerocket AMI.

# karpenter-graviton4-nodepool.yaml
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
  name: graviton4-llm-pool
spec:
  template:
    metadata:
      labels:
        workload: vllm-inference
        arch: arm64
    spec:
      nodeClassRef:
        name: graviton4-node-class
      requirements:
        - key: "kubernetes.io/arch"
          operator: In
          values: ["arm64"]
        - key: "karpenter.k8s.aws/instance-family"
          operator: In
          values: ["c8g", "m8g"]
        - key: "karpenter.k8s.aws/instance-size"
          operator: In
          values: ["24xlarge", "metal"]
        - key: "karpenter.sh/capacity-type"
          operator: In
          values: ["on-demand"]
---
apiVersion: karpenter.k8s.aws/v1beta1
kind: EC2NodeClass
metadata:
  name: graviton4-node-class
spec:
  amiFamily: AL2023
  role: "KarpenterNodeRole-EKSCluster"
  subnetSelectorTerms:
    - tags:
        karpenter.sh/discovery: "my-eks-cluster"
  securityGroupSelectorTerms:
    - tags:
        karpenter.sh/discovery: "my-eks-cluster"
  blockDeviceMappings:
    - deviceName: /dev/xvda
      ebs:
        volumeSize: 200Gi
        volumeType: gp3
        iops: 10000
        throughput: 500

Step 2: Building an ARM64-Optimized vLLM Image

Official vLLM Docker images are predominantly compiled for x86_64 and CUDA execution targets. For Graviton4, build a native aarch64 container image using PyTorch CPU backends compiled with OneDNN / ARM Compute Library (ACL) and OpenMP support.

# Dockerfile.vllm-graviton4
FROM arm64v8/ubuntu:22.04 AS builder

ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1

# Install build dependencies
RUN apt-get update && apt-get install -y \
    python3-dev python3-pip git build-essential \
    cmake ninja-build g++ libopenblas-dev \
    libomp-dev && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /workspace

# Install PyTorch ARM64 binaries compiled with CPU vector extensions
RUN pip3 install --no-cache-dir --upgrade pip && \
    pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

# Clone and compile vLLM for CPU execution target
RUN git clone https://github.com/vllm-project/vllm.git && \
    cd vllm && \
    VLLM_TARGET_DEVICE=cpu pip3 install -e .

FROM arm64v8/ubuntu:22.04 AS runner

RUN apt-get update && apt-get install -y \
    python3 python3-pip libomp5 libopenblas-base && \
    rm -rf /var/lib/apt/lists/*

COPY --from=builder /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
COPY --from=builder /workspace/vllm /app/vllm

WORKDIR /app
EXPOSE 8000

ENV OMP_NUM_THREADS=92
ENV VLLM_CPU_KV_CACHE_SPACE=40
ENV VLLM_TARGET_DEVICE=cpu

ENTRYPOINT ["python3", "-m", "vllm.entrypoints.openai.api_server"]

Step 3: Kubernetes Deployment Manifest with CPU Pinning

To unlock maximum throughput on Graviton4, you must avoid thread migrations between vCPUs. Configure your Pod with Guaranteed Quality of Service (QoS) (matching CPU requests and limits with integer values).

This triggers the Kubernetes static CPUManager policy, which assigns dedicated cores to the container.

# vllm-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: vllm-llama3-8b-graviton4
  namespace: vllm-serve
spec:
  replicas: 1
  selector:
    matchLabels:
      app: vllm-llama3-8b
  template:
    metadata:
      labels:
        app: vllm-llama3-8b
    spec:
      nodeSelector:
        workload: vllm-inference
        arch: arm64
      tolerations:
        - key: "workload"
          operator: "Equal"
          value: "vllm-inference"
          effect: "NoSchedule"
      containers:
        - name: vllm-container
          image: your-registry/vllm-graviton4:latest
          args:
            - "--model"
            - "meta-llama/Meta-Llama-3-8B-Instruct"
            - "--max-model-len"
            - "4096"
            - "--block-size"
            - "16"
            - "--port"
            - "8000"
            - "--dtype"
            - "bfloat16"
          env:
            - name: OMP_NUM_THREADS
              value: "92"
            - name: GOMP_CPU_AFFINITY
              value: "0-91"
            - name: VLLM_CPU_KV_CACHE_SPACE
              value: "32" # In Gigabytes
          resources:
            requests:
              cpu: "92"
              memory: "160Gi"
            limits:
              cpu: "92"
              memory: "160Gi"
          ports:
            - containerPort: 8000
          readinessProbe:
            httpGet:
              path: /health
              port: 8000
            initialDelaySeconds: 30
            periodSeconds: 10

Benchmarking Results & Performance Analysis

We executed a standardized benchmark comparing Graviton4 (c8g.24xlarge) against Graviton3 (c7g.16xlarge), an x86 CPU instance (c7i.24xlarge), and an NVIDIA A10G GPU instance (g5.2xlarge).

Benchmark Configuration

  • Model: Meta-Llama-3-8B-Instruct
  • Concurrency Level: 4 Parallel Requests (Simulating mid-tier enterprise workload)
  • Input Token Length: 512 Tokens
  • Output Token Length: 256 Tokens
  • Quantization: Native BF16 for CPUs; FP16/AWQ for GPU comparison.

Latency & Cost Comparison Metrics

| Metric | Graviton3 (c7g.16xlarge) | x86 Sapphire Rapids (c7i.24xlarge) | Graviton4 (c8g.24xlarge) | NVIDIA A10G (g5.2xlarge) | | :--- | :--- | :--- | :--- | :--- | | vCPU / Core Count | 64 Cores | 96 Cores | 96 Cores | 8 vCPUs + 1 A10G | | Time To First Token (TTFT) | 420 ms | 280 ms | 185 ms | 42 ms | | Inter-Token Latency (ITL) | 48 ms/token | 38 ms/token | 22 ms/token | 14 ms/token | | Throughput (Tokens/sec) | 20.8 tok/s | 26.3 tok/s | 45.4 tok/s | 71.4 tok/s | | Hourly On-Demand Cost | $2.30/hr | $4.28/hr | $3.55/hr | $1.21/hr (G5 small) | | Normalized Cost / 1M Tokens | $30.70 | $45.20 | $21.72 | $36.10 |


Key Takeaways from the Data

               INTER-TOKEN LATENCY (Llama-3-8B) - LOWER IS BETTER
   ----------------------------------------------------------------------
   Graviton3 (c7g)   | ######################################## 48ms
   x86 C7i           | ############################## 38ms
   Graviton4 (c8g)   | #---------------+ 22ms  [42% Latency Reduction vs C7i]
   NVIDIA A10G (G5)  | ########### 14ms
   ----------------------------------------------------------------------
  1. 42% Latency Reduction vs x86: Graviton4 reduced Inter-Token Latency from 38ms down to 22ms per token compared to the equivalent Intel x86 (c7i.24xlarge) instance family. This is due to its wide memory bandwidth and zero NUMA-node latency penalty across cores.
  2. Cost-per-Token Winner: While the NVIDIA A10G provides lower absolute latency (14ms), Graviton4 achieves the lowest cost per 1M generated tokens ($21.72 vs $36.10 on A10G). When accounting for idle time, multi-tenant scheduling, and minimum allocation unit costs, Graviton4 delivers significantly better unit economics for non-bursty enterprise applications.
  3. Linear SVE2 Scaling: Utilizing 92 dedicated physical threads with GOMP_CPU_AFFINITY keeps core execution efficiency near 95% without hitting cache-thrashing bottlenecks observed in previous ARM architecture iterations.

Production Pitfalls & Hardening Strategies

Deploying high-performance LLM engines on ARM64 CPUs presents unique challenges. When moving this operational configuration to production, consider these crucial mitigations:

1. Beware of OOM via Cache Space Allocation

vLLM pre-allocates CPU memory space for its KV cache. If VLLM_CPU_KV_CACHE_SPACE is set too high, the Linux OOM Killer will terminate the process during high sequence length context expansions.

  • Solution: Calculate system allocation carefully: $$\text{KV Cache Space} = \text{Total Node RAM} - \text{Model Weight Size} - \text{System Reserved (16GB)}$$

2. Lock Down Execution Thread Pinning

Without explicitly configuring thread pinning, the OpenMP runtime will distribute worker threads randomly across non-adjacent execution blocks, degrading SVE2 cache efficiency.

  • Add these variables to your pod specification:
export OMP_SCHEDULE=STATIC
export OMP_PROC_BIND=TRUE
export GOMP_CPU_AFFINITY="0-91"

3. Handle Hugging Face Concurrent Model Downloads

Downloading large model checkpoints (e.g., 16GB FP16 files) across multiple pod replicas simultaneously can hit EFS/EBS network throttles. Utilize S3 Mountpoint CSIs or provision local instance storage (nvme dynamic disks) for model caching on startup.


Architectural Decision Matrix: GPU vs. Graviton4

When should you run LLM inference on AWS Graviton4 vs traditional GPUs? Use this guidance matrix for your engineering roadmaps:

                  Workload Characteristics Decision Tree
                  
                Is Batch Size > 16 OR Parameter Size > 30B?
                               /          \
                              /            \
                            YES             NO
                            /                \
                           v                  v
                 [ Choose NVIDIA GPUs ]   [ Choose AWS Graviton4 ]
                 - H100 / A100 / L40S     - c8g / m8g EKS Instances
                 - High Concurrent Throughput - Lowest Cost Per Token
                 - Massive Matrix Operations  - SLA Latency P95 < 30ms
  • Select AWS Graviton4 (c8g/m8g) if:

    • You are running 1B to 8B parameter models (Llama-3-8B, Mistral-7B, Qwen2.5-7B).
    • Your service operates with low-to-medium batch sizes (1 to 8).
    • You want to simplify infrastructure operations by avoiding NVIDIA GPU drivers, CUDA version mismatches, and specialized device plugins on Kubernetes.
    • You require standard cloud scaling features without hitting regional GPU quota limits.
  • Select Dedicated GPUs (A100/H100/L4) if:

    • You run large models (>30B parameters) requiring high multi-card tensor parallelism.
    • Your throughput demands require heavy batching (Batch Size >= 32).
    • You run continuous real-time video, audio, or multimodal diffusion architectures.

Summary

By pairing vLLM's CPU execution engine with AWS Graviton4 on Amazon EKS, platform engineering teams can break away from GPU supply constraints without sacrificing operational SLAs.

Graviton4's high DDR5 memory bandwidth and Neoverse V2 SIMD pipelines allow it to execute sub-8B LLM inference with an Inter-Token Latency of 22ms, providing a 40% performance gain over standard x86 CPU instances while delivering superior cost per token metrics.


Resources & Further Reading

Need Help Scaling Cloud Infrastructure?

Partner with Ecstaticloud's boutique engineering architects to implement zero-trust architectures, optimize inference workloads, or eliminate cloud waste.

Talk to an Architect
Deep Dives

Related Technical Insights

View all →