If you are managing a high-traffic e-commerce store, a large database, or an intensive web application, you need hardware that can keep up.
Bare-metal dedicated servers powered by modern Intel Xeon and AMD EPYC or Ryzen processors provide unmatched capabilities. However, out of the box, your Linux OS might not be fully utilizing this power. Here is how to optimize your server for peak performance.
Step 1: Enable the CPU Performance Governor
By default, Linux often uses the "ondemand" or "powersave" CPU governor to save electricity. On high-performance dedicated servers, you want maximum clock speeds at all times. Install the scaling utilities:
sudo apt install linux-tools-common linux-tools-generic -y
Set all CPU cores to performance mode:
echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Step 2: Optimize NGINX Worker Processes
If you are running a web server like NGINX, it needs to know how many CPU cores your Intel or AMD processor has. Open your NGINX config:
sudo nano /etc/nginx/nginx.conf
Ensure worker_processes is set to auto;. This tells NGINX to spawn exactly as many workers as there are CPU cores on your bare-metal server, maximizing hardware utilization.
Step 3: Tune MySQL/MariaDB for Large RAM
If your server has 64GB or 128GB of RAM, you need to tell your database to use it. Open the MySQL config:
sudo nano /etc/mysql/my.cnf
Adjust the innodb_buffer_pool_size. A good rule of thumb is to set this to 60-70% of your server's total RAM if it's a dedicated database server:
innodb_buffer_pool_size = 48G
Conclusion
Proper configuration ensures that you extract every ounce of processing power from your hardware. Whether you need the high single-thread performance of an AMD Ryzen or the massive multi-core capabilities of an Intel Xeon, optimizing your OS is key.
Upgrade your infrastructure today with our ultra-fast dedicated servers.
Discover eServers Dedicated Server Locations
eServers provides reliable dedicated servers across multiple global regions. Whether you need low latency, regional compliance, or proximity to your audience, our wide geographic coverage ensures the perfect hosting environment for your project.