Game server on VPS: How to set up and destroy lags? The full guide in 2026
Greetings, friends!
Anyone who has ever tried to host a game server for Counter-Strike 2, GTA 5 (FiveM), Minecraft, or Rust has faced the three horsemen of the apocalypse: high ping, packet loss, and sudden freezes. A player presses a button, but the action happens with a split-second delay—and in competitive gaming, this means a guaranteed loss.
Many think that buying expensive slot-based hosting will solve the issue. But the truth is, ready-made panels often share the resources of a single CPU among hundreds of clients. The only way to get 100% control, a clean network stack, and maximum FPS is to rent a clean VPS/VDS server and configure it manually.
In this guide, we will break down how to turn a regular virtual machine into the ultimate gaming station, squeeze the maximum out of the hardware, and reduce latency to a minimum.
Key Takeaways: Main Points About Gaming VPS
CPU frequency is everything: For a game server, single-core clock speed matters far more than multi-threading. Choose servers based on modern high-frequency processors like AMD Ryzen—this will solve most of your issues.
Linux is the industry standard: Installing your server on Ubuntu 24.04 saves RAM and allows flexible optimization of the kernel network stack. I also want to note that I increasingly see benchmarks showing that FPS in CS2 is significantly higher on Linux than on Windows because on Linux you can restrict absolutely everything, which frees up resources.
NVMe SSD is the baseline: The game world, plugins, and player databases must load instantly; otherwise, micro-freezes during autosaves are unavoidable. Also, from personal experience, if you play modern games, an SSD is vital. For instance, I recently installed RDR2 on my HDD on my personal PC and guess what? Micro-freezes happen specifically because the game is on a hard drive and not an SSD. On a game server where dozens of people play simultaneously, this effect is multiplied by ten, making an SSD a vital necessity here.
Traffic priority: Tweaking the Linux network interface (
sysctl) helps reduce traffic buffering and eliminates packet loss.
What Hardware is Needed for a Game Server?
Oddly enough, the most common mistake is buying a cheap VPS with a high core count but low frequency (e.g., old server Intel Xeons). Game engines (even modern ones) usually process world physics and network packets in one or two main threads. If the core frequency is low, the server will start lagging and dropping ticks, even if the other 8 cores are sitting idle.
Processor (CPU): Look for a hosting provider that offers AMD Ryzen servers (such as Ryzen 9 7950X). The clock speed should be above 4.0 GHz.
Disk Subsystem: Only NVMe SSDs. Regular SATA SSDs or, God forbid, HDDs will cause lag when players are actively exploring the map.
Network: A port of 1 Gbps or higher with a solid international uplink. But more important than speed is routing. If your hosting provider routes traffic through a "crooked" path across three countries, your ping will be high regardless of how powerful the hardware is.
Base OS Optimization for Linux (Ubuntu 24.04)
Once you have rented a powerful Ryzen VPS, forget about the graphical user interface. We need a clean Ubuntu console. To ensure the operating system doesn't bottleneck the game server, you need to reconfigure Linux kernel limits.
Open the configuration file:
sudo nano /etc/sysctl.conf
Add the following lines to the very end of the file to optimize the network stack (this reduces delays when processing thousands of small game packets):
# Maximum receive/send socket buffer size
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
# Optimize buffers for gaming packets
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
# Disable TCP slow start after idle (vital for stable ping)
net.ipv4.tcp_slow_start_after_idle = 0
# Increase maximum number of open files and connections
fs.file-max = 2097152
net.core.somaxconn = 32768
Apply the settings with the command: sudo sysctl -p.
Comparison Table: Default VPS vs Optimized Gaming VDS
| Parameter | Regular Office VPS | Optimized Gaming VDS (Ryzen) | Impact on Gameplay |
| Processor Type | Intel Xeon (2.2–2.5 GHz) | AMD Ryzen (4.5–5.7 GHz) | Stable FPS, the server manages to process all ticks (Tickrate). |
| Storage Type | SATA SSD / HDD Cloud | Local NVMe SSD | No freezes during map saves and automatic backups. |
| Network Queue | Standard (BBR/Cubic) | Tweaked sysctl + NoDelay | Minimal ping, complete absence of input lag. |
| Process Priority | Standard (Nice 0) | High / Real-Time | The OS dedicates all its power to the game, not background services. |
How to Fix Lag: Practical Advice
Changing Process Priority (Nice)
By default, Linux distributes CPU resources equally among all services. The game process needs to be set to maximum priority.
For example, if your server is running under a specific PID, execute:
sudo renice -n -20 -p [your_server_PID]
This forces the kernel to process your game's packets first.
Also, if your server runs on Windows, you can change the priority via Task Manager -> Details -> select the application, right-click, and under "Set priority," choose High or Realtime.
DDoS Protection
Game servers often fall victim to school kids using free booters. If the server is attacked via the UDP protocol, the whole machine will start lagging. Use built-in software to monitor anomalies (like Zeek or custom iptables rules) or choose hosting providers that offer specialized gaming filters for UDP traffic at the datacenter level.
Use Docker Wisely
Deploying servers via Docker is extremely convenient for system management and order. However, make sure you run the container with the --net=host flag. If you use a standard bridge, Docker will waste precious microseconds on network address translation (NAT), which can increase ping by 2-5 ms.
How to install Zeek on Ubuntu?
We filmed a video showing the entire process of installing Zeek on Ubuntu, and it will significantly reduce your stress. You can check it out right here:
FAQ: Quick Summary
What ping is considered normal for comfortable gaming?
An ideal ping is 5 to 30 ms (comfortable for esports); the absolute best is 1-5, but such a ping is a rarity. 30 to 60 ms is excellent for most players. Above 100 ms, registration issues will start in shooters like CS2, and the game's response will be noticeably delayed.
Is Windows Server suitable for game hosting?
It is suitable, but only if the server side of the game does not have a Linux version. Windows Server "eats" about 2 GB of RAM just to run the graphical interface, whereas Linux uses only 200-500 MB. So if there is an option to choose Linux, take it.
Why is the server lagging when CPU usage is only 15%?
Because the game has loaded a single core to 100%, while the other 7 cores are idle. Overall stats (e.g., in htop) will show a low average load, but in reality, the server is already "choking" due to the low clock speed of that specific core.
Conclusion
Creating your own game server on a VPS is the best way to get stable gameplay without the limitations imposed by standard slot-based hostings. Spending 15 minutes picking the right Ryzen processor, fast NVMe storage, and configuring Linux network settings will make you forget about player rubberbanding and packet loss forever.
If you are looking for a platform where the hardware is natively tailored for high loads and gaming, check out our servers at MivoCloud—powerful Ryzen processors and fast NVMe disks will ensure maximum performance without compromise.
Article Author — Anatolie Cohaniuc

