Urban Terror Forums: Linux Server High CPU - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1

Linux Server High CPU Rate Topic: -----

#1 User is offline   escapedturkey Icon

Posted 07 August 2012 - 09:16 PM

If I run the server straight from console or screen it runs fine. As soon as I put into the background via nohup and/or & the CPU use skyrockets to 90% and bounces between 45% and 80%.

Console:

top -b -n 1 | grep Quake3-UrT-Ded

11613 urbanter 20 0 569m 88m 8944 S 0.0 0.4 0:04.84 Quake3-UrT-Ded.

nohup and &:

11698 urbanter 20 0 569m 88m 8940 R 45.4 0.4 0:13.93 Quake3-UrT-Ded.

11698 urbanter 20 0 569m 88m 8940 R 83.2 0.4 0:34.71 Quake3-UrT-Ded.

screen:

29280 urbanter 20 0 313m 88m 8964 S 1.8 0.4 0:03.92 Quake3-UrT-Ded.

This post has been edited by escapedturkey: 07 August 2012 - 09:46 PM


#2 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 08 August 2012 - 06:25 PM

View Postescapedturkey, on 07 August 2012 - 09:16 PM, said:

If I run the server straight from console or screen it runs fine. As soon as I put into the background via nohup and/or & the CPU use skyrockets to 90% and bounces between 45% and 80%.

Console:

top -b -n 1 | grep Quake3-UrT-Ded

11613 urbanter 20 0 569m 88m 8944 S 0.0 0.4 0:04.84 Quake3-UrT-Ded.

nohup and &:

11698 urbanter 20 0 569m 88m 8940 R 45.4 0.4 0:13.93 Quake3-UrT-Ded.

11698 urbanter 20 0 569m 88m 8940 R 83.2 0.4 0:34.71 Quake3-UrT-Ded.

screen:

29280 urbanter 20 0 313m 88m 8964 S 1.8 0.4 0:03.92 Quake3-UrT-Ded.


Use screen. Don't use nohup.

#3 User is offline   escapedturkey Icon

Posted 08 August 2012 - 06:32 PM

nohup and & works perfect in UrT 4.1 and all other Quake 3 engine games.

This post has been edited by escapedturkey: 08 August 2012 - 06:35 PM



#5 User is offline   escapedturkey Icon

Posted 10 August 2012 - 06:30 PM

Do you have an ETA on this update will be available? Thank you. :)


#7 User is offline   gonz0 Icon

  • Account: gonz0
  • Main tag: 5*|
  • Country:
  • Joined: 25-June 10
  • Posts: 1

Posted 11 August 2012 - 02:29 AM

View Postescapedturkey, on 08 August 2012 - 06:32 PM, said:

nohup and & works perfect in UrT 4.1 and all other Quake 3 engine games.

can you put the full command please ?

#8 User is offline   escapedturkey Icon

Posted 11 August 2012 - 04:59 PM

View Postgonz0, on 11 August 2012 - 02:29 AM, said:

can you put the full command please ?


No problem. Please keep in mind, the command line I am giving you is full of variables for a script and control panel. If you need more details please let me know. I enjoy sharing and helping others. :cool:

Quake 3 with nohup and %

"q3ded" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
ulimit -u 4
nohup ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1
;;

UrT 4.1 with nohup and &:

"ioUrTded.i386" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
nohup ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1
;;

UrT 32 with screen:

"Quake3-UrT-Ded.i386" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
screen -dmS $whoiam ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1

UrT 64 with screen:

;;
"Quake3-UrT-Ded.x86_64" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
screen -dmS $whoiam ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1
;;

This post has been edited by escapedturkey: 11 August 2012 - 05:00 PM


Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2021 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942