Machine Types

A machine type specifies a particular collection of virtualized hardware resources available to a virtual machine (VM) instance, including the system memory size, virtual CPU (vCPU) count, and maximum persistent disk capability. For the n1 series of machine types, a vCPU is implemented as a single hardware hyper-thread on one of the available CPU Platforms.

This guide describes the available machine types. To create a VM instance, see Creating and Starting an Instance. For the prices of machine types, see Machine type pricing.

Predefined machine types

Predefined machine types have a fixed collection of resources. To define your own machine type, see Custom machine types.

Predefined machine types are managed by Google Compute Engine and come in four classes as discussed in the following sections. To view a list of all available machine types, run the following Google Cloud Platform SDK command:

gcloud compute machine-types list

Standard machine types

Standard machine types are suitable for tasks that have a balance of CPU and memory needs. Standard machine types have 3.75 GB of system memory per vCPU.

Machine name Description vCPUs1 System Memory (GB) Max number of persistent disks (PDs)2 Max total PD size (TB)
n1-standard-1 Standard machine type with 1 vCPU and 3.75 GB of system memory. 1 3.75 16 (32 in Beta) 64
n1-standard-2 Standard machine type with 2 vCPUs and 7.5 GB of system memory. 2 7.50 16 (64 in Beta) 64
n1-standard-4 Standard machine type with 4 vCPUs and 15 GB of system memory. 4 15 16 (64 in Beta) 64
n1-standard-8 Standard machine type with 8 vCPUs and 30 GB of system memory. 8 30 16 (128 in Beta) 64
n1-standard-16 Standard machine type with 16 vCPUs and 60 GB of system memory. 16 60 16 (128 in Beta) 64
n1-standard-32 Standard machine type with 32 vCPUs and 120 GB of system memory. 32 120 16 (128 in Beta) 64
n1-standard-64 Standard machine type with 64 vCPUs and 240 GB of system memory. 64 240 16 (128 in Beta) 64
n1-standard-96 Standard machine type with 96 vCPUs and 360 GB of system memory. 96 360 16 (128 in Beta) 64

1For the n1 series of machine types, a vCPU is implemented as a single hardware hyper-thread on one of the available CPU Platforms.

2Persistent disk usage is charged separately from machine type pricing.

High-memory machine types

High-memory machine types are ideal for tasks that require more system memory relative to vCPUs. High-memory machine types have 6.50GB of system memory per vCPU.

Machine Name Description vCPUs1 System Memory (GB) Max number of persistent disks (PDs)2 Max total PD size (TB)
n1-highmem-2 High memory machine type with 2 vCPUs and 13 GB of system memory. 2 13 16 (64 in Beta) 64
n1-highmem-4 High memory machine type with 4 vCPUs, and 26 GB of system memory. 4 26 16 (64 in Beta) 64
n1-highmem-8 High memory machine type with 8 vCPUs and 52 GB of system memory. 8 52 16 (128 in Beta) 64
n1-highmem-16 High memory machine type with 16 vCPUs and 104 GB of system memory. 16 104 16 (128 in Beta) 64
n1-highmem-32 High memory machine type with 32 vCPUs and 208 GB of system memory. 32 208 16 (128 in Beta) 64
n1-highmem-64 High memory machine type with 64 vCPUs and 416 GB of system memory. 64 416 16 (128 in Beta) 64
n1-highmem-96 High memory machine type with 96 vCPUs and 624 GB of system memory. 96 624 16 (128 in Beta) 64

1For the n1 series of machine types, a vCPU is implemented as a single hardware hyper-thread on one of the available CPU Platforms.

2Persistent disk usage is charged separately from machine type pricing.

High-CPU machine types

High-CPU machine types are ideal for tasks that require more vCPUs relative to system memory. High-CPU machine types have 0.90 GB of system memory per vCPU.

Machine name Description vCPUs1 System Memory (GB) Max number of persistent disks (PDs)2 Max total PD size (TB)
n1-highcpu-2 High-CPU machine type with 2 vCPUs and 1.80 GB of system memory. 2 1.80 16 (64 in Beta) 64
n1-highcpu-4 High-CPU machine type with 4 vCPUs and 3.60 GB of system memory. 4 3.60 16 (64 in Beta) 64
n1-highcpu-8 High-CPU machine type with 8 vCPUs and 7.20 GB of system memory. 8 7.20 16 (128 in Beta) 64
n1-highcpu-16 High-CPU machine type with 16 vCPUs and 14.4 GB of system memory. 16 14.4 16 (128 in Beta) 64
n1-highcpu-32 High-CPU machine type with 32 vCPUs and 28.8 GB of system memory. 32 28.8 16 (128 in Beta) 64
n1-highcpu-64 High-CPU machine type with 64 vCPUs and 57.6 GB of system memory. 64 57.6 16 (128 in Beta) 64
n1-highcpu-96 High-CPU machine type with 96 vCPUs and 86.4 GB of system memory. 96 86.4 16 (128 in Beta) 64

1For the n1 series of machine types, a vCPU is implemented as a single hardware hyper-thread on one of the available CPU Platforms.

2Persistent disk usage is charged separately from machine type pricing.

Shared-core machine types

Shared-core machine types provide one vCPU 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.

f1-micro Bursting

f1-micro machine types offer bursting capabilities that allow instances to use additional physical CPU for short periods of time. Bursting happens automatically when your instance requires more physical CPU than originally allocated. During these spikes, your instance will opportunistically take advantage of available physical CPU in bursts. Note that bursts are not permanent and are only possible periodically.

Machine name Description vCPUs System Memory (GB) Max number of persistent disks (PDs)1 Max total PD size (TB)
f1-micro Micro machine type with 0.2 vCPU, 0.60 GB of system memory, backed by a shared physical core. 0.2 0.60 4 (16 in Beta) 3
g1-small Shared-core machine type with 0.5 vCPU, 1.70 GB of system memory, backed by a shared physical core. 0.5 1.70 4 (16 in Beta) 3

1Persistent disk usage is charged separately from machine type pricing.

Memory-optimized machine types

Memory-optimized machine types are ideal for tasks that require intensive use of memory with higher memory to vCPU ratios than high-memory machine types. These machines types are perfectly suited for in-memory databases and in-memory analytics, such as SAP Hana and business warehousing (BW) workloads, genomics analysis, SQL analysis services, and more. Memory-optimized machine types have greater than 14 GB of system memory per vCPU.

See Regions and Zones to find where memory-optimized machine types are available.

Machine name Description vCPUs System Memory (GB) Max number of persistent disks (PDs)1 Max total PD size (TB) Local SSD
n1-ultramem-40 Memory-optimized machine type with 40 vCPUs and 961GB of system memory. 40 961 16 (128 in Beta) 64 No
n1-ultramem-80 Memory-optimized machine type with 80 vCPUs and 1.87 TB of system memory. 80 1922 16 (128 in Beta) 64 No
n1-megamem-96 Memory-optimized machine type with 96 vCPUs and 1.4 TB of system memory. 96 1433.6 16 (128 in Beta) 64 Yes
n1-ultramem-160 Memory-optimized machine type with 160 vCPUs and 3.75 TB of system memory. 160 3844 16 (128 in Beta) 64 No

1For the n1 series of machine types, a vCPU is implemented as a single hardware hyper-thread on one of the available CPU Platforms.

2Persistent disk usage is charged separately from machine type pricing.

Custom machine types

If none of the predefined machine types match your needs, you can independently specify the number of vCPUs and the amount of system memory for your instance.

Custom machine types are ideal for the following scenarios:

  • Workloads that are not a good fit for the predefined machine types that are available to you.
  • Workloads that require more processing power or more system memory, but don't need all of the upgrades that are provided by the next larger predefined machine type.

It costs slightly more to use a custom machine type than an equivalent predefined machine type, and there are still some limitations in the amount of system memory and vCPUs you can select. Read Creating an Instance with a Custom Machine Type for all the details.

GPUs and machine types

You can attach GPUs only to instances with a predefined machine type or custom machine type that you are able to create in a zone. GPUs are not supported on shared-core machine types or memory-optimized machine types.

Instances with lower numbers of GPUs are limited to a maximum number of vCPUs. In general, a higher number of GPUs allows you to create instances with a higher number of vCPUs and system memory. See GPUs on Compute Engine for details.

What's next

Oliko tästä sivusta apua? Kerro mielipiteesi

Palautteen aihe:

Tämä sivu
Compute Engine Documentation