Rejoignez-nous sur le discord Urban Terror France !
Rejoignez-nous sur le discord Urban Terror France !
Guide rapide concernant l'inscription sur le site officiel du jeu. Créez ainsi votre compte joueur qui permet d'être authentifié sur les serveurs de jeu de la 4.2 !
Envie de parler avec les autres membres de la communauté ? Alors venez vous connecter, vous vous sentirez moins seul !
Statistiques globales et en temps réel de la totalité des serveurs d'Urban Terror. Suivez l'évolution du nombre de joueurs sur Urban Terror !
Code : Tout sélectionner
su - user -c "blabla"
Code : Tout sélectionner
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13652 root 20 0 284m 2356 864 R 47.2 0.2 0:17.66 ioUrTded.i386
13653 root 20 0 299m 2676 976 R 47.2 0.3 0:10.66 ioUrTded.x86_64
13650 root 20 0 287m 53m 2908 S 1.4 5.3 0:02.06 ioUrTded.i386
13649 root 20 0 314m 55m 8728 S 1.4 5.5 0:06.23 ioUrTded.x86_64
Code : Tout sélectionner
nohup ./ioUrTded.i386 +set ttycon 0 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg
Code : Tout sélectionner
nohup ./ioUrTded.i386 +set ttycon 0 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg &
Code : Tout sélectionner
./ioUrTded.i386 +set ttycon 0 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg
Code : Tout sélectionner
./ioUrTded.i386 +set ttycon 0 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg &
Code : Tout sélectionner
nohup ./ioUrTded.i386 +set ttycon 0 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg < /dev/null 2&>1 > /dev/null
Code : Tout sélectionner
nohup ./ioUrTded.i386 +set ttycon 0 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg < /dev/null 2&>1 > /dev/null &
cette explication expliquerais aussi pourquoi quand j'ai du 100% CPU, c'est pour la moitié une activité CPU System et pour moitié une acitvité CPU User. Le Select() étant un appel système si j'ai bien tout suivi.http://quakeone.com/forums/quake-help/multiplayer/7664-qwsv-running-100-cpu.html#post101957 a écrit :quakeworld is meant to wait on some sockets until it receives a packet, at which point it wakes up and does its stuff. it also waits for keyboard input so you can type stuff. using nohup on certain system (debian but not suse, for example) can result in the 'select()' system call returning instantly, every single time, so the server never idles properly.
who wants a server you can't interact with anyway? :/
x)/*
==================
SV_Kick_f WITH REASON
==================
*/
static void SV_Kick_f( void ) {
client_t *cl;
int i;
char *reason = "was kicked";
// make sure server is running
if ( !com_sv_running->integer ) {
Com_Printf( "Server is not running.\n" );
return;
}
if ( Cmd_Argc() < 2 || Cmd_Argc() > 3 ) {
Com_Printf ("Usage: kick <player> <reason>\nkick all = kick everyone\nkick allbots = kick all bots\n");
return;
}
if ( Cmd_Argc() == 3 ) {
reason = Cmd_Argv(2);
}
cl = SV_GetPlayerByHandle();
if ( !cl ) {
if ( !Q_stricmp(Cmd_Argv(1), "all") ) {
for ( i=0, cl=svs.clients ; i < sv_maxclients->integer ; i++,cl++ ) {
if ( !cl->state ) {
continue;
}
if( cl->netchan.remoteAddress.type == NA_LOOPBACK ) {
continue;
}
SV_DropClient( cl, reason );
cl->lastPacketTime = svs.time; // in case there is a funny zombie
}
}
else if ( !Q_stricmp(Cmd_Argv(1), "allbots") ) {
for ( i=0, cl=svs.clients ; i < sv_maxclients->integer ; i++,cl++ ) {
if ( !cl->state ) {
continue;
}
if( cl->netchan.remoteAddress.type != NA_BOT ) {
continue;
}
SV_DropClient( cl, reason );
cl->lastPacketTime = svs.time; // in case there is a funny zombie
}
}
return;
}
if( cl->netchan.remoteAddress.type == NA_LOOPBACK ) {
SV_SendServerCommand(NULL, "print \"%s\"", "Cannot kick host player\n");
return;
}
SV_DropClient( cl, reason );
cl->lastPacketTime = svs.time; // in case there is a funny zombie
}
bien jouéBarbatos a écrit :Ok est-ce que vous pouvez essayer cette build svp ?
http://www.f1m.fr/uploads/urt/ioUrTdedtest.i386
Code : Tout sélectionner
nohup ./ioUrTdedtest.i386 +set ttycon 0 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg &
Code : Tout sélectionner
nohup ./ioUrTdedtest.i386 +set fs_game q3ut4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg &
Code : Tout sélectionner
$ cat /proc/version
Linux version 3.2.13-xxxx-std-ipv6-64-hz1000 (root@kernel-64.ovh.net) (gcc version 4.3.2 (Debian 4.3.2-1.1) ) #1 SMP Thu Mar 29 11:11:33 UTC 2012
$ cat /etc/issue
Ubuntu 12.04 LTS \n \l
Tu ne l'a pas déjà commit ? : https://github.com/Barbatos/ioq3-for-Ur ... 5b61d8b428Barbatos a écrit :Z3nnY-H0lp2, pull request @ https://github.com/Barbatos/ioq3-for-UrbanTerror-4 thx.