Business Challenge
The general-purpose family exists to be adequate at everything. These two exist to be excellent at one thing and are explicit about what they give up to get there. Compute-optimized instances are ideal for compute-intensive and high performance computing (HPC) workloads. Compute-optimized instances offer the highest performance per core and are built on architecture that utilizes features like non-uniform memory access (NUMA) for optimal, reliable, and uniform performance.
And at the other end: the memory-optimized machine family provides the most compute and memory resources of any Compute Engine machine family offering. They are ideal for workloads that require higher memory-to-vCPU ratios than the high-memory machine types in the general-purpose machine series. One family buys cores and frequency, the other buys gigabytes per vCPU.
C4 is not in this family. The compute-optimized page opens by redirecting you: for the C3, C3D, C4, C4D, or C4A machine series, see General-purpose machine family. Five of the C-series machine series live in the family #112 covered.
Which leaves compute-optimized as a four-member club: C2, C2D, H3 and H4D. The C letter tells you, per #111, that the series is positioned for performance within its family. It does not tell you which family that is.
Correct approachTreat family membership as a lookup rather than an inference. If what you want is the documented promise of the highest performance per core, the candidates are C2, C2D and the two H series — and C4's position in general-purpose does not make it slower, it makes it a different trade. #112's note that C4 reaches 288 vCPUs where C2 stops at 60 is the relevant comparison, not the family label.
Both numbers are published and they differ by a factor of two hundred. H4D instances can use the entire host network bandwidth and come with a default network bandwidth rate of up to 200 Gbps. However, the bandwidth from the instance to the internet is limited to 1 Gbps.
It is stated twice, in two places, because it catches people: H4D supports up to 200 Gbps network bandwidth for standard networking. Instance to Internet egress bandwidth is limited to 1 Gbps, and in the limitations list simply outbound data transfer is limited to 1 Gbps.
Correct approachRead the 200 Gbps as an intra-cluster figure, which is what the series is for — H4D instances are single-threaded and are optimized for tightly-coupled applications that scale across multiple nodes, with RDMA-enabled 200 Gbps networking. Stage data in through something else, and note the two-NIC requirement that comes with RDMA: one is fully connected to the Google network and can connect to the Internet while the other is used only for Cloud RDMA communication. This network interface doesn't connect to the Internet.
The M number does not rank capacity. The M1 machine series offers VM instances with up to 4 TB of memory. The M2 machine series offers VM instances with up to 12 TB of memory. The M3 machine series offers VM instances with 1 to 4 TB of memory. The M4 machine series offers VM instances with up to 6 TB of memory.
The letter ranks it instead. The X4 machine series offers bare metal instances with 6 to 32 TB of memory, and the X5 machine series offers bare metal instances with 12 to 48 TB of memory. Above M comes X, and both X series are bare metal only.
Correct approachPick on the memory figure, then check the form factor. A requirement above 12 TB has exactly one shape of answer — an X-series bare metal instance — and that changes the storage and networking assumptions, covered below. Below 12 TB, M2 remains the largest VM in the family despite being the second-oldest series in it.
Architecture
Two families, eleven series, and two orderings that do not follow their numbers.
The four compute-optimized series
C2 instances run on the second generation Intel Xeon Scalable processor (Cascade Lake) which offers up to 3.9 GHz sustained single-core max turbo frequency. C2 offers instances with 4 to 60 vCPUs and 4 GB of memory per vCPU. One ratio, no choice of type word — the series is a single line through the sizing space.
C2D instances run on the third generation AMD EPYC Milan processor and offer up to 3.5 GHz max boost frequency. C2D instances have flexible sizing between 2 to 112 vCPUs and 2 to 8 GB of memory per vCPU. Nearly double C2's core count and a range of ratios rather than one. Its workload list is explicitly broader than "compute-bound": C2D machine series Memory-bound workloads Gaming (AAA game servers) High performance computing (HPC) High performance databases Electronic Design Automation (EDA) Media transcoding.
H3 does something unusual: it has one shape. H3 instances are powered by Titanium and two fourth generation Intel Xeon Scalable processors (code-named Sapphire Rapids) which have an all-core frequency of 3.0 GHz. H3 instances have 88 vCPUs and 352 GB of DDR5 memory. There is no sizing decision to make, which for HPC is a feature — its targets are HPC workloads Computational fluid dynamics Crash safety Genomics Financial modeling General scientific and engineering computing.
And H4D is the newest and the most opinionated. H4D instances are powered by Titanium and fifth generation AMD EPYC Turin processors which have a base frequency of 2.7 GHz and a maximum frequency of 4.1 GHz. H4D instances have 192 cores (vCPUs) and up to 3,024 GB of memory.
H4D: where the vCPU question from #111 gets its clearest answer
#111 ended on the point that a machine type name cannot tell you how many physical cores you have. H4D answers it in the most direct way available: simultaneous multithreading (SMT) is disabled for H4D instances and can't be enabled. There is also no overcommitting to ensure optimal performance consistency. The machine type footnote states the consequence plainly — a vCPU represents an entire core.
It also does not share the host at all: an H4D instance uses all the vCPUs on an entire host server. So the 192 in the name is 192 physical cores on a machine nobody else is using, which is a different product from 192 vCPUs on a shared SMT host even though the digit is identical.
The published shapes are three ratios at one size: h4d-standard-192 192 720 Not supported Up to 200 Gbps, h4d-highmem-192 192 1,488 Not supported Up to 200 Gbps, and h4d-megamem-192 192 3,024 Not supported Up to 200 Gbps. The vCPU count never varies; only the memory does.
What you give up for that consistency is a long list, and it is worth reading before committing a workload. The H4D machine types are only available in a predefined machine type. Custom machine types aren't available. You can't use GPUs with H4D instances. You can't create machine images from H4D instances. You can't share disks between instances, either in multi-writer mode or read-only mode. Live migration isn't supported for H4D instances. Storage is bounded too: Hyperdisk Balanced performance is capped at 15,000 IOPS and 240 MBps throughput, and the number of Hyperdisk volumes can't exceed 128 per VM. The maximum total disk capacity across all disks can't exceed 512 TiB.
No live migration is the one with operational teeth. It means host maintenance is visible to the workload, which for a tightly-coupled multi-node job is the difference between a slow period and a failed run. Against that, the provisioning model is flexible: H4D instances are available on-demand, or with one- and three-year committed use discounts (CUDs), and you can use Dynamic Workload Scheduler for scheduled or immediate cluster deployment, making H4D ideal for HPC bursty workload needs.
Networking has a hard requirement as well: H4D instances require gVNIC network interfaces.
The memory-optimized ladder
Seven series, and the ordering is by letter then by nothing predictable. The M series reads 4, 12, 4, 6 as you walk M1 to M4, with the M4N machine series offers VM instances with up to 6 TB of memory alongside M4. Then the X series sits above all of them, bare metal only, at 6–32 TB for X4 and 12–48 TB for X5.
What they share is an economic argument rather than a performance one: the X5, X4, M4N, M4, M3, M2, and M1 machine series offer the lowest cost per GB of memory on Compute Engine, making them a great choice for workloads that utilize higher memory configurations with low compute resources requirements. The phrase "with low compute resources requirements" is the qualifier that decides whether this family is right — it is cheap per gigabyte and not cheap per core.
The canonical workload is named repeatedly: these machine series are well-suited for large in-memory databases such as SAP HANA, as well as online analytical processing (OLAP) and in-memory data analytics workloads, with M2 machine series Large in-memory databases such as SAP HANA and X5 purpose-built for ultra-large SAP HANA scale-up workloads and high performance computing.
One series in the family is aimed somewhere newer. M4N machine series High-performance vector databases Retrieval-augmented generation (RAG) data layers Massive in-memory context caching Real-time semantic search. That is the same hardware argument — lots of memory, modest compute — pointed at retrieval rather than at SAP.
Within the M series the ratio words from #111 do real work, and M4N is where you can see hypermem and ultramem side by side: m4n-hypermem-2 2 31 against m4n-ultramem-28 28 744, against documented bands of megamem — from 12 to 15 GB memory per vCPU; typically, 14 GB memory per vCPU and ultramem — from 24 to 31 GB memory per vCPU. On the M4N tables the usual threading footnote still applies: each virtual CPU (vCPU) is implemented as a single hardware multithread, and two vCPUs share each physical CPU core by default.
Why This Architecture Holds Up
X5 is the top of Compute Engine, and reaching it means giving up defaults that hold everywhere else. These machine types provide you with the capability to provision bare metal instances with up to 2,064 vCPUs and up to 48 TB of RAM, and it supports 688 to 2,064 vCPUs — so even the smallest X5 is larger than most people's largest VM.
Storage narrows to one interface and one product: exclusively supports NVMe interfaces and Google Cloud Hyperdisk (Balanced, Extreme, Throughput, and ML). Standard Persistent Disks and local SSD disks are not supported, restated as X5 instances use only the NVMe disk interface for storage, and only use Google Cloud Hyperdisk storage.
Networking narrows further, and this is the one most likely to surprise: VirtIO-net, gVNIC, and SCSI interfaces are not supported. gVNIC is the interface H4D requires; on X5 it is unavailable. Instead the series uses the Intel IDPF driver, supporting up to 200 Gbps standard bandwidth. Two machine series in adjacent families, with mutually exclusive network driver requirements.
In exchange, bare metal hands over the machine. X5 bare metal instances give you access to the raw compute resources of the host server, and with it a set of fixed-function hardware: includes access to Intel hardware accelerators: QAT, DLB, DSA, and IAA, counted as Intel QuickAssist Technology (QAT): 1 accelerator Intel Dynamic Load Balancer (DLB): 1 accelerator Intel Data Streaming Accelerator (DSA): up to 4 accelerators Intel In-Memory Analytics Accelerator (IAA): up to 4 accelerators. Those are addressed directly by software that knows about them, which is a different programming model from asking a hypervisor for resources.
The discounts split by series age, not by size
This is the part a cost model gets wrong quietly. Sustained use discounts (SUDs): M2 and M1 offer savings of up to 30% with sustained use discounts. Two series out of seven, and they are the two oldest. Everything newer in the family — M3, M4, M4N, X4, X5 — accrues no SUDs at all.
That is the same pattern #112 found on E2, which doesn't offer sustained use discounts (SUDs) while N2 does. Taken together it reads as a direction of travel rather than a coincidence: sustained use discounts are a property of older series, and newer ones expect you to commit instead.
Committing pays well. X5, X4, M4N, M4, M3, M2, and M1 are eligible for resource-based committed use discounts (CUDs), that can bring savings of greater than 60% in exchange for 3-year commitments. The flexible variant is narrower and slightly less generous: compute flexible CUDs: M4N, M4, M3, M2, and M1 are eligible for compute flexible committed use discounts that can bring savings of 54% or 63% in exchange for 3-year commitments. M4N also offers 1-year compute flexible CUDs.
Two things follow. The X series is excluded from compute flexible CUDs, so the largest machines can only be discounted against their own resources rather than against a spend commitment you can move. And M4N is the only series in the family offering a one-year flexible commitment — relevant if the workload is a vector database whose shape you expect to change before three years are out.
For completeness against the family-level descriptions: the machine families guide summarises these two as compute-optimized — designed for high performance computing (HPC) solutions and compute-intensive workloads; offers high performance per core on Compute Engine and memory-optimized — ideal for memory-intensive workloads, offering more memory per core than other machine families, with up to 12 TB of memory. That "up to 12 TB" is the M-series VM ceiling; the X series bare metal figures are four times higher, which is a good illustration of why the per-family summary is a starting point rather than an answer.
Key Architecture Decisions
| Situation | Decision | Because |
|---|---|---|
| Looking for "compute-optimised" | C2, C2D, H3, H4D — not C3 or C4 | The page redirects C3, C3D, C4, C4D and C4A to general-purpose. |
| Uploading data to an H4D cluster | Budget for 1 Gbps, not 200 | Internet egress is limited to 1 Gbps regardless of host bandwidth. |
| Needing guaranteed whole cores | H4D — SMT is off and cannot be turned on | A vCPU represents an entire core, with no overcommitting. |
| Tightly-coupled multi-node HPC | H4D with Cloud RDMA and two vNICs | The RDMA interface has no internet connectivity by design. |
| Workload that cannot tolerate host maintenance | Not H4D | Live migration isn't supported on that series. |
| Needing a machine image of the host | Not H4D | You can't create machine images from H4D instances. |
| Fixed-size HPC with no sizing decision | H3 — one shape, 88 vCPUs | The series publishes a single configuration. |
| Largest memory in a VM, not metal | M2, at up to 12 TB | M4 and M4N stop at 6 TB; M1 and M3 at 4 TB. |
| Requirement above 12 TB of memory | X4 or X5 bare metal | Only the X series reaches 32 TB and 48 TB. |
| Migrating to X5 from Persistent Disk | Convert to Hyperdisk first | Standard Persistent Disks and Local SSD are unsupported. |
| An image pinned to gVNIC | Will not boot usefully on X5 | X5 supports neither gVNIC nor VirtIO-net; it uses Intel IDPF. |
| Cost model relying on sustained use discounts | Re-check: only M2 and M1 earn them | Up to 30% on those two series, nothing on the newer five. |
| Commitment horizon shorter than three years | M4N is the only flexible one-year option | Every other series in the family is 3-year for flexible CUDs. |
| Vector database or RAG data layer | M4N, per Google's own mapping | Its workload list names exactly those cases. |
The one to look at today
Two checks, both of which take a query rather than a benchmark. First, list anything you believe is "compute-optimised" and confirm which family its series is actually documented in — if it is a C3 or C4 shape, it is general-purpose, and the capacity and feature assumptions from #112 apply instead. Second, for any memory-optimized series in use, check whether your cost model expects sustained use discounts: on M3, M4, M4N, X4 and X5 they do not exist, and a forecast built on them is overstating savings on exactly the machines where a gigabyte costs most in absolute terms.
Closing Thought
Three posts into the compute phase, a consistent shape has appeared. #111 said a machine type name is a readable grammar. #112 said the grammar's vocabulary shifts between series in one family. This post says the taxonomy above it does not partition the way the names imply: the C letter spans two families, the M number ranks nothing, and the family-level summary quotes a ceiling four times lower than the family's actual maximum.
None of which makes the naming bad. It makes it a map rather than the territory — precise about direction, approximate about distance. The operational habit that follows is the one the networking phase arrived at from the other end: when a label and a table disagree, the table is the product. The label was only ever a way to find it.
#114 takes custom machine types and extended memory — the escape hatch #111 flagged as narrower than it looks, available on the N and E series only and carrying a documented premium, where the interesting use turns out to be software licensing rather than capacity.
Official Google Cloud Reference
- Compute-optimized machine family
- Memory-optimized machine family
- Machine families resource and comparison guide
- General-purpose machine family
- Storage-optimized machine family
- Network-optimized machine family
- Accelerator-optimized machine family
- CPU platforms
- Create a VM with a custom machine type
- Local SSD disks
- Machine images
- Change the machine type of a stopped instance
Comments