CPU options for Amazon EC2 instances (original) (raw)
Many Amazon EC2 instances support simultaneous multithreading (SMT), which enables multiple threads to run concurrently on a single CPU core. Each thread is represented as a virtual CPU (vCPU) on the instance. An instance has a default number of CPU cores, which varies according to instance type. For example, an m5.xlarge
instance type has two CPU cores and two threads per core by default—four vCPUs in total.
Note
Each vCPU is a thread of a CPU core, except for T2 instances, M7a instances, Apple silicon Mac instances, and 64-bit ARM platforms such as instances powered by AWS Graviton processors.
In most cases, there is an Amazon EC2 instance type that has a combination of memory and number of vCPUs to suit your workloads. However, you can specify the following CPU options both during and after instance launch to optimize your instance for specific workloads or business needs:
- Number of CPU cores: You can customize the number of CPU cores for the instance. You might do this to potentially optimize the licensing costs of your software with an instance that has sufficient amounts of RAM for memory-intensive workloads but fewer CPU cores.
- Threads per core: You can disable SMT by specifying a single thread per CPU core. You might do this for certain workloads, such as high performance computing (HPC) workloads.
Pricing
There is no additional or reduced charge for specifying CPU options. You're charged the same as instances that are launched with the default CPU options.
Contents
- Rules for specifying CPU options for an Amazon EC2 instance
- Supported CPU options for Amazon EC2 instance types
- Specify CPU options for an Amazon EC2 instance
- View CPU threads and cores for an Amazon EC2 instance
Enable EBS optimization
Rules for specifying CPU options for an Amazon EC2 instance
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.