Course contentsShow
← Cloud and Infrastructure
Lesson 71 of 2,9892. Compute FoundationsFree lesson

Instance Size Variations and vCPU Allocation

Understand how instance sizes scale within families and how vCPUs map to physical processors.

Instance Size Variations and vCPU Allocation

What you'll learn: How instance sizes scale within a family and how virtual CPUs relate to actual processor hardware.

Understanding Instance Sizes

You already know that instance families group VMs by workload type (general purpose, compute optimized, etc.). Within each family, instance sizes let you scale resources up or down. Think of it like choosing between a compact car, sedan, or SUV—all from the same manufacturer, but with different capacities.

Instance sizes typically follow a pattern like small, medium, large, xlarge, 2xlarge, 4xlarge, and beyond. Each step up generally doubles the resources: vCPUs, memory, and network capacity.

How vCPU Allocation Works

A vCPU (virtual CPU) represents a portion of a physical processor core. Here's the key relationship:

  • 1 vCPU typically equals one hardware thread (or "hyperthread") on a physical processor
  • Modern processors support simultaneous multithreading, giving 2 threads per physical core
  • So a physical core usually provides 2 vCPUs to the cloud

For example:

  • An instance with 2 vCPUs uses 1 physical core (both threads)
  • An instance with 8 vCPUs uses 4 physical cores
  • A 16xlarge instance might have 64 vCPUs using 32 physical cores

The Scaling Pattern

If you start with a large instance offering 2 vCPUs and 8 GB RAM, the progression typically looks like:

  • xlarge: 4 vCPUs, 16 GB RAM
  • 2xlarge: 8 vCPUs, 32 GB RAM
  • 4xlarge: 16 vCPUs, 64 GB RAM

The ratios remain consistent within a family, making capacity planning predictable.

Key Takeaway: Instance sizes let you scale resources predictably within a family, with each size step typically doubling capacity. vCPUs map to physical processor threads, with 2 vCPUs per physical core being the standard allocation.