View CPU threads and cores for an Amazon EC2 instance (original) (raw)
You can view the CPU options for an existing instance by describing the instance.
Console
To view the CPU options for an instance
- Open the Amazon EC2 console athttps://console.aws.amazon.com/ec2/.
- In the left navigation pane, choose Instances and select the instance.
- On the Details tab, under Host and placement group, find Number of vCPUs.
AWS CLI
To view the CPU options for an instance
Use the describe-instances command.
aws ec2 describe-instances \
--instance-ids i-1234567890abcdef0 \
--query Reservations[].Instances[].CpuOptions
The following is example output. The CoreCount
field indicates the number of cores for the instance. The ThreadsPerCore
field indicates the number of threads per core.
[
{
"CoreCount": 24,
"ThreadsPerCore": 2
},
]
PowerShell
To view the CPU options for an instance
Use the Get-EC2Instance cmdlet.
(Get-EC2Instance `
-InstanceId 'i-1234567890abcdef0').Instances.CpuOptions
The following is example output.
AmdSevSnp CoreCount ThreadsPerCore
--------- --------- --------------
24 2
Alternatively, to view CPU information, you can connect to your instance and use one of the following system tools:
- Windows
Task Manager
on your Windows instance - The lscpu command on your Linux instance
You can use AWS Config to record, assess, audit, and evaluate configuration changes for instances, including terminated instances. For more information, see Getting Started with AWS Config in the_AWS Config Developer Guide_.
Specify CPU options
AMD SEV-SNP
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.