[RÉSOLU] Problème Lag serveur

Tout ce qui concerne la configuration et l'administration des serveurs.
Rendez-vous dans Outils de communication & communautaires pour la conception de sites Internet.
Avatar du membre
w4zu
Messages : 819
Enregistré le : 09 janv. 2010, 23:34
Localisation : 83.

Problème Lag serveur

Message par w4zu » 22 janv. 2013, 05:09

Bonjour,
je viens voir vos lumières car sur mes serveurs j'ai des lags qui sortent de je ne sais ou... je m'explique :
La config : Serveur OVH SP16G 2013
OS : Débian 6.0.6 x64
Kernel : 3.2.37
Ram : 16Go
Com_hunkmegs : 256

ce qui tourne sur le serveurs actuel :
2 serveurs urt avec 2 ports autre 27960
1 serveur SSH ( port modifié )
1 serveur FTP ( 1 user )
1 apache2 + php5 + mysql (très peu de visite)

actuellement et lors du dernier lag que j'ai eu voici mon top :
Tasks: 170 total, 1 running, 169 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.3%us, 0.6%sy, 0.0%ni, 94.0%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 16328284k total, 1044160k used, 15284124k free, 84104k buffers
Swap: 1051832k total, 0k used, 1051832k free, 341520k cached


serveur sécurisé par fail2ban, tout les ports par défaut (ssh, webmin, ftp) sont modifiés et le port 80 est bloqué par un htaccess.
J'ai rien dans les logs, pas de flood etc..

Voici mon SH
#!/bin/bash
while true
do
/home/UrT/urbanterror/ioUrTded.i386 +set fs_game q3ut4 +set dedicated 2 +set net_port 2337 +set com_hunkmegs 256 +exec server.cfg
echo "server crashed on `date`" > last_crash.txt
done


Voici mon server.cfg
//Example config. Note that everything behind // is ignored by the game
//Try to keep cvar-values as short as possible. Otherwise you might get "info string length exceeded" errors on your server

//*** Administrator Info, shows in some gamebrowsers ***
sets " Admin" "w4zu" //Uses a space in front so it shows up at the top of the properties list
sets " Email" "pouet"

//*** Server Name and Daily Message ***
set sv_hostname "pouet" //Your servername here
set g_motd "Urban Terror, Presented by FrozenSand" //Your message of the day here, it is displayed while connecting
set sv_joinmessage "Welcome to pouet" //Your joinmessage here, it is displayed when the game is joined

//*** General Game Settings ***
set sv_maxclients "20" //max clientslots available on the server, using more than 16 is not advised. It can cause lag and most maps are not built for it. Going over 24 can cause nasty bugs.
set g_maxGameClients "0" //max clients that can actually join the game. Other clients are forced to spectate. 0=all
set sv_privateClients "2" //Amount of private slots. This amount of slots will be reserved for players who enter the right privatepassword
set g_gametype "4" //0=FreeForAll, 3=TeamDeathMatch, 4=Team Survivor, 5=Follow the Leader, 6=Capture and Hold, 7=Capture The Flag, 8=Bombmode
sets sv_dlURL "http://ut.sdz.fr" //Sets the address for auto-downloading. Auto-download only works on ioUrbanTerror-clients, not quake3-clients. The client will try to download <sv_dlURL>/q3ut4/mapname.pk3. So if your server is running ut4_coolmap and sv_dlURL is set to 'yoursite.com/maps', make sure the maps is hosted at http://www.yoursite.com/maps/q3ut4/ut4_coolmap.pk3. Leaving this set 'urbanterror.net' will make it use a map mirror with the most common maps on it. If you got your own hosting, please us that though, to save bandwith.

//*** Passwords ***
set rconpassword "pouet" //Password to control the server remotely using rcon.
set sv_privatePassword "pouet" //password for private slots
set g_password "pouet" //password for the server. Nothing = public

//*** Limits/times ***
set timelimit "20" //time in minutes before map is over, 0=never
set fraglimit "0" //amount of points to be scored before map is over, 0=never
set capturelimit "0" //amount of flagcaps before map is over, 0=never
set g_warmup "15" //time in seconds before game starts when changed to a new map. Gives slower computers time to load before game starts

//*** Respawning *** (FFA, TDM, CAH, CTF)
set g_respawnDelay "14" //seconds before respawn, ignored when g_waverespawns is 1
set g_forcerespawn "20" //seconds before respawn is forced, even when plater did not press fire
set g_waverespawns "0" //use waverespawns, meaning everybody in a team respawns at the same time
set g_bluewave "15" //seconds between blue waverespawns, ignored when g_waverespawns is 0
set g_redwave "15" //seconds between red waverespawns, ignored when g_waverespawns is 0
set g_respawnProtection "2" //amount of seconds a spawning players is protected from damage

//*** Rules ***
set g_deadchat "1" //Determines if alive players can see dead players message. 0=living players can not see dead players chat 1=living players see only team-messages from dead teammembers 2=living players also see normal chats from dead players
set g_antiwarp "1" //enable or disable antiwarp. This option smooths the movement of warping players (warping is caused by a crappy connection, for instance when torrenting during playing). The warping player will experience stutters when this is enabled
set g_antiwarptol "50" //tolerance of the antiwarp. Higher = more tolerant. 50=default
set g_gear "0" //bitmask that decides which votes are allowed and which not. Check http://www.urbanterror.net/gear_calc.html to find the correct number
set g_allowvote "536870927" //bitmask that decides which votes are allowed and which not. Check http://www.urbanterror.net/allowvote_calc.html to find the correct number
set g_failedvotetime "60" //time in seconds before someone can call another vote after another has failed
set g_followstrict "1" //1=no haunting of enemies when dead
set sv_floodprotect "1" //1=stops clients from spamming many chatlines

//*** Matchmode ***
set g_matchmode "0" //matchmode is for matchplay. Features timeouts and ready-commands
set g_timeouts "3" //ammount of timeouts that a team can do per map
set g_timeoutlength "240" //length of the timeout
set g_pauselength "0" //length of a pause. This can only be done by rcon. 0=indefinatly

//*** Team Game Settings ***
set g_friendlyFire "0" //0=no friendlyfire 1=friendlyfire on, kick after too many TK's 2=friendlyfire on, no kicks
set g_maxteamkills "3" //amount of TK's before you get kicked when friendlyfire is 1
set g_teamkillsforgettime "300" //amount of seconds before TK's are forgotten
set g_teamautojoin "0" //force players to autojoin on connect, instead of letting them spec untill they join themselves
set g_teamForceBalance "1" //if on, you can't join a team when it has more players then the other
set g_maintainTeam "1" //when switching maps, players will stay in their team
set g_teamnamered "" //name for the red team, nothing = Red Dragons
set g_teamnameblue "" //name for the red team, nothing = SWAT
set g_swaproles "0" //When map is over, play it again with the teams swapped (recommended for bombmode). After that, change map. 0=change map immediatly when map is over, no swapping of teams

//*** Team Survivor/Bombmode/Follow the Leader Specific Settings ***
set g_maxrounds "0" //number of rounds before map is over, 0=never
set g_RoundTime "3" //maximum minutes a round can take
set g_survivorrule "0" //0=teams don't get a point when time is up before everyone is dead. 1=team with most players left gets point
set g_suddendeath "1" //when map is over and both teams have same amount of points, add another round
set g_bombdefusetime "10" //seconds it takes to defuse bomb
set g_bombexplodetime "40" //seconds before bomb goes off after planting

//*** Capture the flag Specific Settings ***
set g_flagreturntime "30" //if a flag is dropped, return it after this amount of seconds
set g_hotpotato "2" //when both flags are taken, they will explode after this amount of minutes

//*** Advanced settings *** Dont change, unless you know what you are doing
set sv_strictauth "0" //1=check for valid cdkey, this means ioUrbanTerror players will not be able to join
set sv_pure "1" //dont let players load modified pk3-files
set sv_maxRate "0" //maximum traffic per second the server will send per client. 25000 or 0 = max
set sv_timeout "180" //time in seconds before player with a interupted connection will be kicked
set g_inactivity "0" //time in seconds before a non-moving player will be kicked

//*** Master Servers *** Servers the server will report to if 'dedicated' is set to 2. When set to 1, it doesn't report.
set sv_master1 "" //This one will be set automatically by the game-engine, so just leave it blank
set sv_master2 "master.urbanterror.info"
set sv_master3 "master2.urbanterror.info"
set sv_master4 "master.quake3arena.com"
set sv_master5 ""

//*** Other Settings ***
set g_armbands "1" //determines the behaviour of the armbandcolor (also shows on playerlist and minimap). 0=player's choice, set with cg_rgb 1=Based on teamcolor (red or blue) 2=assigned by server (random)
set sv_maxping "0" //max ping a client may have when connecting to the server
set sv_minping "0" //min ping a client may have when connecting to the server
set g_allowchat "2" //0= no chatting at all 1=teamchats only 2=all chats
set g_log "games1.log" //name of the logfile. Empty ("") means no log. Log will be in the q3ut4 folder in windows. Linux uses ~/.q3a/q3ut4
set g_logsync "1" //enables/disables direct writing to the log file instead of buffered
set g_loghits "0" //log every single hit. Creates very big logs
set g_logroll "0" //create new log every now and then, instead of always using the same one
set logfile "0" //additional logging in seperate qconsole.log file. 1=buffered, 2=synced
set g_cahtime "60" //Interval in seconds of awarding points for flags in Capture and Hold gamemode

//*** Map Rotation ***
set g_mapcycle "mapcycle.txt" //name of mapcycle-file, located in q3ut4 directory
map ut4_casa //what map to start with
set filterBan 1


//*** Anti Cheat ***
//pb_sv_enable //to enable PB, remove the // at the beginning of this line (only works when using Quake 3 Arena, not ioUrbanTerror)
set sv_battleye "0" //Keep this disabled, BattlEye is dead


Les lags arrivent quelque soit l'heure, 2 à 3 fois par pcw.
Quelqu'un à une idée?

EDIT: les lags sont présents quelque soit le kernel, 1000hz, 300hz, kernel de base, dernier kernel par OVH.

PS : quelqu'un peux me PM une config d'un serveur 4.2 en CTF pour du Public Svp?
Kab` -> c'est du cent pour cent 3F c'est beau !!

g8power
Conseil d'Administration
Conseil d'Administration
Messages : 4577
Enregistré le : 25 juin 2008, 22:04
Localisation : Dans ta mère. (coolos) #FFT

Re: Problème Lag serveur

Message par g8power » 22 janv. 2013, 07:38

Imo ça vient du fait que ce soit administré par un retard ou un 3F`,
mais encore une fois j'y connais rien, je peux certainement me tromper.
I like you, do you like me ?
[x ] no
[x ] no
[x ] no
(check one)

In memory of : when I cared.

Avatar du membre
Sparkwade
Membre de l'association
Membre de l'association
Messages : 1442
Enregistré le : 31 août 2008, 10:15

Re: Problème Lag serveur

Message par Sparkwade » 22 janv. 2013, 20:22

Augmente ton hunkmegs, tu es sur la limite là.

Vérifie les IO, si tu n'es pas floodé (tcpdump), et si le disque ne lâche pas. Tente d'isoler le problème en coupant l'écriture des logs pendant quelques parties et voir s'il y a une différence.

Avatar du membre
w4zu
Messages : 819
Enregistré le : 09 janv. 2010, 23:34
Localisation : 83.

Re: Problème Lag serveur

Message par w4zu » 22 janv. 2013, 22:46

IO je dépasse pas les 100ko/s avec les 2 serveurs en match dont 1 avec 11 personnes dessus.
tcpdump : rien de particulier

cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md1 : active raid1 sdb1[1] sda1[0]
20971456 blocks [2/2] [UU]

md2 : active raid1 sdb2[1] sda2[0]
1932012480 blocks [2/2] [UU]

Kab` -> c'est du cent pour cent 3F c'est beau !!

Avatar du membre
Cot_Cot
Messages : 1917
Enregistré le : 23 août 2008, 13:21

Re: Problème Lag serveur

Message par Cot_Cot » 23 janv. 2013, 11:47

g8power a écrit :Imo ça vient du fait que ce soit administré par un retard ou un 3F`,
mais encore une fois j'y connais rien, je peux certainement me tromper.


Putain c'est les deux, nous sommes vraiment foutus :o Meurs dans une avalanche tu feras plaisir à beaucoup de monde et ça sera un peu notre cadeau de Noël en retard \o/
3F` Cot_Cot - irc #FFF - site du clan www.fight-for-fun.com

Élu voyante 1999, Mister Crêpe 2003 et receveur de poke Bisous 2010/2011

Avatar du membre
Jus_Dabricot
Expert administration serveurs + Participant Powerban
Messages : 619
Enregistré le : 13 nov. 2008, 04:00

Re: Problème Lag serveur

Message par Jus_Dabricot » 23 janv. 2013, 16:32

Liste tes process urt (adapte le ioUrt pour la 4.2 par rapport a l'executable).

Code : Tout sélectionner

 ps ax | grep ioUrT | grep -v grep | sed -e "s/^ *//" -e "s/ .*$//"


et force chacun des pid à rester sur un cpu.

Code : Tout sélectionner

taskset -c -p cpu pid


pour le pid 3333 sur le cpu 1 par ex

Code : Tout sélectionner

taskset -c -p 0 3333 



voit ce que ça donne
Si la Gestapo avait les moyens de vous faire parler, les politiciens d'aujourd'hui ont les moyens de vous faire taire. (Coluche)

Avatar du membre
w4zu
Messages : 819
Enregistré le : 09 janv. 2010, 23:34
Localisation : 83.

Re: Problème Lag serveur

Message par w4zu » 26 janv. 2013, 14:25

Jvais tenté ce que Jus dit.
Kab` -> c'est du cent pour cent 3F c'est beau !!

Avatar du membre
w4zu
Messages : 819
Enregistré le : 09 janv. 2010, 23:34
Localisation : 83.

Re: Problème Lag serveur

Message par w4zu » 03 févr. 2013, 16:01

pas mieux :/


Vous pensez pas que UrT est mal gérez par les derniers CPU ?
Kab` -> c'est du cent pour cent 3F c'est beau !!

Samchun
Messages : 1951
Enregistré le : 30 janv. 2010, 14:36
Localisation : Paris

Re: Problème Lag serveur

Message par Samchun » 03 févr. 2013, 16:45

Faut vider la banlist elle est trop grande :d

<Vivaldi> dgw normalement, je perds pas
<Vivaldi> oui
<samchun> hm
<Vivaldi> j'ai perdu une seule fois de toute ma vie
<Vivaldi> c'était contre toi

http://www.urtstats.net/ -> dépression instantanée

Smooth & Turnpike as you don't know it

Avatar du membre
w4zu
Messages : 819
Enregistré le : 09 janv. 2010, 23:34
Localisation : 83.

Re: Problème Lag serveur

Message par w4zu » 06 févr. 2013, 23:19

il y a que 4 ips.
Sinon toujours les problèmes de lags même avec les infos de jus et com_hunkmegs 1024.
Je vais tester la désactivation des logs même si ça prend 37kb/s sur le disque.


Sinon il me semble avoir entendu parlé que l'on pouvait mettre les logs dans le swap ou un truc du genre, avez vous des infos?


l'utilitée du com_hunkmegs 512 alors que l'appli utilise que 68mo ? peut on la forcé directement à 1024 et que dans mon top il y est 1024 de pris en mémoire.
Kab` -> c'est du cent pour cent 3F c'est beau !!

Avatar du membre
Dipsy
Messages : 1407
Enregistré le : 19 oct. 2009, 10:45
Localisation : Paris

Re: Problème Lag serveur

Message par Dipsy » 07 févr. 2013, 00:35

Je pense pas que ce soit un soucis de génération de proco, ça tourne vraiment nickel sur mon i3 3220.
bdo.Team ♥
<23:57:50> "k0ry": depuis que j'ai perdu contre toi en 1v1 sur tp en 2010 je t'aime plus.

Avatar du membre
Sparkwade
Membre de l'association
Membre de l'association
Messages : 1442
Enregistré le : 31 août 2008, 10:15

Re: Problème Lag serveur

Message par Sparkwade » 07 févr. 2013, 20:18

Rien à y avoir avec le proco.

Utilité de forcer l'allocation de 1024 Mo de mémoire par le processus ? hunkmeg définie le nombre maximum de ram que le proc peut allouer.

Si cela ne vient pas de la bp, ni du CPU, ni de la RAM, ni du HDD ... et bien re-vérifie bien ce qui tourne sur ta machine. Aucune raison que cela tourne mal alors qu'on peut se démerder à avoir des conditions plus que bonnes sur une machine largement moins puissante ... sauf si l'env pose problème.

Avatar du membre
w4zu
Messages : 819
Enregistré le : 09 janv. 2010, 23:34
Localisation : 83.

Re: Problème Lag serveur

Message par w4zu » 09 févr. 2013, 00:17

je coupe tout a partir de 20h : apache, ftp.



echo 3 > /proc/sys/vm/drop_caches utile à faire tout les jours?
Kab` -> c'est du cent pour cent 3F c'est beau !!

Avatar du membre
Sparkwade
Membre de l'association
Membre de l'association
Messages : 1442
Enregistré le : 31 août 2008, 10:15

Re: Problème Lag serveur

Message par Sparkwade » 09 févr. 2013, 02:32

Complètement inutile.

Avatar du membre
w4zu
Messages : 819
Enregistré le : 09 janv. 2010, 23:34
Localisation : 83.

Re: Problème Lag serveur

Message par w4zu » 14 févr. 2013, 02:23

j'ai toujours des problèmes (rares) mais parfois j'ai vraiment des gros gros lag de 1s. :(
Kab` -> c'est du cent pour cent 3F c'est beau !!

Répondre