When you call the RunInstances operation to create ECS instances, you can specify CPU options for specific instance types. The CPU options of an ECS instance include the number of physical CPU cores and the number of threads per core. You can adjust the number of vCPUs allocated to an ECS instance by changing the number of physical CPU cores and the number of threads per core of the ECS instance based on your application performance requirements. This approach helps you achieve better performance and control costs. This topic lists the values for physical CPU cores and threads per core for each instance type in instance families with high clock speeds. You can use these values when specifying CPU options.
hfg8i instance types
Instance type | Default number of vCPUs | Valid values for the number of physical CPU cores | Default number of threads per core | Valid values for the number of threads per core |
ecs.hfg8i.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfg8i.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfg8i.2xlarge | 8 | 4 | 2 | 1 and 2 |
ecs.hfg8i.3xlarge | 12 | 6 | 2 | 1 and 2 |
ecs.hfg8i.4xlarge | 16 | 8 | 2 | 1 and 2 |
ecs.hfg8i.6xlarge | 24 | 12 | 2 | 1 and 2 |
ecs.hfg8i.8xlarge | 32 | 16 | 2 | 1 and 2 |
ecs.hfg8i.16xlarge | 64 | 32 | 2 | 1 and 2 |
ecs.hfg8i.32xlarge | 128 | 64 | 2 | 1 and 2 |
hfc8i instance types
Instance type | Default number of vCPUs | Valid values for the number of physical CPU cores | Default number of threads per core | Valid values for the number of threads per core |
ecs.hfc8i.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfc8i.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfc8i.2xlarge | 8 | 4 | 2 | 1 and 2 |
ecs.hfc8i.3xlarge | 12 | 6 | 2 | 1 and 2 |
ecs.hfc8i.4xlarge | 16 | 8 | 2 | 1 and 2 |
ecs.hfc8i.6xlarge | 24 | 12 | 2 | 1 and 2 |
ecs.hfc8i.8xlarge | 32 | 16 | 2 | 1 and 2 |
ecs.hfc8i.16xlarge | 64 | 32 | 2 | 1 and 2 |
ecs.hfc8i.32xlarge | 128 | 64 | 2 | 1 and 2 |
hfr8i instance types
Instance type | Default number of vCPUs | Valid values for the number of physical CPU cores | Default number of threads per core | Valid values for the number of threads per core |
ecs.hfr8i.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfr8i.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfr8i.2xlarge | 8 | 4 | 2 | 1 and 2 |
ecs.hfr8i.3xlarge | 12 | 6 | 2 | 1 and 2 |
ecs.hfr8i.4xlarge | 16 | 8 | 2 | 1 and 2 |
ecs.hfr8i.6xlarge | 24 | 12 | 2 | 1 and 2 |
ecs.hfr8i.8xlarge | 32 | 16 | 2 | 1 and 2 |
ecs.hfr8i.16xlarge | 64 | 32 | 2 | 1 and 2 |
ecs.hfr8i.32xlarge | 128 | 64 | 2 | 1 and 2 |
References
After you obtain the valid values for the number of physical CPU cores and the number of threads per core for an instance type, you can change the CPU options of the instance type based on your business requirements. For more information, see Specify CPU options.
Hyper-threading (HT) enables two threads to concurrently run on a single physical CPU core as vCPUs. To create an ECS instance that uses only physical CPU cores, disable HT for the instance. For more information, see Number of threads per core.