Cloud VM Types & Machine Classes: How to Choose the Right Fit

Batuhan Esirger
Batuhan Esirger
Co-Founder & Head of Business Development
Updated Nov 17, 202612 min read
Written for: Developers, CTOs, and small infrastructure teams comparing cloud VM types, VM classes, General Purpose, CPU-Optimized, and memory-forward resource profiles.
VM Machine ClassesGeneral Purpose VMsCPU-Optimized VMsHiMem VMsCloud Infrastructure
Last reviewed:
Guide
Cloud VM Types & Machine Classes: How to Choose the Right Fit
rafftechnologies.com/learn
On this page

Key Takeaways

Raff has three Linux VM classes. Cost-Optimized starts at $9.99/month for 2 vCPU / 4 GB / 40 GB, uses previous-generation DDR4 hosts with node-local NVMe and a 1 Gbps public port; confirm its CPU allocation policy for the chosen plan. General Purpose has shared vCPU and 3 Gbps public ports, while CPU-Optimized has dedicated vCPU and 3 Gbps public ports. Both latter classes are eligible for Raff's 99.90% monthly SLA. Choose class by availability needs and measured resource constraints, then size within the class; verify prices on /pricing.

Choose General Purpose, CPU-Optimized or Cost-Optimized servers on Raff.

  1. 1Pick a Linux imageUbuntu, Debian and more, with your SSH key added.
  2. 2Choose a sizeFrom $4.99 a month. Resize when your app grows.
  3. 3Connect over SSHYour server is up in about 55 seconds.

Ubuntu, Debian and other Linux distributions with full root and SSH access, up and running in about 55 seconds.

Cloud VM types and machine classes describe how a virtual machine combines CPU allocation, vCPU count, memory, and storage for different workload patterns.

For most small teams, the useful decision is not “Which VM type is best?” It is which resource becomes limiting first, and whether that resource needs predictable allocation. A balanced web application, a CPU-bound worker, and a memory-heavy database can all use similar vCPU counts while needing very different VM shapes.

Raff offers three Linux VM families: Cost-Optimized for budget-driven workloads on previous-generation infrastructure, General Purpose for shared-vCPU balanced workloads, and CPU-Optimized for dedicated compute when sustained CPU behavior matters. Windows is a separate VM family. Memory-forward General Purpose shapes provide more RAM per vCPU when RAM is the main constraint.

Current October 2026 reference pricing starts at $9.99/month for Cost-Optimized (2 vCPU / 4 GB / 40 GB), $4.99/month for General Purpose and $15.99/month for CPU-Optimized. The latter two families differ by shared versus dedicated CPU allocation; Cost-Optimized also differs in storage locality, 1 Gbps networking and SLA coverage. Compare complete configurations, not just monthly price.

Cloud VM types differ by resource shape and CPU allocation

A VM type or machine class is a resource model, not a quality grade.

Cloud providers group virtual machines because workloads create pressure in different places. Some applications need balanced CPU and memory. Others need predictable CPU time for long-running compute. Databases, caches, and multi-service applications may need more RAM per vCPU. Storage-sensitive workloads may run out of capacity before CPU becomes important.

The main dimensions are:

  • CPU allocation: shared or dedicated compute;
  • vCPU count: available parallel compute;
  • memory ratio: RAM available relative to vCPU;
  • storage capacity: local persistent storage available to the VM;
  • storage behavior: read/write intensity and durable data growth;
  • network behavior: throughput and transfer requirements;
  • operational role: whether one VM hosts one service or several competing services.

Two 4 vCPU machines can therefore be very different choices. One may provide shared CPU with a balanced memory ratio, while another reserves compute for sustained CPU work. A third configuration may keep fewer vCPUs but provide more RAM.

The class name should summarize the resource trade-off. It should not replace workload measurement.

Raff Linux VM classes at a glance

Linux VM classCPU-class considerationBest fitMaterial difference
Cost-OptimizedConfirm the current CPU allocation policy for the selected plan; do not infer a dedicated-core guaranteeDev/test, side projects and batch jobsPrevious-generation DDR4, node-local NVMe, 1 Gbps public port
General PurposeShared vCPUBalanced, variable, user-facing workloads where shared CPU performs adequatelyDDR5 hardware, 3 Gbps public port, eligible for the 99.90% monthly SLA
CPU-OptimizedDedicated vCPUSustained compute, CPU-sensitive workloads and predictable processingDDR5 hardware, 3 Gbps public port, eligible for the 99.90% monthly SLA

Cost-Optimized's lower bill is not a like-for-like substitute for General Purpose when failure impact, disk architecture or contractual availability matter. Windows VMs have a separate licensing-inclusive selection process.

Use this table to choose a family by business impact first, then performance evidence and capacity. See Linux VM hosting for supported Linux workloads and current VM prices for deployable plans. The Raff SLA controls service-credit eligibility.

Choose a VM type by the first constrained resource

The most reliable selection method is to identify what the workload runs out of first during normal pressure.

Workload signalLikely constraintBetter starting direction
CPU rises briefly, then returns to normalVariable computeGeneral Purpose
CPU stays high while latency or job time increasesSustained computeCPU-Optimized or more vCPU
CPU is moderate but memory is near exhaustionRAMMemory-forward shape
Swap activity or OOM events appearRAMMore memory or service separation
App, database, queue, and workers compete on one VMMixed contentionMore memory first, then consider separation
Builds or workers take too long with sustained CPU pressureCompute throughputCPU-Optimized
Database is slow while CPU remains comfortableQuery, memory, storage, or locksDiagnose before changing VM class
Logs, uploads, or database files consume disk rapidlyStorage growthMore or separate storage
Different services need independent scaling or recoveryArchitecture boundarySplit roles instead of buying one larger VM

This prevents a common sizing mistake: upgrading the resource that is easiest to see rather than the resource actually controlling the workload.

A database-backed application can show moderate CPU and still be unstable because memory is exhausted and swap is active. More vCPU would add compute without solving the real problem. A CI runner can have plenty of free memory while every available CPU remains busy for long periods. More RAM would add the wrong resource.

Use this sequence:

  1. identify the user-visible or operational problem;
  2. correlate it with CPU, memory, storage, and application behavior;
  3. choose the VM type or size that changes the constrained resource;
  4. verify that latency, throughput, stability, or completion time improves.

General Purpose VMs fit balanced and variable workloads

General Purpose is the default when no single resource consistently dominates the workload.

Typical fits include:

  • websites and content applications;
  • APIs with modest or variable traffic;
  • development and staging environments;
  • internal tools;
  • early SaaS applications;
  • small backend services;
  • lightweight self-hosted applications;
  • mixed workloads where the bottleneck is not yet clear.

Shared vCPU can also be appropriate for production. Production responsibility means the service matters; it does not automatically mean the application needs dedicated CPU. If the workload meets its latency and throughput targets and CPU pressure is brief or variable, shared compute can remain the more economical choice.

Raff General Purpose currently starts at 1 vCPU / 1 GB RAM / 25 GB NVMe for $4.99/month. The lineup includes multiple CPU-to-memory ratios, so teams can increase RAM without always increasing vCPU.

For the current plan-by-plan ladder, use Raff General Purpose VM Plans.

CPU-Optimized VMs fit sustained compute

CPU-Optimized makes sense when compute is not merely busy but controls an outcome that matters.

Good candidates include:

  • CI/CD runners with long CPU-bound builds;
  • queue workers processing continuously;
  • encoding, compression, compilation, or transformation jobs;
  • compute-heavy application services;
  • APIs where tail latency rises with CPU pressure;
  • analytics jobs with sustained processing;
  • database workloads measured and confirmed as CPU-bound.

Short CPU spikes alone are not enough. Deployments, package updates, cache warm-ups, and traffic bursts can temporarily use every vCPU on an otherwise healthy General Purpose VM.

CPU-Optimized becomes more compelling when CPU pressure is repeatable under equivalent load and connects to:

  • slower p95 or p99 response time;
  • longer build duration;
  • growing queue age;
  • reduced worker throughput;
  • missed batch deadlines;
  • inconsistent completion time.

Raff CPU-Optimized currently starts at 1 vCPU / 1 GB RAM / 25 GB NVMe for $15.99/month. For a direct CPU allocation comparison, see Shared CPU vs Dedicated CPU.

Memory-forward VM shapes fit RAM pressure

Not every workload that needs a larger VM needs more CPU.

Memory-forward configurations are useful when the working set grows faster than compute demand. Common examples include:

  • PostgreSQL or MySQL databases;
  • caches and in-memory services;
  • analytics dashboards;
  • multi-container applications;
  • self-hosted platforms with several services;
  • runtimes with large heaps;
  • combined app + database + worker stacks.

Memory pressure signals include sustained swap activity, out-of-memory events, container restarts, database cache pressure, and deployment failures because existing services leave too little RAM headroom.

Raff's General Purpose ladder includes memory-forward ratios such as 2 vCPU / 8 GB, 4 vCPU / 16 GB, and 8 vCPU / 32 GB. These shapes can be more economical than buying extra vCPU only to obtain more RAM.

For the deeper memory decision, use HiMem VMs Explained.

More vCPU and a different VM class are not the same upgrade

Class answers what resource profile the workload needs. Size answers how much of that profile it needs.

If a shared-vCPU application is CPU-bound only because the VM is too small, moving from 2 vCPU to 4 vCPU may solve the problem without changing machine class. If the workload still suffers from sustained CPU variability after right-sizing, CPU-Optimized becomes the more relevant test.

Likewise, increasing vCPU will not fix a memory-bound database, and moving to dedicated CPU will not fix slow queries or storage waits.

Use 2 vCPU vs 4 vCPU Cloud VMs when core count is the main question, and Cloud Server Performance Bottlenecks when the constrained resource is unclear.

Storage and architecture can matter more than VM type

A machine-class change is not always the right infrastructure change.

SymptomBetter question
Disk fills because of uploadsShould user files move to object storage?
Database files grow rapidlyDoes the database need its own storage and recovery boundary?
Logs consume local diskCan retention or centralized logging reduce growth?
Backups compete with production I/OShould backup timing or recovery design change?
App and database compete for RAM and CPUIs it time to separate the database?
Workers interfere with web latencyShould workers move to another VM?

Different services can also use different VM types. A web tier may stay on General Purpose while sustained workers move to CPU-Optimized. A database may need a memory-forward ratio instead. There is no requirement that every service in one application use the same machine class.

Split services only when independent scaling, deployment, security, or recovery benefits justify the added operational complexity.

Compare Cost-Optimized, General Purpose and CPU-Optimized Linux VM options for your workload.

Raff VM pricing and network characteristics

Selected standard monthly examples verified October 25, 2026 (prices and available plans can change):

Raff Linux VM familyExample configurationMonthly pricePublic network / SLA
Cost-Optimized2 vCPU / 4 GB / 40 GB$9.991 Gbps
Cost-Optimized4 vCPU / 8 GB / 80 GB$19.991 Gbps
General Purpose1 vCPU / 1 GB / 25 GB$4.993 Gbps / eligible for 99.90% SLA
General Purpose2 vCPU / 4 GB / 80 GB$17.993 Gbps / eligible for 99.90% SLA
CPU-Optimized1 vCPU / 1 GB / 25 GB$15.993 Gbps / eligible for 99.90% SLA
CPU-Optimized2 vCPU / 4 GB / 80 GB$36.993 Gbps / eligible for 99.90% SLA

Raff VM traffic is unmetered with no per-GB VM egress fee in these families, but public port speed differs. A 4 vCPU / 8 GB Cost-Optimized plan has 80 GB local NVMe, while the General Purpose 4 vCPU / 8 GB example uses 160 GB. Do not describe such shapes as identical hardware.

Cost-Optimized currently resizes between Cost-Optimized sizes. A cross-family move should be evaluated as a potential migration until a supported in-place path is confirmed. VPC private networking, public IPs, backup storage and other add-ons have their own rules. Refer to live pricing before deployment.

A practical VM type selection workflow

A small team can keep machine-class selection simple:

Text
Start with the workload ↓ Identify CPU, memory, storage, or architecture pressure ↓ Choose a Linux VM family by workload: Cost-Optimized, General Purpose, or CPU-Optimized ↓ Choose the smallest safe size inside that class ↓ Measure real latency, throughput, memory, and storage behavior ↓ Resize, change class, or split services only when evidence supports it

The purpose is not to predict the final infrastructure at launch. It is to avoid paying for specialization before the workload proves it needs it.

Once the machine class is clear, use the VM Sizing Guide to choose a safe starting CPU, RAM, and storage configuration.

Choose the smallest VM type that meets the real requirement

Cloud VM types and machine classes are useful because workloads do not consume infrastructure in the same way.

Choose Cost-Optimized for budget-driven Linux or FreeBSD workloads. Choose General Purpose when the workload is balanced, variable or production-facing and its shared-vCPU model meets requirements. Choose CPU-Optimized when sustained compute or CPU predictability controls an important outcome. Choose a memory-forward General Purpose shape when RAM pressure appears before CPU pressure. If storage, database behavior, or service contention is the real constraint, change the architecture rather than only buying a larger VM.

For the next decision, compare Raff General Purpose VM Plans, Shared CPU vs Dedicated CPU, or HiMem VMs Explained. Current deployable options are available on Raff Cloud Servers.

Sources

Was this article helpful?
Batuhan Esirger
Batuhan Esirger
Co-Founder & Head of Business Development

Batuhan Esirger is Co-Founder and Head of Business Development at Raff Technologies. He leads business development, partnerships, and customer strategy, focusing on practical cloud infrastructure solutions for businesses and MSPs.

Choose General Purpose, CPU-Optimized or Cost-Optimized servers on Raff.

Ubuntu, Debian and other Linux distributions with full root and SSH access, up and running in about 55 seconds.

14-day money-back guarantee

Frequently asked questions

What are cloud VM types or machine classes?
Cloud VM types or machine classes group virtual machines by CPU allocation, vCPU count, memory ratio, storage capacity, and the workload patterns those resource shapes are designed to support.
What is the difference between General Purpose and CPU-Optimized VMs?
General Purpose VMs use shared vCPU and are designed for balanced or variable workloads. CPU-Optimized VMs use dedicated compute and are better suited to sustained CPU-sensitive workloads where predictable compute behavior has measurable value.
When should I choose a General Purpose VM?
Choose General Purpose when the workload is balanced, bursty, variable, or still uncertain and shared CPU meets the application's latency and throughput requirements.
When should I choose a CPU-Optimized VM?
Choose CPU-Optimized when sustained CPU pressure repeatedly affects p95 or p99 latency, build duration, worker throughput, queue processing, or another important workload outcome.
When should I choose a high-memory or memory-forward VM?
Choose a memory-forward shape when RAM pressure, swap activity, OOM events, database caching needs, or multi-service memory contention appears before CPU becomes the main constraint.
Is a bigger VM always better than changing machine class?
No. A larger VM helps when capacity is the problem. Change machine class when CPU allocation or resource ratio is the problem, and split services when architecture is the real constraint.
Can production workloads run on shared-vCPU General Purpose VMs?
Yes. Production workloads can use General Purpose VMs when shared CPU is acceptable and the application meets its performance, stability, and recovery requirements.
How much do Raff General Purpose and CPU-Optimized VMs cost?
Raff General Purpose currently starts at $4.99/month, while CPU-Optimized starts at $15.99/month. A 2 vCPU / 4 GB / 80 GB configuration is currently $17.99/month on General Purpose and $36.99/month on CPU-Optimized. Check the live pricing page before deployment because plan prices can change.