SRCDS Steam group


32 slot + 22 on xeon quad 2.8ghz
#1
hi

i have some probleme with my css server.
debian lenny
kernel 1000 hz

32 slots tick 66
22 slot tick 100
apache
mysql
postfix (complet web server)
teamspeak server

config

xeon quad 2.8 ghz 12 mo
100 mb
raid hard 1 to


32 slot(full) has a cpu usage of 90% and tickrate down to 60 a the begining of the round.

i use this to start the server

PHP Code:
#!/bin/sh
SRCDS_USER="serveur"
SRCDS_NAME="serveur4"
SRCDS_BIN="./srcds_run"
SRCDS_PATH="/home/serveur/serveur4/"
SRCDS_OPTS="-game cstrike \
    +sv_region 3     \
    +ip 91.121.63.xxx \
    -port 27012 \
    +maxplayers 34 \
    -tickrate 66 \
    +map de_dust2 \
    +mp_dynamicpricing 0 \
    +sv_pure 1 \
    -autoupdate \
    -pidfile serveur4.pid"
STEAM_UPDATE="./steam -game cstrike -command update"
usage() {
    echo 
"---------------------------------------------------------------------"
    
echo "Usage: ${SRCDS_NAME} (stop|start|restart|update|patch)"
    
echo "---------------------------------------------------------------------"
    
exit 2
}

if [ -
$]; then
    usage
fi

srcds_start
() {
    echo 
"---------------------------------------------------------------------"
    
echo "serveur start"
    
echo "---------------------------------------------------------------------"
    
OWD=`pwd`
    
cd $SRCDS_PATH
    su 
${SRCDS_USER} -"screen -dmS ${SRCDS_NAME} ${SRCDS_BIN} ${SRCDS_OPTS}"
    
cd $OWD
    
echo "---------------------------------------------------------------------"
    
echo "server online"
    
echo "---------------------------------------------------------------------"
}

srcds_stop() {
    echo 
"---------------------------------------------------------------------"
    
echo "stop server"
    
echo "---------------------------------------------------------------------"
    
su ${SRCDS_USER} -"screen -dr ${SRCDS_NAME} -X quit"
    
echo "---------------------------------------------------------------------"
    
echo "finish"
    
echo "---------------------------------------------------------------------"
}

srcds_restart() {
    echo 
"---------------------------------------------------------------------"
    
echo "Reboot"
    
echo "---------------------------------------------------------------------"
    
srcds_stop
    srcds_start
    
echo "---------------------------------------------------------------------"
    
echo "finish"
    
echo "---------------------------------------------------------------------"
}

srcds_update() {
    echo 
"---------------------------------------------------------------------"
    
echo "reboot and update"
    
echo "---------------------------------------------------------------------"
    
srcds_stop
    OWD
=`pwd`
    
cd $SRCDS_PATH
    su 
${SRCDS_USER} -"${STEAM_UPDATE}"
    
cd $OWD
    srcds_patch
    srcds_start
    
echo "---------------------------------------------------------------------"
    
echo "finish"
    
echo "---------------------------------------------------------------------"
}

case $
1 in
    stop
)
        
srcds_stop
    
;;
    
start)
        
srcds_start
    
;;
    
restart)
        
srcds_restart
    
;;
    
update)
        
srcds_update
    
;;
    *)
        
usage
esac

exit 

in crontab i add:

PHP Code:
*/* * * * root renice -10 `cat /home/serveur/serveur1/cstrike/serveur1.pid` >/dev/null 2>&1
*/* * * * root renice -10 `cat /home/serveur/serveur4/cstrike/serveur4.pid` >/dev/null 2>&


why this server use a lot of cpu

i m trying to set each server to a core with HTOP and "a" option

How many slots have you with 2.8 ghz


thx for answer.
[Image: 91.121.2.172:27012.png]
Reply
#2
what series is the xeon?
Ryan White
Owner & CEO
GigabiteServers.com
Reply
#3
Intel® Xeon® CPU X3360 2.83GHz
[Image: 91.121.2.172:27012.png]
Reply
#4
cpu usage seems like the expected.
When you say "tickrate down to 60", is it because server fps goes to 60?

If not, perhaps you set the rates to low. Try setting it to a high value like sv_minrate 1048576 and sv_maxrate 1048576 and see what happens.

When having so many players it also requires more bandwidth.
So I'd recommend setting minrate to at least 40000.
rate of 25000 is way to low.
"the box said 'requires windows xp or better'. so i installed linux"
Linux Ubuntu 9.04 Server 2.6.30-vanilla #1 SMP PREEMPT x86_64
Reply
#5
i have try your config and for 22 players 64% cpu usage peak
PHP Code:
net_queued_packet_thread 0
hlx_webpage 
"**"
exec banned_user.cfg         
exec mani_server
.cfg        
exec bot
.cfg
rcon_password 
"***"
sv_password ""                        
sv_contact *@*.com
hostname 
"**"
sv_region 3 
sv_lan 0 
mp_allowspectators 1         
mp_autocrosshair 0            
mp_autokick 0                 
mp_autoteambalance 1         
mp_buytime 0.15                 
mp_c4timer 30                 
mp_chattime 8               
mp_fadetoblack 0             
mp_flashlight 1             
mp_footsteps 1                 
mp_forcecamera 0             
mp_forcerespawn 0             
des joueurs apres avoir été tué
mp_fraglimit 0                 
le Changement de Map 
mp_freezetime 1             
sont bloqués au début d
'un Round 
mp_friendlyfire 1             
mp_hostagepenalty 0         
mp_limitteams 1             
mp_logfile 1                 
mp_maxrounds 0                 
mp_playerid 0                 
mp_roundtime 2                 
mp_spawnprotectiontime 5     
mp_startmoney 5400             
Début de la Partie 
mp_timelimit 30             
mp_tkpunish 1                 
mp_weaponstay 1             
mp_winlimit 0                 
sv_accelerate 5             
sv_cheats 0                 
sv_clienttrace 1             
sv_consistency 1            
sv_gravity 800                 
sv_maxspeed 320             
sv_pausable 0                 
sv_timeout 65              
sv_secure 1
sv_pure 1
sv_allow_wait_command 0
log on                      
sv_logbans 1              
sv_logecho 1                
sv_logfile 0               
sv_log_onefile 1 
mp_logdetail 3 
mp_logmessages 1
logaddress_add ***            
sv_allowdownload 1          
sv_downloadurl "http://www.****"
sv_maxrate 1048576
sv_minrate 1048576
sv_maxupdaterate 66
sv_minupdaterate 30
sv_maxcmdrate 66
sv_mincmdrate 30
fps_max 600
sv_max_usercmd_future_ticks 2
sv_stats 0
phys_timescale 1.5
sv_master_legacy_mode 0 
[Image: 91.121.2.172:27012.png]
Reply
#6
44% for 14 player Sad
[Image: 91.121.2.172:27012.png]
Reply
#7
i have retest with a new install of the dedicated server and a new steam install

debian etch

aptitude update
aptitude upgrade
aptitude dist-upgrade

reboot on netboot with 1000 hz kernel

create new user
install css files

start the server with no modification

./srcds_run -game cstrike +ip *.*.*.* +hostport 27012 +maxplayers 34 +map de_dust2 -tickrate 100 +mp_dynamicpricing 0 -autoupdate


add 20 bots , usage cpu 95% , reduice to 30%

tick unstable

i have test with windows and with 20 bot and fps boost , usage max cpu on a core 50%


what is the probleme ?

What i have forgot with the debian configuration ?

thx for help
[Image: 91.121.2.172:27012.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)