Jump to content

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


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

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

    • WINNERS zm_lila_fsc_night_final ------------------------------------------------------------------------------------- 1. "Von Ecke" STEAM_0:1:561863935 // Score 53 2. "PrototypeSAS 007-Nooblike" STEAM_0:0:184785485 // Score 48 3. "TRIKUI" STEAM_0:1:105891953 // Score 47 4. "LA-CAPITALE" STEAM_0:0:639948394 // Score 34 5. "-_S4DULL4H_-" STEAM_0:1:436140064 // Score 29 zm_dream_4life_night_fix ------------------------------------------------------------------------------------- 1. "-Sky. Fm-" STEAM_0:0:144973326 // Score 44 2. "PrototypeSAS 007-Nooblike" STEAM_0:0:184785485 // Score 38 3. "LA-CAPITALE" STEAM_0:0:639948394 // Score 34 4. "ApTh27" STEAM_0:0:709055472 // Score 17 4. "SolidYoke" STEAM_0:1:941220463 // Score 17 5. "-_S4DULL4H_-" STEAM_0:1:436140064 // Score 14  
    • hello Rex  after viewing your case with the eban, i concluded that the eban for 1 month is too much yeah so i will reduce it to 1 week since last eban you got was the previous year, which was around 10 months ago, thats long time indeed. however the 3 days ban will stay due to avoiding ebans, just make sure next time not to avoid punishments even if you got semi unjustified punishment and instead make a punishment  appeal or admin report (in case of actual admin abuse), and i am pretty sure you will get the reasonable decision to handle your case. topic closed.
    • 1: My ingame name: Rex 2: My SteamID: STEAM_0:1:460732090 3: Name of the admin involved: Andrew 4: What server did it happen on: ZE 5: Map: ze_hobbiten_oldschool 6: Time and date:  24/06/2025 7: Explanation of the situation: I was somehow Trolling on hobbiten_oldschool, despite the fact that i used late wind to cover for myself it ended up killing the others, but to be precise during that period, the server was pretty much dead with 25-26 players. 8: Proof: Andrew has checked the demo, he decided to eban me, someone called an admin or someone actually told him that i "trolled" and he reviewed the demo after, despite the fact that i trolled it's a little too much for a 1 month eban. I did actually troll on my alt account and that eban is totally justified. The 3-day ban can stay, it is deserved.
    • CS:S Zombie Escape Event #449 28/06/2025 - 4PM GMT+1 (Server Time) 17 Days of VIP to winners!      Discord: Event Timestamp IP: css.nide.gg:27015 Steam: NiDE Steam Group đŸ—ș Maps to be played: ze_ffvii_cosmo_canyon_v5fix [Download Here] ze_lotr_minas_tirith_v3_3 [Download Here] ze_ffvii_mako_reactor_v5_3  [Download Here] ze_ffxii_mt_bur_omisace_v6fix [Download Here]   ⏰ Event Times: đŸ‡«đŸ‡·Â France  (Paris) 28/06/2025 @ 3PM GMT+1:00 đŸ‡ș🇾 USA (New York) 28/06/2025 @ 10AM GMT-5:00 🇼🇳 India (Delhi) 28/06/2025 @ 7:30AM GMT+5:30 🇩đŸ‡ș Australia (Sydney) 29/06/2025 @ 1AM GMT+11:00 đŸ‡·đŸ‡ș Russia (Moscow) 28/06/2025 @ 5PM 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 slightly decreased during this event! Voice and Chat overspam will not be tolerated and may result in penalties, but a little bit spam to greeting birthday boy is fineđŸ„ł. Any type of trolling will have severe consequences! ⚡ Kickers    🎁 Rewards: Anyone willing to lead will get some extra VIP days as a reward. Winning last stage of the map ze_ffvii_cosmo_canyon_v5fix will grant you 2 days of vip. Winning  the map ze_lotr_minas_tirith_v3_3 will grant you  1 days of vip for each stage starting from ex. Winning last stage of the map ze_lotr_minas_tirith_v3_3 will grant you  2 days of vip. Winning ze_ffvii_mako_reactor_v5_3 will grant you 1 day of vip for each stage starting from ex2. Winning stage II of the map  ze_ffxii_mt_bur_omisace_v6fix will grant you  1 days of vip. Winning stage III of the map  ze_ffxii_mt_bur_omisace_v6fix will grant you  2 days of vip. Winning stage IV of the map  ze_ffxii_mt_bur_omisace_v6fix will grant you  3 days of vip.                                                                                                                  View full record
  • LATEST TOPICS

×
×
  • Create New...