VPS with 32 GB RAM: analytics, game server hosting and the line with a dedicated server
Thirty-two gigabytes on a virtual server is chosen for tasks where memory is the main working resource: columnar analytics, large databases, a dozen game servers under a shared panel, models with tens of billions of parameters. This is the first size at which it is seriously worth comparing a VPS with renting a physical machine, and the quality of the host's node affects the outcome more than the number in the plan.
Tasks people take 32 GB for
- ClickHouse and analytics. A columnar database compresses data 5–10 times, but heavy GROUP BY and JOIN queries over hundreds of millions of rows need memory for intermediate results. 32 GB is a comfortable size for a single node holding several months of logs or metrics; more in the VPS for ClickHouse section.
- A panel with several game servers. Pterodactyl or similar with 6–10 Minecraft, Rust or Valheim servers, each in its own container with a memory limit. See VPS for Pterodactyl.
- 50–150 GB databases whose indexes and active tables need to live in memory: online shops with a large catalogue, accounting systems, 1C for 30–60 users.
- Language models on the CPU of up to 30–34 billion parameters in 4-bit quantisation: such a model takes 18–22 GB, leaving the rest for context and the system.
- Build servers for large C++, Rust or Java projects, where parallel compilation eats 1–2 GB per thread.
If none of these tasks is yours, 32 GB is most likely overkill. A set of websites, a moderately busy shop or CI for a small team won't use that much even for cache, and the extra gigabytes in a plan usually mean extra cores and disk that you also pay for. Measure the real usage on your current server over a week: if the peak, excluding file cache, is below 12–14 GB, 16 GB on a good CPU is the better choice.
Fine-tuning memory at large sizes
At 32 GB things that don't matter on small servers become noticeable. The page table for a database with a 20 GB buffer itself takes hundreds of megabytes, and huge pages speed things up: in PostgreSQL enable huge_pages=try and allocate them via vm.nr_hugepages. Transparent huge pages (THP), on the other hand, are something many databases and Redis recommend disabling, as they cause pauses during memory defragmentation.
Java applications have a threshold of about 31–32 GB of heap, above which the JVM loses compressed pointers and uses memory inefficiently. On a 32 GB machine you won't hit it, but giving a single heap more than 20–24 GB isn't a good idea either: you need off-heap memory and file cache. If there are several services, split them into containers or systemd slices with hard limits.
Cores, disk and proportions
The typical proportion is 4 GB per virtual core, meaning 8 cores and 300–600 GB of NVMe. There are also "skewed" plans: 32 GB with 4 cores for databases and caches, or 16 cores for builds. Game servers need clock speed, so for them look at VPS with high-frequency CPUs; analytics and compilation care about core count and disk throughput.
What to check in a 32 GB plan
- Virtualisation and guarantees. Container plans of this size are almost always oversold. For databases and analytics only KVM or an equivalent with dedicated memory will do.
- Ballooning. If
virtio_balloonis loaded in the system, the host can technically shrink the machine's memory on the fly. Keep an eye on MemTotal in your monitoring: it should stay constant. - NUMA. A large virtual machine may be spread across two physical processors.
lscpu | grep -i numashows the number of nodes; if there are two, enable NUMA-aware settings for the database and Java. - Nested virtualisation for Proxmox or your own KVM machines inside the VPS is far from universally available: check for the
vmxorsvmflag in/proc/cpuinfo.
VPS or dedicated server
Under constant 24/7 load and heavy disk use, a physical server with 32–64 GB often costs about the same as a VPS of the same size, but gives you its resources without neighbours and without steal. A VPS wins when you need snapshots, quick scaling up and down, hourly billing or several locations. You can compare the options in the dedicated server rental section.
After purchase, check the amount with free -h, fill the memory with stress-ng --vm 4 --vm-bytes 28G and watch steal in top at the same time: with honest resources it stays close to zero.