When you call the RunInstances operation to create Elastic Compute Service (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 way, you can gain better performance and control costs. This topic lists the values related to the number of physical CPU cores and the number of threads per core of each instance type in instance families with high clock speeds. You can use these values when you specify CPU options.
Values related to the number of physical CPU cores and the number of threads per core of hfg7 instance types
Instance type | Default value for the number of vCPUs | Valid values for the number of physical CPU cores | Default value for the number of threads per core | Valid values for the number of threads per core |
ecs.hfg7.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfg7.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfg7.2xlarge | 8 | 2 and 4 | 2 | 1 and 2 |
ecs.hfg7.3xlarge | 12 | 2, 4, and 6 | 2 | 1 and 2 |
ecs.hfg7.4xlarge | 16 | 2, 4, 6, and 8 | 2 | 1 and 2 |
ecs.hfg7.6xlarge | 24 | 2, 4, 6, 8, 10, and 12 | 2 | 1 and 2 |
ecs.hfg7.8xlarge | 32 | 2, 4, 6, 8, 10, 12, 14, and 16 | 2 | 1 and 2 |
ecs.hfg7.12xlarge | 48 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, and 24 | 2 | 1 and 2 |
ecs.hfg7.24xlarge | 96 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, and 48 | 2 | 1 and 2 |
Values related to the number of physical CPU cores and the number of threads per core of hfc7 instance types
Instance type | Default value for the number of vCPUs | Valid values for the number of physical CPU cores | Default value for the number of threads per core | Valid values for the number of threads per core |
ecs.hfc7.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfc7.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfc7.2xlarge | 8 | 2 and 4 | 2 | 1 and 2 |
ecs.hfc7.3xlarge | 12 | 2, 4, and 6 | 2 | 1 and 2 |
ecs.hfc7.4xlarge | 16 | 2, 4, 6, and 8 | 2 | 1 and 2 |
ecs.hfc7.6xlarge | 24 | 2, 4, 6, 8, 10, and 12 | 2 | 1 and 2 |
ecs.hfc7.8xlarge | 32 | 2, 4, 6, 8, 10, 12, 14, and 16 | 2 | 1 and 2 |
ecs.hfc7.12xlarge | 48 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, and 24 | 2 | 1 and 2 |
ecs.hfc7.24xlarge | 96 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, and 48 | 2 | 1 and 2 |
Values related to the number of physical CPU cores and the number of threads per core of hfr7 instance types
Instance type | Default value for the number of vCPUs | Valid values for the number of physical CPU cores | Default value for the number of threads per core | Valid values for the number of threads per core |
ecs.hfr7.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfr7.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfr7.2xlarge | 8 | 2 and 4 | 2 | 1 and 2 |
ecs.hfr7.3xlarge | 12 | 2, 4, and 6 | 2 | 1 and 2 |
ecs.hfr7.4xlarge | 16 | 2, 4, 6, and 8 | 2 | 1 and 2 |
ecs.hfr7.6xlarge | 24 | 2, 4, 6, 8, 10, and 12 | 2 | 1 and 2 |
ecs.hfr7.8xlarge | 32 | 2, 4, 6, 8, 10, 12, 14, and 16 | 2 | 1 and 2 |
ecs.hfr7.12xlarge | 48 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, and 24 | 2 | 1 and 2 |
ecs.hfr7.24xlarge | 96 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, and 48 | 2 | 1 and 2 |
Values related to the number of physical CPU cores and the number of threads per core of hfg6 instance types
Instance type | Default value for the number of vCPUs | Valid values for the number of physical CPU cores | Default value for the number of threads per core | Valid values for the number of threads per core |
ecs.hfg6.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfg6.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfg6.2xlarge | 8 | 2 and 4 | 2 | 1 and 2 |
ecs.hfg6.3xlarge | 12 | 2, 4, and 6 | 2 | 1 and 2 |
ecs.hfg6.4xlarge | 16 | 2, 4, 6, and 8 | 2 | 1 and 2 |
ecs.hfg6.6xlarge | 24 | 2, 4, 6, 8, 10, and 12 | 2 | 1 and 2 |
ecs.hfg6.8xlarge | 32 | 2, 4, 6, 8, 10, 12, 14, and 16 | 2 | 1 and 2 |
ecs.hfg6.10xlarge | 40 | 2, 4, 6, 8, 10, 12, 14, 16, 18, and 20 | 2 | 1 and 2 |
ecs.hfg6.16xlarge | 64 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, and 32 | 2 | 1 and 2 |
ecs.hfg6.20xlarge | 80 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, and 40 | 2 | 1 and 2 |
Values related to the number of physical CPU cores and the number of threads per core of hfc6 instance types
Instance type | Default value for the number of vCPUs | Valid values for the number of physical CPU cores | Default value for the number of threads per core | Valid values for the number of threads per core |
ecs.hfc6.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfc6.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfc6.2xlarge | 8 | 2 and 4 | 2 | 1 and 2 |
ecs.hfc6.3xlarge | 12 | 2, 4, and 6 | 2 | 1 and 2 |
ecs.hfc6.4xlarge | 16 | 2, 4, 6, and 8 | 2 | 1 and 2 |
ecs.hfc6.6xlarge | 24 | 2, 4, 6, 8, 10, and 12 | 2 | 1 and 2 |
ecs.hfc6.8xlarge | 32 | 2, 4, 6, 8, 10, 12, 14, and 16 | 2 | 1 and 2 |
ecs.hfc6.10xlarge | 40 | 2, 4, 6, 8, 10, 12, 14, 16, 18, and 20 | 2 | 1 and 2 |
ecs.hfc6.16xlarge | 64 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, and 32 | 2 | 1 and 2 |
ecs.hfc6.20xlarge | 80 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, and 40 | 2 | 1 and 2 |
Values related to the number of physical CPU cores and the number of threads per core of hfr6 instance types
Instance type | Default value for the number of vCPUs | Valid values for the number of physical CPU cores | Default value for the number of threads per core | Valid values for the number of threads per core |
ecs.hfr6.large | 2 | 1 | 2 | 1 and 2 |
ecs.hfr6.xlarge | 4 | 2 | 2 | 1 and 2 |
ecs.hfr6.2xlarge | 8 | 2 and 4 | 2 | 1 and 2 |
ecs.hfr6.3xlarge | 12 | 2, 4, and 6 | 2 | 1 and 2 |
ecs.hfr6.4xlarge | 16 | 2, 4, 6, and 8 | 2 | 1 and 2 |
ecs.hfr6.6xlarge | 24 | 2, 4, 6, 8, 10, and 12 | 2 | 1 and 2 |
ecs.hfr6.8xlarge | 32 | 2, 4, 6, 8, 10, 12, 14, and 16 | 2 | 1 and 2 |
ecs.hfr6.10xlarge | 40 | 2, 4, 6, 8, 10, 12, 14, 16, 18, and 20 | 2 | 1 and 2 |
ecs.hfr6.16xlarge | 64 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, and 32 | 2 | 1 and 2 |
ecs.hfr6.20xlarge | 80 | 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, and 40 | 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 of an instance type, you can change the CPU options of the instance type based on your business requirements. For more information, see the Specify CPU options section in the "Specify and view CPU options" topic.
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, you need to only disable HT for the instance. For more information, see the Number of threads per core section in the "Specify and view CPU options" topic.