SRCDS Steam group


Random Lag issues (Processor Usage)
#1
Hello all,

I have been running a dedicated server for about 3 months now and recently have been having problems with it randomly lagging. My startup command is as follows: ./srcds_run -console -game cstrike +map fy_iceworld_orig +maxplayers 9 -autoupdate -tickrate 100 +fps_max 600. The only major changes I have made in the time I have been running the server is upgrade the version of mani mod from 1.1.0zh to 1.2 Beta M RC7. When i refresh my local server list on my gaming computer it shows up @ around 300ms or randomly shows 3ms like normal. also when i look at the top on my server it is showing that srcds_amd is running using 6.8% of my memory and almost 100% of my cpu when no one is in the server (idle)... I have restarted my server twice today because of this issue. Anyone have any ideas?

-Levi
Reply
#2
here is what it looks like @ idle, which is normal btw...

top - 20:57:10 up 1 day, 6:50, 2 users, load average: 0.01, 0.01, 0.00
Tasks: 49 total, 2 running, 47 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 1.3% sy, 0.0% ni, 97.7% id, 0.7% wa, 0.3% hi, 0.0% si
Mem: 906108k total, 897108k used, 9000k free, 75932k buffers
Swap: 1486004k total, 0k used, 1486004k free, 717716k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18198 root 15 0 139m 59m 12m S 1.3 6.8 1:02.43 srcds_amd
1 root 16 0 684 244 216 S 0.0 0.0 0:01.11 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.14 events/0
4 root 14 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
7 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
71 root 10 -5 0 0 0 S 0.0 0.0 0:00.05 kblockd/0
74 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
114 root 15 0 0 0 0 S 0.0 0.0 0:10.34 pdflush
115 root 15 0 0 0 0 S 0.0 0.0 0:03.97 pdflush
117 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
116 root 15 0 0 0 0 S 0.0 0.0 0:04.12 kswapd0
705 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
814 root 10 -5 0 0 0 S 0.0 0.0 0:00.27 reiserfs/0
868 root 13 -4 1488 476 408 S 0.0 0.1 0:00.06 udevd
1262 root 16 0 1644 596 508 S 0.0 0.1 0:01.72 syslogd
Reply
#3
Here is what it looks like later tonight idle with no players:

top - 21:49:08 up 1 day, 7:42, 2 users, load average: 1.52, 1.46, 1.03
Tasks: 49 total, 3 running, 46 sleeping, 0 stopped, 0 zombie
Cpu(s): 64.0% us, 34.7% sy, 0.0% ni, 1.3% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 906108k total, 897464k used, 8644k free, 76868k buffers
Swap: 1486004k total, 0k used, 1486004k free, 704156k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18198 root 25 0 151m 72m 12m R 98.2 8.2 24:06.26 srcds_amd
17854 root 16 0 2068 1056 836 R 0.3 0.1 0:13.60 top
1 root 16 0 684 244 216 S 0.0 0.0 0:01.11 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.14 events/0
4 root 14 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
7 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
71 root 10 -5 0 0 0 S 0.0 0.0 0:00.05 kblockd/0
74 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
114 root 15 0 0 0 0 S 0.0 0.0 0:10.43 pdflush
115 root 15 0 0 0 0 S 0.0 0.0 0:03.97 pdflush
117 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
116 root 15 0 0 0 0 S 0.0 0.0 0:04.14 kswapd0
705 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
814 root 10 -5 0 0 0 S 0.0 0.0 0:00.27 reiserfs/0
868 root 13 -4 1488 476 408 S 0.0 0.1 0:00.06 udevd
Reply
#4
49 Tasks.....You may want to work on lowering that number. I know that I ran mine with around 26-30 processes running, depending on the distro, etc....


Oh yeah, what processor are you running????
Reply
#5
I've experienced this problem with several of my servers. I haven't figured out why it randomly starts using 100% CPU.

It only happens to me about once a month, so it's not that big of a deal. My solution has always been to restart srcds. After the restart, everything goes back to normal.
Reply
#6
I used to have to restart on occasion too with the linux distros due to the memory leaking.
Reply
#7
ok, thanks for the info. I may try and find a memory tester for linux. I did swap out the memory just recently, went from 2x256mb ddr266 and 1x128mb ddr266 modules to 2x512mb ddr400 modules. The modules are running with an older processor, a amd 1.33ghz, which i will be upgrading soon.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)