VPS with 4 cores: who really needs them and how not to pay for empty numbers
Four vCPUs are the point at which a server starts to gain noticeably from parallel work: the web server, the database and background jobs stop jostling for one or two cores. But "4 cores" is the cheapest line on any plan: it costs a host nothing to add it to a machine with a gigabyte of memory on an overloaded node. So on this page what matters is not the number itself but what stands behind it.
Which programs use four cores
Extra cores speed up only what can run in parallel. These workloads split well across four threads:
- A web stack under load. Nginx starts one worker process per core, PHP-FPM serves requests in separate processes, and the database answers different connections in parallel. A hundred simultaneous visitors on four cores do not end up queuing.
- Builds and tests.
make -j4, frontend builds, multi-threaded test runs. Four cores is where a CI runner stops being the team's bottleneck; more on the VPS for CI/CD page. - Game servers with plugins and mods. The main game loop is usually single-threaded, but world saving, chunk generation, network compression and the Java garbage collector itself occupy the remaining cores. A typical pairing is 4 cores and 8 GB of memory or more; choosing by game is covered in VPS for a game server.
- Windows Server with Remote Desktop for several users: every session, browser and office program needs CPU time.
- PostgreSQL with parallel queries: a heavy report can use several worker processes while other connections are served as usual.
If the server runs a single Telegram bot or a Node.js script, though, four cores will sit idle: such code runs in one thread, and it benefits from a high clock speed, not from more cores.
The trap of cheap four-core plans
In the table it is easy to find four cores with one or two gigabytes of memory at the price of a small plan. This isn't generosity; it's a sign that the cores are shared and heavily divided between customers. CPU time costs a host less than memory, so vCPUs are readily "drawn in" with a margin. In practice such a machine hits its memory limit long before its CPU limit: four PHP-FPM processes, a database and the system don't fit into a gigabyte, swapping begins, and the cores wait for the disk.
A reasonable ratio for a general-purpose server is at least 1.5–2 GB per core, that is, 6–8 GB or more for four vCPUs. Less is justified only for purely computational tasks such as encoding or compression, which need little memory.
The second small-print detail is the CPU usage policy. Some hosts allow full load on all four cores only in short bursts, and under constant load above a certain share they lower the machine's priority or send a warning. For a website with uneven traffic this goes unnoticed, but for builds, video encoding or scraping with data processing it means the four cores you bought actually work like one and a half. If the server will be busy around the clock, look for dedicated cores or an explicit absence of a CPU usage limit in the plan description, and confirm it with support before paying.
KVM and containers: different kinds of "cores"
The virtualisation filter in the table includes both KVM and the container-based OpenVZ and LXC, and this changes what the number means. With KVM you get four virtual processors that the guest system sees and schedules itself. In a container, cores are a scheduler quota on a shared Linux kernel: a process may see all the node's threads but will receive no more than the allotted share in total. Because of this, nproc in a container sometimes shows 32 or 64, and a program configured "by the number of cores" starts too many threads and runs slower. In containers, set the number of workers manually.
How to check four cores in the first days
- Look at
lscpu: the CPU model, the number of CPUs and threads per core. If the model is hidden behind a name like "QEMU Virtual CPU", rely on benchmarks. - Run
7z b -mmt1and7z b -mmt4(the p7zip package). On honest four cores the multi-threaded result is 3–4 times higher than the single-threaded one. If the difference is less than twofold, the cores are shared with neighbours or you have been given threads of the same physical cores. - Leave
vmstat 60running for a day with output written to a file and check thestcolumn in the evening hours: a steady 10% or more is a reason to change node or plan. - Compare the single-threaded result with the same host's 2-core plan: if a core in the bigger plan is slower, it has been placed on different, older hardware.
When four cores are consistently loaded above 70%, moving to 8 cores will give you more than switching to another host with the same size. If the load is low but the server is still slow, look for the problem in memory or disk.