Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is vCPU in AWS

In AWS service, I see a section in ECS Fargate for vCPU which is choosable from 0.25 to N value,
I see lots of documentation on How to configure these vCPU value
but I didn't see any doc on the difference between the values of vCPU

Example :

what is the difference between 0.25, 0.5 and 1 vCPU value ? How does it differ by performance and number of threads?

like image 867
Harry Avatar asked Aug 26 '19 05:08

Harry


People also ask

What are vCPUs in cloud computing?

Cloud server providers will often advertise their instances as having a certain number of “vCPUs,” short for virtual CPU. How much performance can you expect from this compared to a regular CPU? It’s important to understand the distinction between a processing thread and CPU core.

How do I request a vCPU increase for my AWS instance?

Choose the AWS Region where you want to request a vCPU increase. (Optional) To view the instances that you already have running, from the EC2 Dashboard, under Resources, choose Running instances.

What is a “vCPU”?

What is a “vCPU,” and How Much Performance Is It? What is a “vCPU,” and How Much Performance Is It? Cloud server providers will often advertise their instances as having a certain number of “vCPUs,” short for virtual CPU.

What is a 4 vCPU server?

Just remember that a 4 vCPU instance is not a 4 core server—it’s really emulating a 2 core server, running 4 processing threads. The processing speed of the vCPU will depend more on the actual hardware it’s running on. Most server CPUs will be Intel Xeons, as they make up the majority of the market.


2 Answers

what is the difference between 0.25, 0.5, and 1 vCPU value?

It means that you're using a shared CPU where you will get only the amount you have selected as dedicated just like in virtual environments and virtual machines. So, 0.25 vCPU means that you will get dedicated 25% of 1 vCPU.

How does it differ by performance and number of threads?

AWS Fargate is a launch mode for AWS ECS which is based on AWS EC2, so whatever the vCPU and threads mean in AWS EC2, it is going to mean the same in AWS ECS.

A similar question has been asked before so you can check out the answer to that question here: What vCPUs in Fargate really mean?

like image 174
Abdullah Khawer Avatar answered Sep 18 '22 01:09

Abdullah Khawer


Because AWS ECS is based on AWS EC2, you can convert these vCPU information into ECU information:

1 EC2 Compute Unit (ECU) is similar in power to a ~1.0-1.2 GHz 2007 Intel Xeon processor. (source)

1 EC2 vCPU corresponds on average to 4 ECU. (EC2 Tarification)

Hope it can help you to choose!

like image 27
k0nezzstark Avatar answered Sep 17 '22 01:09

k0nezzstark