SRCDS Steam group


FPS = 600 when connected to the internet, FPS = 10 when I'm not...
#1
I'm hoping that this is something that I've missed somewhere becasue this just isn't annoying enough!!!

Server OS: Xubuntu 9.04 32-bit
Processor: AMD Athlon™ XP 2000+ 1.7GHz
Ram: 512Mb
Game(s): Counter Strike Source
Start Up Command:
Code:
./srcds_run -game "cstrike" -port 20720 +map gg_deagle5 +maxplayers 12 -insecure +fps_max 600 -tickrate 66 +exec server.cfg
Admin Mods: Mani admin mod, Matties event scripts and GunGame 4.

This is really doing my head in. Basically this fairly old computer, I want to host a small gun game server on for a LAN party. Downloaded the srcds files, installed Mani, ES, and the gun game itself without a hitch. Run up the server and it played well even with bots in.

As a trial, I turned off the router, turned off the Linux box, pulled the internet connection then fired it all back up (to fake a LAN evironment). Launch the server with no probs, but connecting to it is an absolute dog! Finally get in and it is so laggy that I bin out.

Telnet into Linux to see whats occuring, stats shows that the server has decided to use an FPS of 10. type in fps_max and it returns 600 like it is being asked.

Thinking this is extremely odd, I switch it all off again, plug in the internet and run it all up again. 66 tick and a decent playability again, stats showed an fps of over 490...

Am I missing something really really REALLY basic here??? I have searched but can't seem to find anything like what is happening here!!!!

Cheers

Tel
Reply
#2
What does your system CPU usage show when the FPS is running so low?
Reply
#3
(09-23-2009, 11:21 AM)CGS|Todd Wrote:  What does your system CPU usage show when the FPS is running so low?
With the internet plugged in is as follows...

Code:
CPU   In    Out   Uptime  Users   FPS    Players
34.25  0.00  0.00       1     0  396.20       7
CPU   In    Out   Uptime  Users   FPS    Players
33.60  0.00  0.00       1     0  389.26       7
CPU   In    Out   Uptime  Users   FPS    Players
33.60  0.00  0.00       1     0  426.80       7
CPU   In    Out   Uptime  Users   FPS    Players
33.60  0.00  0.00       1     0  425.89       7

With the internet unplugged it is as follows...

Code:
CPU   In    Out   Uptime  Users   FPS    Players
76.60  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
75.00  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
73.50  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
73.33  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
73.75  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
73.75  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
73.60  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
69.00  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
69.00  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
70.00  0.00  0.00       0     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
72.00  0.00  0.00       0     0   10.00       7

It just seems very odd to me that the FPS is hard limiting itself to 10. I took a lot more samples and they all said 10 FPS.
Reply
#4
notice the much higher cpu usage when you are getting the lower fps . . . that's a red flag right there. but what does linux itself report . . . i don't really trust "stats" when it comes to system cpu usage. have you tried removing all plugins to see if that affects anything? perhaps something is expecting to be able to access the internet and wigs out when it can't. kind of far-fetched, but you never know . . .
Reply
#5
I do have a "clean" install of Counter Strike Source. I'll copy the server.cfg across and see what happens.

When I go top in linux it reports pretty much what you see above (70+%) used by srcds_amd.

I was kind of hoping that I'd find a process eating up the CPU external to SRCDS that I could point the finger at. I'll try the clean counter strike and get back to you.

Many thanks for your help!
Strangely it does exactly the same! The launch command line is exactly as above and I will attach the server.cfg to this post.

With the internet connected...
Code:
CPU   In    Out   Uptime  Users   FPS    Players
31.50  0.00  0.00       6     0  424.63       6
CPU   In    Out   Uptime  Users   FPS    Players
33.67  0.00  0.00       6     0  422.12       6
CPU   In    Out   Uptime  Users   FPS    Players
33.60  0.00  0.00       6     0  424.27       6
CPU   In    Out   Uptime  Users   FPS    Players
34.00  0.00  0.00       6     0  397.30       6
CPU   In    Out   Uptime  Users   FPS    Players
30.00  0.00  0.00       7     0  423.73       6
CPU   In    Out   Uptime  Users   FPS    Players
30.00  0.00  0.00       7     0  421.23       6
CPU   In    Out   Uptime  Users   FPS    Players
26.50  0.00  0.00       7     0  418.06       6

With it disconnected...
Code:
CPU   In    Out   Uptime  Users   FPS    Players
70.00  0.00  0.00       2     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
75.25  0.00  0.00       2     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
75.20  0.00  0.00       2     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
75.20  0.00  0.00       2     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
79.00  0.00  0.00       2     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
79.00  0.00  0.00       2     0   10.00       7
CPU   In    Out   Uptime  Users   FPS    Players
77.50  0.00  0.00       2     0   10.00       7

Just to prove the CPU usage, here's what top had to say...
Code:
top - 09:25:53 up 3 min,  1 user,  load average: 1.12, 0.49, 0.19
Tasks: 102 total,   3 running,  99 sleeping,   0 stopped,   0 zombie
Cpu(s): 70.2%us,  2.0%sy,  0.0%ni, 26.5%id,  0.0%wa,  0.0%hi,  1.3%si,  0.0%st
Mem:    509468k total,   336788k used,   172680k free,    11932k buffers
Swap:  1485972k total,        0k used,  1485972k free,   195684k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
3451 terry     20   0  137m  66m  12m R 73.4 13.3   0:43.98 srcds_amd
2217 mysql     20   0  125m  17m 4948 S  0.3  3.5   0:00.79 mysqld
2914 root      20   0  5176 1796 1592 S  0.3  0.4   0:00.03 hald-addon-stor
3454 terry     20   0  2444 1156  912 R  0.3  0.2   0:00.04 top
    1 root      20   0  3084 1884  564 S  0.0  0.4   0:01.43 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.16 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 kstop/0
    9 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kintegrityd/0
   10 root      15  -5     0    0    0 S  0.0  0.0   0:00.02 kblockd/0
   11 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   12 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
   13 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue

server.cfg is as below...
Code:
// server name
hostname "LAN Gun Game Dedicated Server"

// rcon passsword
rcon_password "*****"

// server cvars
mp_friendlyfire 0
mp_footsteps 1
mp_autoteambalance 1
mp_autokick 0
mp_flashlight 1
mp_tkpunish 0
mp_forcecamera 0
sv_alltalk 0
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 0
mp_allowspectators 1
mp_timelimit 25
mp_chattime 10
sv_timeout 65

// round specific cvars
mp_freezetime 6
mp_roundtime 5
mp_startmoney 800
mp_c4timer 45
mp_fraglimit 0
mp_maxrounds 0
mp_winlimit 0
mp_playerid 0
mp_spawnprotectiontime 5

// bandwidth rates/settings
sv_maxrate 20000
decalfrequency 60
sv_maxupdaterate 100
sv_minupdaterate 60

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

// bots
bot_add
bot_quota 7
bot_quota_mode fill
bot_difficulty 0
bot_chatter radio
bot_auto_follow 0
bot_auto_vacate 1
bot_join_after_player 0
bot_defer_to_human 0
bot_prefix "[BOT] - "
bot_allow_rogues 1
bot_walk 0
bot_join_team any
bot_eco_limit 2000
bot_allow_grenades 1
bot_all_weapons
bot_allow_grenades 1
bot_allow_pistols 1
bot_allow_sub_machine_guns 1
bot_allow_shotguns 1
bot_allow_rifles 1
bot_allow_snipers 1
bot_allow_machine_guns 1

// operation
sv_lan 1
sv_region 3

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

//Exec Mani
exec mani_admin_plugin.cfg

//Load gungame!
es_load gungame4

Many thanks for your help!!
Reply
#6
one thing i haven't really done much of is run srcds as a lan application, what happens if you use sv_lan 1? maybe sv_lan 0 can cause this? could be that srcds is wigging out when it thinks its supposed to be connected to the internet. i'm under the impression that just controls if people can connect from the internet, but who knows. if that doesn't help, i would try dumping all plugins.
Reply
#7
Tried sv_lan set to 1, removed -insecure from the start up, tried updating the install, tried a fresh CSS to a new directory, then I tried DoD:S...

DoD:S has a similar problem, but less severe and seems to use a different process name to CS:S. Heres the output below with the internet removed.
Code:
CPU   In    Out   Uptime  Users   FPS    Players
8.75  0.00  0.00       0     0   76.77       0
CPU   In    Out   Uptime  Users   FPS    Players
8.00  0.00  0.00       0     0   16.18       0
CPU   In    Out   Uptime  Users   FPS    Players
8.00  0.00  0.00       0     0   10.00       0
CPU   In    Out   Uptime  Users   FPS    Players
7.25  0.00  0.00       0     0   76.12       0
CPU   In    Out   Uptime  Users   FPS    Players
11.00  0.00  0.00       0     0   69.18       0

Still not ideal and very laggy, but a smidge better than CSS limiting itself to 10!

Connected the internet and this is what comes out...
Code:
CPU   In    Out   Uptime  Users   FPS    Players
3.00  0.00  0.00       6     0  420.88       0
CPU   In    Out   Uptime  Users   FPS    Players
3.00  0.00  0.00       6     0  396.35       0
CPU   In    Out   Uptime  Users   FPS    Players
3.25  0.00  0.00       6     0  417.89       0
CPU   In    Out   Uptime  Users   FPS    Players
2.80  0.00  0.00       6     0  420.70       0
CPU   In    Out   Uptime  Users   FPS    Players
2.80  0.00  0.00       6     0  419.64       0

However the DoD:S dedi server used srcds_i486 instead of srcds_amd like CSS....

Could it be the fact I'm using a router and not a switch to fake the LAN environment? I really don't get how pulling the internet can affect this so bad.
Reply
#8
shouldn't be. that's strange.
Reply
#9
Nothing to do with the steam master servers heartbeat? Shouldn't affect it that much Toungue
Reply
#10
(09-28-2009, 09:06 PM)BloodAngel Wrote:  Nothing to do with the steam master servers heartbeat? Shouldn't affect it that much Toungue
Could you expand on that???
Reply
#11
(09-28-2009, 09:20 PM)monobrow Wrote:  
(09-28-2009, 09:06 PM)BloodAngel Wrote:  Nothing to do with the steam master servers heartbeat? Shouldn't affect it that much Toungue
Could you expand on that???

All SRCDS's send a "heartbeat" to the steam master servers to list them in the client side server browser.

So try this:

Connect everything as usual, with sv_lan 0 in your server.cfg. Have your router connected to your internet connection, and test the fps, then pull the internet connection, test fps, post here Big Grin

Christy
Reply
#12
Trouble is that this solution may work where I am at home, but it's intended for a small LAN party that has no internet connection. To keep the test as representative as possible I have to remove the internet before launching SRCDS.

This is IMO silly. Why have the cvar sv_lan if it does (essentially) nothing... Thing is I'm wondering if this is an isolated case or whether this affects all Linux SRCDS installs...
Reply
#13
(09-29-2009, 02:29 AM)monobrow Wrote:  Trouble is that this solution may work where I am at home, but it's intended for a small LAN party that has no internet connection. To keep the test as representative as possible I have to remove the internet before launching SRCDS.

This is IMO silly. Why have the cvar sv_lan if it does (essentially) nothing... Thing is I'm wondering if this is an isolated case or whether this affects all Linux SRCDS installs...

i suspect its isolated, i've never heard of this before.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)