Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
Posts: 30
Threads: 8
Joined: Mar 2009
Reputation:
1
12-23-2009, 08:56 AM
(This post was last modified: 12-23-2009, 08:57 AM by Hi I am John Smith.)
Santa, got questions:
1)
Does it work for TF2 as well, or just CS:S? (I will try, but in case it doesn't, then I can just skip it )
2)
So to use it, I should prefix my normal startup command, with:
LD_PRELOAD=/path/to/libBEpingboost.so.1.0.1 FPS=4000
Am I correct?
Thanks again for this and your kernel howto.
Posts: 504
Threads: 9
Joined: Oct 2009
Reputation:
3
I got it working with Day of Defeat: Source which also uses orangebox, so i guess it will work with tf2 too.
I have a question: How do I use LD_PRELOAD= in combination with screen?
I can start a screen run the server in this screen with it. But I neither get it working with
LD_PRELOAD=blabla screen -d -m -S name ./srcds_run (...)
Nor with
screen -d -m -S name LD_PRELOAD=blabla ./srcds_run (...)
Posts: 30
Threads: 8
Joined: Mar 2009
Reputation:
1
12-23-2009, 07:52 PM
(This post was last modified: 12-23-2009, 07:53 PM by Hi I am John Smith.)
(12-23-2009, 06:58 PM)Terrorkarotte Wrote: I got it working with Day of Defeat: Source which also uses orangebox, so i guess it will work with tf2 too.
I have a question: How do I use LD_PRELOAD= in combination with screen?
I can start a screen run the server in this screen with it. But I neither get it working with
LD_PRELOAD=blabla screen -d -m -S name ./srcds_run (...)
Nor with
screen -d -m -S name LD_PRELOAD=blabla ./srcds_run (...)
Actually I think we can run it as a separate process, like the idler.
So try running this app and SRCDS as two separate screens?
I am not home now so I can't try it myself.
By the way, how is the performance and stability of it?
Posts: 504
Threads: 9
Joined: Oct 2009
Reputation:
3
12-23-2009, 08:59 PM
(This post was last modified: 12-23-2009, 09:05 PM by Terrorkarotte.)
I figured it out myself and wrote down the answer in my wiki: http://serverwiki.sp12.speed-hoster.eu/index.php/Screen%2BLD_PRELOAD
The most of you like me are running hl2 servers in a detached screentab by starting it like
"screen parameters name ./srcds_run gameparameters"
Using this startcommand with LD_PRELOAD does not work. What works is to start a script that includes the LD_PRELOAD and works as a relay for the scrds_run startparamters
@Hi I am John Smith: No its a hack for the hl2 engine. It alters some funktion in the engine so that you have to preload it with each server you want to have >1000fps
@ BehaartesEtwas: Thx for this lib! I added my script to your wiki also
Posts: 30
Threads: 8
Joined: Mar 2009
Reputation:
1
Terrorkarotte,
Got a question for you since you have tried using it.
Which FPS value did you use? Did you use FPS=4000 as BehaartesEtwas is showing in his example?
How much performance you gain from it?
Thanks.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
(12-23-2009, 08:56 AM)Hi I am John Smith Wrote: 1)
Does it work for TF2 as well, or just CS:S? (I will try, but in case it doesn't, then I can just skip it )
I didn't try since I don't have a TF2 server running anymore...
Quote:2)
So to use it, I should prefix my normal startup command, with:
LD_PRELOAD=/path/to/libBEpingboost.so.1.0.1 FPS=4000
Am I correct?
correct, unless you use screen. In that case, use Terrorkarottes script (@Terrorkarotte: thanks!).
Quote:How much performance you gain from it?
probably nothing I seriously doubt that fps > 1000 will increase the server quality. I keep my servers running at 1000 fps, I only tried 2000 fps for 1 or 2 weeks. The quality was even slightly decreased, because it increases the chance of fps drops if you run more servers than cpus :-)
this whole lib is only for fun. I would not use it in a productive environment... maybe I should make that clear in the wiki :-)
Posts: 61
Threads: 9
Joined: Nov 2009
Reputation:
0
where can i found libBEpingboost.so.1.0.1 ???
Posts: 82
Threads: 10
Joined: Jul 2009
Reputation:
0
I have the script saved as BEpingboost.c located in /
I run:
root:
gcc -m32 -c -fPIC BEpingboost.c -o BEpingboost.o
In file included from /usr/include/features.h:352,
from /usr/include/stdio.h:28,
from BEpingboost.c:34:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
BEpingboost.c:104:2: warning: no newline at end of file
Posts: 30
Threads: 8
Joined: Mar 2009
Reputation:
1
(12-23-2009, 10:45 PM)BehaartesEtwas Wrote: ...this whole lib is only for fun.
...maybe I should make that clear in the wiki :-)
You got me all excited.
It is still interesting to run such experiment though.
By the way, for a smoother connection, I have been trying to twist those settings in sysctl.conf, and would like to check with you guys about your experiences with it.
Happy Holidays, and see you guys in a few days.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
12-25-2009, 12:28 AM
(This post was last modified: 12-25-2009, 12:29 AM by BehaartesEtwas.)
(12-24-2009, 08:45 AM)Hi I am John Smith Wrote: You got me all excited.
It is still interesting to run such experiment though.
I wrote that, because > 1000 fps are more or less nonsense. The lib itself doesn't do any damage or problems (as far as I know :-)). It just doesn't do any good to run at more than 1000 fps. I always said that.
Quote:By the way, for a smoother connection, I have been trying to twist those settings in sysctl.conf, and would like to check with you guys about your experiences with it.
I don't think that can possibly help. If your connection isn't smooth it's because of your actual connection, not because of any settings of your server. Unfortunaltely there is no magic trick to fix those things. Change your provider or buy a better connection. Everything else is even more a myth than > 1000 fps would help :-)
Ah and: I added a link to download the binary in the wiki, in case you have trouble compiling it...
Posts: 82
Threads: 10
Joined: Jul 2009
Reputation:
0
If I put the server on its own core would I put taskset -c 0 ./srcds_tk as the start command or put taskset -c 0 in the front inside the srcds_tk file and just start command srcds_tk
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
probaby doesn't matter. in doubt put it inside srcds_tk in front of the actual srcds command.
Posts: 307
Threads: 18
Joined: Jan 2009
Reputation:
1
omg now it starts .... the fps fight of the hosting companys....
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
(12-26-2009, 06:10 PM)Peter_Pan123 Wrote: omg now it starts .... the fps fight of the hosting companys....
It already runs :-) That's why I decided to make this public.
|