Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between 1 Shared vCPU and 1 vCPU

In GCP, what is the difference between an f1-micro instance (1 shared vCPU) vs. a n1-standard-1 (1 vCPU)? Specifically, what is the difference between a shared vCPU and a vCPU?

like image 704
John G Avatar asked Jun 30 '16 21:06

John G


People also ask

What is the difference between N1 and N2 GCP?

For example, the N1 series within the general-purpose machine family is the older version of the N2 series. Generally, generations of a machine series use a higher number to describe the newer generation. For example, the N2 series is the newer generation of the N1 series.

What is vCPUs in GCP?

In GCP, these are called vCPUs or virtual CPUs. A vCPU is equivalent to one hyperthread core. Therefore, if you have a single-core hyperthreaded CPU on premises, that would essentially be two virtual CPUs to one physical core. So always keep that in mind as oftentimes people will immediately do a test.


1 Answers

Shared-core machine types

Shared-core machine types provide one virtual CPU that is allowed to run for a portion of the time on a single hardware hyper-thread on the host CPU running your instance. Shared-core instances can be more cost-effective for running small, non-resource intensive applications than standard, high- memory or high-CPU machine types.

Source: https://cloud.google.com/compute/docs/machine-types#sharedcore

For your information, with one shared vCPU, Google doesn't guarantee it.

like image 115
mlazzje Avatar answered Nov 01 '22 04:11

mlazzje