
Stay up to date with AI tools, model releases, and developer workflows that matter.
An app that flies through testing can still crawl once real traffic arrives. Sometimes the cause is in the code, but often it's the virtual machine underneath, specifically how much of the physical CPU you actually get when other customers on the same host are busy.
Hosting providers sell two broad kinds of virtual server: plans with shared vCPUs, usually called a VPS, and plans with dedicated vCPUs, sometimes marketed as a VDS (virtual dedicated server). This article explains how the two differ at the hypervisor level, how to measure whether CPU contention is hurting your app, and how to run a fair comparison before you pay for an upgrade.
Both plan types are virtual machines. A hypervisor such as KVM divides a physical server into isolated guests, each running its own kernel and operating system with full root access. From inside the machine, they look identical.
The difference is how CPU time is scheduled. A vCPU usually corresponds to one hardware thread on the host. On a shared plan, that thread may be shared by several guests, and providers can sell more vCPUs than the host physically has, on the reasonable assumption that most customers won't use their full allocation at the same time. On a dedicated plan, each vCPU is mapped to a hardware thread reserved for you.
DigitalOcean's guide to choosing a Droplet plan describes this clearly: dedicated CPU Droplets have guaranteed access to the full hyper-thread, while on shared plans the hyper-thread may be shared with other Droplets, so when neighbours are under heavy load, a Droplet can receive only fractions of a thread.
Naming isn't consistent across the industry. Some hosts say VDS, others say "dedicated CPU", "dedicated vCPU" or "performance" instances. Some cloud providers also sell burstable instances, which accumulate CPU credits while idle and spend them under load, a third model with its own trade-offs. Always read what a plan guarantees rather than relying on its name.
Two other points are worth keeping in mind:
The Linux kernel tells you when the hypervisor is giving your CPU time to someone else. The steal value in /proc/stat is defined in the proc_stat manual page as time spent in other operating systems when running in a virtualised environment.
You can see it with standard tools. In top, look for st in the CPU summary line. With vmstat, sample once per second and watch the last column:
If you'd rather log a single figure, for example from cron, this short script calculates the steal percentage over an interval directly from /proc/stat:
A single benchmark run tells you very little about a shared plan, because performance depends on what your neighbours are doing at that moment. What matters for production is variation over time.
A simple approach is to run the same short CPU benchmark every hour for a few days and log the result. With sysbench installed:
After a few days, calculate the mean and the coefficient of variation:
A plan with a slightly lower mean but much lower variation is often the better choice for production, because users notice slow outliers far more than they notice average speed.
Apply the same thinking to your application metrics. Track p95 and p99 response times rather than averages, and compare them with steal time over the same period. If latency spikes line up with steal spikes, you've found your cause.
CPU is the most common bottleneck on shared plans, but not the only one. Before choosing a plan, test the resources your workload depends on:
Synthetic benchmarks are useful for comparing machines, but they don't behave like your application. Before migrating, deploy a copy of your app to the plan you're considering and replay realistic traffic with a load-testing tool such as k6, Locust or wrk. Use production-like data, so database queries and caches behave as they would for real.
Most providers bill by the hour, so a test server for an afternoon usually costs very little. Run the same test on your current server and the candidate, at the same time of day, and compare p95 latency, error rates and steal time side by side.
Shared and dedicated CPU options are available from most major hosts, including DigitalOcean, Hetzner, the large cloud platforms and specialist providers such as Cherry Servers. Rather than starting with brand names, shortlist on the factors that affect your workload:
Then run the same tests from the previous sections on two or three shortlisted options and let the numbers decide.
Shared vCPUs aren't a compromise for every workload. They're well suited to development and staging environments, low-traffic sites, and bursty jobs that benefit from parallel capacity more than strict consistency.
Memgraph's account of moving its infrastructure to Hetzner is a good example of matching the plan to the job. The team runs CI and release builds on shared vCPU cloud instances, where speed and cost matter most, and reports that build times became both faster and more consistent than on its previous hardware. Benchmarking, where results must be reproducible, runs exclusively on bare-metal servers.
The same principle applies to your own stack. Keep development, staging and CI on shared plans, and move databases, latency-sensitive APIs and other production services to dedicated vCPUs when your measurements show contention.
The difference between a VPS and a VDS isn't the technology; it's whether your CPU time is guaranteed. Before paying for dedicated resources, measure steal time under real load, track how much your performance varies over days rather than minutes, and check disk and network as well as CPU. Then load-test the candidate plan with your own application. If the numbers show contention, dedicated vCPUs are worth the money. If they don't, your bottleneck is somewhere else, and an upgrade won't fix it.
Get the freshest news and resources for developers, designers and digital creators in your inbox each week