Posts: 125
Threads: 6
Joined: Dec 2008
Reputation:
1
Idler should account for any cpu left over or "idle" that the core is not using. And yes you run the idler in the background nice is not necesary if you run your game server on a designated core be sure to run the idler on the same core ex: taskset -c 1 ./idler &
*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
aha. So it is normally that idler use so much CPU?
I am running more game servers so I just start normally the process without taskset?
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
blindek Wrote:With & at the end? to put it in background?
correct, this puts it in the background. there are other methods, but this will do fine.
blindek Wrote:How I can run these process with low priority?
"nice" runs the process with low priority, so the command is correct in that form.
blindek Wrote:And for last and third, when I start these script I think it gets a bit too much CPU? Or is these normal?
the idea of the idler is to use much cpu. I did not understand how this improves the fps, but it seems to work in many cases (must be some effect deep in the kernel). as you run the process niced (i.e. with low priority) it will not affect the system performance.
afterhoursgaming Wrote:nice is not necesary if you run your game server on a designated core be sure to run the idler on the same core ex: taskset -c 1 ./idler &
first: you have always other processes running on your server (e.g. ssh to login and maintain the server), so you should always nice the idler. the game servers are not affected in any case, as they should run on realtime/fifo priority (using chrt).
second: I would not recommend binding either the idler nor the game servers to a specific core. this only reduces the the number of options the linux scheduler has to run your servers as fast as possible. the linux scheduler is doing a great job on its own, you shouldn't interfere there...
*****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
Ok thank you. I will today try to play a bit around these idler and report the effect and if FPS will be stabilized.
Also, a bit offtopic but esential for FPS. How much it can get CPU load in % that it won't get any lag on server? So how high can be the % CPU load to works fine for game servers?
Is these too much?
top - 20:58:44 up 6:40, 1 user, load average: 3.26, 2.94, 2.76
Tasks: 191 total, 1 running, 190 sleeping, 0 stopped, 0 zombie
Cpu(s): 25.0%us, 3.7%sy, 0.0%ni, 70.7%id, 0.2%wa, 0.1%hi, 0.4%si, 0.0%st
Mem: 12411140k total, 6100728k used, 6310412k free, 103408k buffers
Swap: 1951856k total, 0k used, 1951856k free, 3010076k cached
is these machine overloaded? for you?
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
nobody can answer you that question. this varies very much among different kernel-versions and systems. in particular you cannot really rely on the values itself, sometimes e.g. top and htop give very different values... if you have stable fps, your system is ok. if your fps drop when your servers get full, your system is overloaded...
*****www.fpsmeter.org
*****wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Posts: 117
Threads: 27
Joined: Apr 2008
Reputation:
0
is there a way to make the idler run forever?
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
*****www.fpsmeter.org
*****wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
The idler wont work for me as i posted abowe. I get two of them. Can anyone help me with that issue.
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
no?
I have created a idler.c and compiled it and then i have putted it into my /srcds folder. The problem is how do i start the idler automaticly
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
define "not working". doesn't it improve your fps?
there are several ways to make a program starting at boot automatically. most of them depend on the distribution (e.g. on debian & friends you can put it into /etc/rc.local with an & at the end of line - else it will hang your boot process). one platform independent way is to put it into /etc/crontab with "@reboot" in front.
you could also put "pidof idler || ./idler &" into whatever script you use to start the game servers.
*****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
try it...
if your scripts start two instances of the idler, its not the idlers fault ;-)
*****www.fpsmeter.org
*****wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!