Jump to content

Optimizing CPU Frequency for Your Counter-Strike Server with cpufrequtils on Ubuntu 🚀


cmer

Recommended Posts

  • Technical Administrator

When hosting a game server, especially one as demanding as Counter-Strike with a high player count like NiDE, it's crucial to ensure your server is running at peak performance. Some hosting providers, like OVH, might sometimes limit the CPU frequency for energy-saving reasons 🤌🐀. While this is beneficial from a power consumption standpoint, it can impact your server's performance.

Fortunately, tools like cpufrequtils exist, allowing you to monitor and manage your CPU's frequency. Let's dive into how to install and use it on Ubuntu.

 

System Update 🔄

It's always wise to start by updating your system to ensure compatibility and security:

sudo apt update
sudo apt upgrade

 

Installation of cpufrequtils 📦

After updating your system, proceed with the installation of cpufrequtils:

sudo apt install cpufrequtils

 

Using cpufrequtils ⚙️

Here are some steps to get you familiar with the tool:

 

Displaying CPU frequency information:

cpufreq-info

 

Configuring the frequency for optimal performance:

sudo cpufreq-set -c 0 -g performance

 

Note: -c 0 refers to the first CPU core. Adjust this number based on which core you wish to configure. see

cat /proc/cpuinfo |grep processor

 

Gets the currently used cpufreq policy:

cpufreq-info -p

 

Understanding performance vs. powersave 🤔

When managing your CPU frequency with cpufrequtils, you'll come across different policies that dictate how your CPU behaves. Two of the most commonly used policies are performance and powersave. Let's break them down:

  • Performance 🚀:
    • As the name suggests, the performance policy makes your CPU run at its maximum frequency. This ensures that you're getting the best possible performance out of your processor.
    • Use Case: This policy is especially beneficial when your server is hosting a full 64-player ZE and every millisecond counts. You'll want all the processing power you can muster to ensure smooth gameplay.
       
  • Powersave 🍃:
    • The powersave policy, on the other hand, is all about conserving energy. It adjusts the CPU frequency down to its lowest setting, which in turn reduces power consumption and heat generation.
    • Use Case: If your server is idling or performing less intensive tasks, the powersave mode can be a great way to reduce energy costs and prolong the life of your hardware.
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Posts

    • cool guy , never done anything bad +1
    • A good guy who didn't did anything wrong on the server, Good luck with your application! +1
    • I have seen you with donated admin for at least a month and never have I seen a single issue. +1
    • CS:S Zombie Escape Event #324 05/05/24 - 4PM GMT+2 (Server Time) This Is Why NiDE Is Better ~ 8 Years Anniversary 25 Days of VIP to winners! 🗺️ Maps to be played ze_football_b2 [Download Here] ze_epic_end_v4_3 [Download Here] ze_FFVII_Mako_Reactor_v5_3 [Download Here] ze_night_cinema_a4_3 [Download Here] ze_rooftop_rogue_v1_4 [Download Here] ⏰ Times of the event 🇫🇷 France (Paris) 05/05/24 @ 4PM GMT+2:00  🇺🇸 USA (New York) 05/05/24 @ 10AM GMT-5:00  🇮🇳 India (Delhi) 05/05/24 @ 8:30PM GMT+5:30   🇦🇺 Australia (Sydney) 06/05/24 @ 2AM GMT+11:00 🇷🇺 Russia (Moscow) 05/05/24 @ 6PM GMT+3:00 If you don't see your timezone here, you can convert GMT+1 by clicking on this link. 📜 Special rules Rules will be enforced strictly during the event: spam in the microphone and trolling will not be allowed and will be punished without a warning. Any type of trolling will have severe consequences! ze_football_b2 - Admins vs Players (It will end when admins score 3 wins); ze_epic_end_v4_3 - Half Team Zombie and Knife Mode active; ze_FFVII_Mako_Reactor_v5_3 - 10 Humans, zombies have way less HP than normal and no regeneration, no Rebuys. We start on Extreme; ze_night_cinema_a4_3 - VIP Beacon, Pistols Only and Knife Mode active; ze_rooftop_rogue_v1_4 - VIP Beacon, Pistols Only and Knife Mode active; 👑 Leader Anyone willing to lead will get some extra VIP days has a reward. 🎁 Rewards Top 10 Score of the map ze_football_b2 will grant you 1 day of vip. Winning any stage of the map ze_epic_end_v4_3 will grant you 1 day of vip. Winning any stage of the map ze_FFVII_Mako_Reactor_v5_3 will grant you 2 days of vip. Winning the map ze_night_cinema_a4_3 will grant you 4 days of vip. Winning the map ze_rooftop_rogue_v1_4 will grant you 4 days of vip. ◽ Server: CS:S Zombie Escape ◽ IP: 149.202.65.122:27072 ◽ Steam event link: NiDE Steam Group View full record
  • LATEST TOPICS

×
×
  • Create New...