SRCDS Steam group


Syntax for running at "above normal"?
#1
Question 
How do I go about making my server run at "above normal" priority? I was going to ask the same Q about "High" priority but I read that may actually hurt as opposed to help. So what's the verbage or syntax to use, and where do I place that? Target line of my shortcut? Some kinda .cfg? Thanks in advance for everyones time and help. Smile
Reply
#2
batch file (srcds.bat):

@echo off
:NoCrash
Echo Server started: %time%
Start /high srcds.exe -console
Goto NoCrash
Clanplanet.co.uk Gaming Servers
Licensed Ventrilo Host - AA Honor Provider - Great Service & Prices
Reply
#3
So, I make that batch file and place it in my srcds folder. Then I start my server like normal using my desktop shortcut (see target line below)...

C:\srcds\srcds.exe -console -game cstrike -secure +maxplayers 22 +map de_prodigy -autoupdate

And the batch file auto executes. Is this correct?
Reply
#4
@echo off
:NoCrash
Echo Server started: %time%
Start /high C:\srcds\srcds.exe -console -game cstrike -secure +maxplayers 22 +map de_prodigy -autoupdate
Goto NoCrash


only the Start command has support for /high or /low priority settings.
Clanplanet.co.uk Gaming Servers
Licensed Ventrilo Host - AA Honor Provider - Great Service & Prices
Reply
#5
OK I gots it now, thank you. But, I read (I think on Valve's forums) that if you use "high" it takes away resources from some of windows required services, which is why "above normal" was suggested. Do you know about this? Like, is it true? Or have you done this yourself (used high) and suffered no ill effects as a result? If it matters, i'm running this under W2K w/1 GB RAM and a P4 2.0 Ghz.
Reply
#6
Running a process on anything above 'normal' gives the process more CPU time. So instead of windows delegating CPU processing time equally it gives srcds.exe a few vital milliseconds extra processing which can use some more RAM since more instructions need stored.

In my experience the source server does not need to be set at a higher priority level unless the machine struggles to run, in which case it can lead to major instability within windows. If you hit the right settings you should gain a performance boost.
Clanplanet.co.uk Gaming Servers
Licensed Ventrilo Host - AA Honor Provider - Great Service & Prices
Reply
#7
OK, i'll give it a shot or two. I have peeps complaining about lag, and i'm also hoping this will cure my server crashing from time-to-time. I think it may have something to do with the fact that i'm running bots, not sure. Anyway, I heard/read that setting to a higher priority may help with crashes if yer using bots. Can't hurt to try it and see what happens I guess. Worse case scenario the server crashes (and it's already doing that occaisionally). Anyway, thanks again for your help!
Reply
#8
Whats your connection?
Clanplanet.co.uk Gaming Servers
Licensed Ventrilo Host - AA Honor Provider - Great Service & Prices
Reply
#9
It's a T1 running 22 players.
Reply
#10
In hlds, you got choke and loss, if u didnt start the server in /high priority. As far as i can tell, that issue is still around in srcds.

As long as you dont have several processes in high, theres no problems what so ever. The only notable change is that loss and choke disappears. The server wont consume more memory or anything.
The thing thats happening is that all the background processes of windows is being treated after the server, witch is good.

oh, allmost forgot: syntax for above normal is /abovenormal

the levels are:
/normal
/abovenormal
/high
Reply
#11
Thanks Ninja! Smile
Reply
#12
Might want to add that you need to have /wait in front of the /high in the bat file - I overlooked that and ended up with 754 servers running and had to have my host hard reboot my box Sad

Code:
@echo off
:NoCrash
Echo Server started: %time%
Start /wait /high C:srcdssrcds.exe -console -game cstrike -secure +maxplayers 22 +map de_prodigy -autoupdate
Goto NoCrash
[Image: minisig.gif]
Reply
#13
sorry about that, i didnt test with start command i just launched it straight off the script :-\
Clanplanet.co.uk Gaming Servers
Licensed Ventrilo Host - AA Honor Provider - Great Service & Prices
Reply
#14
Stealth Wrote:sorry about that, i didnt test with start command i just launched it straight off the script :-
No problem - I was just testing things out so no damage done. Gotta say though that running my server at abovenormal cut down alot of lag on it.
[Image: minisig.gif]
Reply
#15
*bump*
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)