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

    • CS:S Zombie Escape Event #452 03/07/2025 - 11PM GMT+1 (Server Time) 7 Days of VIP to winners!      Discord: Event Timestamp IP: css.nide.gg:27015 Steam: NiDE Steam Group 🗺️ Maps to be played: ze_boredom_v543656 [Download Here] ze_castle_crashers_v1_1 [Download Here]   ⏰ Event Times: 🇫🇷 France  (Paris) 03/07/2025 @ 11PM GMT+1:00 🇺🇸 USA (New York) 03/07/2025 @ 5PM GMT-5:00 🇮🇳 India (Delhi) 04/07/2025 @ 3:30AM GMT+5:30 🇦🇺 Australia (Sydney) 04/07/2025 @ 11AM GMT+11:00 🇷🇺 Russia (Moscow) 04/07/2025 @ 1AM 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 strictly enforced during the event! Voice and Chat spam will not be tolerated and may result in penalties without warning. Any type of trolling will have severe consequences!   🎁 Rewards: Anyone willing to lead will get some extra VIP days as a reward. Winning the map ze_boredom_v543656 grant you 2 days of vip. Winning the map ze_castle_crashers_v1_1 grant you 5 days of vip.                                                                                                                  View full record
    • Hi, 老Seven, I'm going to step in and deny your application. I understand, that you probably consider that as a serious applicaiton, but for our team its seams, not anything else then troll application, without any seriosness. Please, take serious all notes that you got from previos admin application feedback from @ Anwar . And my additional notes. - Make your application clear next time, cause many answers are confusing, i cant really understand what you wanted to say with some of them. There is so much unrelated info in there. - This is small improvement but still you recieved 24 mutes since last application in 3 month, some of them are day, or even weeks... - When somebody apply for admin we expect, some responsible guy, that can handle sv, and not additional problem, that will cause more of them. Please dont apply in near future, until you will feel confident, that you have been improved! Enjoy the NiDE. Application Denied Regards, ZE LSA Team.  
    • -1 i've never seen you solo simpsons rtv stage on a serious note, i think it's way too early since you're too young. you clearly lack maturity and your application looks like a troll given the photo you've posted, also implying that you're going to do bad things as an admin isn't the best thing to say. this sentence alone proves that you cannot be trusted. i've heard you call players names for no reason many times or even interrupt leaders by talking nonsense and the worst part is you don't even realise it. also worth mentioning is the fact that a lot of players instantly self-mute you when you join the server because you're annoying. you already got muted 51 times this year which means you've been muted at least 2 times a week so far. control yourself when you hop on the server, get along with players and try again in about 6 months. another tip: you don't have to use your microphone every single time you join the server.
    • Rasmus - Living in the world without you
    • Evanescence - Bring me to life Skillet - 2001 Fall out boy - immortals , centuries. Avenged sevenfold - Hail to the king Three days grace - Animal i have become, I hate everything about you Thousand Foot Krutch - Courtesy call, The end is where we begin, War Of Change Pendulum - Crush, witchcraft , slam, voodoo people, and 2 other
  • LATEST TOPICS

×
×
  • Create New...