Posts: 7
Threads: 2
Joined: Mar 2009
Reputation:
0
Hello,
Now I have patched my kernel over these guide *****wiki.fragaholics.de/index.php/EN:Linux_Kernel_Optimization . Now as on guide my kernel is running on 1000HZ and I think that it is consuming a bit to much resources and my CPU. Do you think these could be possible, that because of 1000HZ system charges more CPU than normal?
I don't need 1000FPS boosted CS servers, 500FPS will be enough and because of that I was thinking to decrease HZ of kernel.
Do you think these will decrease a bit of CPU usage?
For running 500FPS server a 500HZ kernel will be enough?
Thanks for your help.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
As stated in the "Playing around" section, you probably don't need HZ=1000 even for 1000 fps. I would recommend trying to set HZ=100 and enabling dynamic ticks ("tickless system"). hrtimers should still make your server running at 500/1000 fps, but you have less timer interrups and less system load.
btw: the difference in the load between 500 and 1000 fps is very small. the total amount of work is the same (unless reducing the tickrate), it's only a question when some of the work is done. of course higher fps will increase overhead, but thats not really a big difference. (but also the difference for the gameplay is minimal)
*****www.fpsmeter.org
*****wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Posts: 7
Threads: 2
Joined: Mar 2009
Reputation:
0
Huh, do you think it will be good decreasing HZ even to 100HZ? Even lower then default on debian witch is 250? It will not make anyithing worse in the server performance having 100HZ kernel? Because I am also running call of duty servers. Will these 100HZ affect COD servers you think?
So you think I leave all kernel settings as wrote in the howto *****wiki.fragaholics.de/index.php/EN:Linux_Kernel_Optimization only don't disable tickless system but enabling it and changing HZ to 100?
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
try it out. i never ran any cod server, so i don't know the effects... but in principle, the HZ are a legacy construct. modern software shouldn't relay on them...
*****www.fpsmeter.org
*****wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Posts: 125
Threads: 6
Joined: Dec 2008
Reputation:
1
it works fine with COD4 servers at any hz I have a couple that work great even with default kernel.
*Windows lack of output*
You: Hey, I want to run this program!
Windows: Ok.. It crashed... Now what? Give up?
You:...wtf...
*linux output helpful?*
You: ./My_program
Linux:...Failed!...oo kitties!
You:...wtf...
Posts: 7
Threads: 2
Joined: Mar 2009
Reputation:
0
Yes I know. I had default kernel for while and is good on 250HZ. But he propose me to run on 100HZ witch is 150HZ lower, also fine?
But I am quite skeptic and for first i will try only to decrease for running 333FPS server. To do it it is enough to run 333HZ kernel?
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
for recent kernels, the HZ and the fps arn't correlated anymore (at least if hrtimers are enabled). switching from one HZ to another is very easy, so just play around with it. I would recommend starting with HZ=100 (and tickless system) and only change to higher HZ if problems occur. You cannot destroy anything, worst case is an unusable game server until you recompiled with a higher HZ...
*****www.fpsmeter.org
*****wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
(02-16-2010, 04:53 AM)Clauu Wrote: How to change hz / hrtimers / tickless system without compiling a new kernel
not possible. you have to recompile the kernel.
Quote:I use hlds linux on a ubuntu machine, and my problem is unstable fps ... If I set sys_ticrate to 333 witch is perfect for a smooth gameplay after a while(about 10 minutes) sys_ticrate is autochanging to 500 ... why ?
maybe some plugin?
*****www.fpsmeter.org
*****wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Posts: 4
Threads: 1
Joined: Feb 2010
Reputation:
0
Yes, you where right, a nasty plugin whas doing that, my bad.