SRCDS Steam group


CSS Server running way to fast.
#1
Installed a CS:S server and was able to get it up and running. However, the game speed is about 20x faster than it should be. The mission timer also count downs much faster then necessary.

I have checked around but could not find a fix. Can anyone help me?

Here is a copy of my server.cfg file:

Code:
hostname "CENSORED"

// rcon passsword
rcon_password "CENSORED"

// Server password
server_password
// server cvars
mp_friendlyfire 1
mp_footsteps 1
mp_autoteambalance 1
mp_autokick 0
mp_flashlight 0
mp_tkpunish 1
mp_forcecamera 0
sv_alltalk 1
sv_pausable 0
sv_cheats 0
sv_consistency 1
sv_allowupload 1
sv_allowdownload 1
sv_maxspeed 320
mp_limitteams 2
mp_hostagepenalty 5
sv_voiceenable 1
mp_allowspectators 1
mp_timelimit 30
mp_chattime 10
sv_timeout 65
host_timescale 1
phys_timescale 1

// round specific cvars
mp_freezetime 3
mp_roundtime 5
mp_startmoney 16000
mp_c4timer 30
mp_fraglimit 0
mp_maxrounds 0
mp_winlimit 0
mp_playerid 0
mp_spawnprotectiontime 5

// bandwidth rates/settings
sv_minrate 0
sv_maxrate 0
decalfrequency 10
sv_maxupdaterate 60
sv_minupdaterate 10
host_framerate 10

// server logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

// operation
sv_lan 0
sv_region 0

// execute ban files
exec banned_user.cfg
exec banned_ip.cfg

Any ideas how to slow things down?

Thanks in advance,
-Bigeasy
Reply
#2
I'm not a very handy Linux guy but did you modify any of your clock timers maybe trying to boost your fps?
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply
#3
Set host_framerate to 0
Reply
#4
(07-18-2011, 01:59 AM)michael_sj123 Wrote:  Set host_framerate to 0

Isn't that setting for demos?
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply
#5
(07-18-2011, 01:59 AM)michael_sj123 Wrote:  Set host_framerate to 0

Changed it to 0 and it still runs at at high speed.

Any other ideas?
Reply
#6
Delete the phys_timescale thing

Edit: @centralfrag, i don't know. its got something to do with the framerate or something lol
Reply
#7
Hey all,

I have the same problem here and i tried to put the phys_timescale at 0 and still the same.

Thanks in advance for your helpness Smile
Reply
#8
I think your config is pretty weird. Use the valve default config and only change the server name and rcon passwords and try again. If that works, only change settings you absolutely understand. there is no need to play around with stuff like phys_timescale, host_framerate etc.

ps: yes, people use host_framerate on their client to convert demos into a series of images
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#9
(07-18-2011, 05:26 PM)BehaartesEtwas Wrote:  I think your config is pretty weird. Use the valve default config and only change the server name and rcon passwords and try again. If that works, only change settings you absolutely understand. there is no need to play around with stuff like phys_timescale, host_framerate etc.

ps: yes, people use host_framerate on their client to convert demos into a series of images

Ok, so I tried just deleting the server.cfg file and restarting the server -no effect.

Other symptoms:
LAAAAAG - even when connecting on the same LAN as the server, the server spikes from 5-200 ping.

Connection Issues - connection is lost, and sometimes connection cannot be established.

Any thoughts? Is the fact I am running the server on a 32 bit machine causing problems? My machine is stock, with no overclocking.
Reply
#10
what are the machine specs (post output of "cat /proc/cpuinfo")? did you do any modifications to the Linux system? and did you try a complete fresh installation of srcds without any modification (don't change even a single config setting etc.)?
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#11
(07-30-2011, 06:54 PM)BehaartesEtwas Wrote:  what are the machine specs (post output of "cat /proc/cpuinfo")? did you do any modifications to the Linux system? and did you try a complete fresh installation of srcds without any modification (don't change even a single config setting etc.)?

Tried a complete wipe and reinstall. No effect. Ping is still very high and server runs very fast. Also connection drops are common.

System info as follows:

Quote:processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel® Core™2 CPU T5500 @ 1.66GHz
stepping : 2
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow
bogomips : 3324.95
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel® Core™2 CPU T5500 @ 1.66GHz
stepping : 2
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow
bogomips : 3322.93
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

My install of ubuntu is fresh and unmodified.

Tried running a server of garrys mod, same effect.

Any suggestions?
Reply
#12
The only way this could happen is if the backend to gettimeofday() (wallclock) is running too fast. Might be buggy hardware. I've seen broken HPET counters report odd operating frequencies, causing gtod to update way faster than it should.








http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#13
is this a laptop? do you have some kind of cpu frequency scaling enabled? cpuinfo says your cpu has 1.66Ghz but runs with 1GHz only. that could be the reason for some problems of this kind, so make sure you have any kind of frequency scaling disabled.

you can also try different clock sources.
Code:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
will list you all available clock sources, and e.g.
Code:
echo hpet >  /sys/devices/system/clocksource/clocksource0/current_clocksource
will set the clock source to hpet. replace hpet with all sources the first command prints out and try if one of them is better. but do not use jiffies!

In any case, you cpu is very slow and might not be capable of running a game server with a satisfying quality. Probably only very few slots will run lag free.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#14
(07-31-2011, 07:56 PM)BehaartesEtwas Wrote:  is this a laptop? do you have some kind of cpu frequency scaling enabled? cpuinfo says your cpu has 1.66Ghz but runs with 1GHz only. that could be the reason for some problems of this kind, so make sure you have any kind of frequency scaling disabled.

you can also try different clock sources.
Code:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
will list you all available clock sources, and e.g.
Code:
echo hpet >  /sys/devices/system/clocksource/clocksource0/current_clocksource
will set the clock source to hpet. replace hpet with all sources the first command prints out and try if one of them is better. but do not use jiffies!

In any case, you cpu is very slow and might not be capable of running a game server with a satisfying quality. Probably only very few slots will run lag free.

Quote:~$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
hpet acpi_pm

Quote:~$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
hpet

It is a laptop, a latitude d520.

I have not played with cpu frequency scaling before. I have ubuntu server loaded. Can anyone point me to some relevant literature to see if my clock speed is normal?

Reply
#15
http://www.kernel.org/doc/Documentation/cpu-freq/user-guide.txt

set the governor to performance and you should be fine, i.e.
Code:
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and to see if it was successfull:
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
you will need to do this for all cpus (replace "cpu0" with everthing which is there in that directory)
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)