Re: [hlds_linux] CS:Source Linux PID's Changing

2007-11-07 Thread LouLou Bizou
--
[ Picked text/plain from multipart/alternative ]
you need to use taskset for cpu affinity !

it require PID, you can maade a shell script with crontab that for example
chek CPU afficinty for PID every 5 minutes

I have done it for my box and thats work well !

2007/11/7, Matt Ogborne [EMAIL PROTECTED]:

 --
 [ Picked text/plain from multipart/alternative ]
 Howdy,

 Long time reader, first post, so pls be gentle :-)

 Until recently the PID (process ID) for a CS:S server running used to stay
 the same, thus using taskset in Linux, we were able to set the process to
 run on a specific CPU core.

 However recently (about ~3-4weeks ago) the PID randomly changes, as in
 when
 the game server is started its say PID 4223, go back to it a day later and
 its then 5823, go back a day later again and its a different PID.

 This is kinda of annoying now, as with quad core CPU's coming down in
 price,
 the ability to fix a process (a game server or servers) to specific cores
 is
 very handy indeed.

 Any ideas on how to stop it jumping PID's??

 BTW: Linux Ver: Ubuntu 6.06 and its run in a screen session.

 Kind regards,

 Matt AKA Team MX | MoggieX
 --

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux

--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] CS:Source Linux PID's Changing

2007-11-07 Thread Ondřej Hošek

Hey Matt,

first off, please turn off the digests unless there is a better reason
to keep them than this reason to deactivate them: it makes it harder for
threaded communication to function. When you reply to a digest, the
thread -- all the references to preceding messages and replies
included in e-mails' headers -- becomes broken and people using threaded
views as well as those reading the archives gradually become more and
more hostile toward you. (I tried explaining this to Valve's Mailman
master, but he either didn't receive or ignored or disagreed with my
point, so I gotta do this on a user-by-user basis.)

As for your problem: unless SrcDS forks or crashes and restarts, PID
changes shouldn't happen. (There is no setpid system call to
complement getpid.) Try this:

screen -dmLS CS_SOURCE_PUBLIC ./srcds_run -game cstrike -norestart +map 
de_dust2 +maxplayers 56 -port 27018 -tickrate 33 +fps_max 150

Eventually, your SrcDS will probably crash. When it does, it won't do so that 
silently, and you can always check screenlog.0 (or higher numbers) for what 
exactly happened.

To help Valve fix this, install gdb on the machine and execute srcds_run with the 
-debug switch. It should generate a debug.log with a backtrace, which you 
then mail to the address given.

~~ Ondra


On 07.11.07 4:19 Uhr, Matt Ogborne wrote:

--
[ Picked text/plain from multipart/alternative ]
Howdy,

Long time reader, first post, so pls be gentle :-)

Until recently the PID (process ID) for a CS:S server running used to stay
the same, thus using taskset in Linux, we were able to set the process to
run on a specific CPU core.

However recently (about ~3-4weeks ago) the PID randomly changes, as in when
the game server is started its say PID 4223, go back to it a day later and
its then 5823, go back a day later again and its a different PID.

This is kinda of annoying now, as with quad core CPU's coming down in price,
the ability to fix a process (a game server or servers) to specific cores is
very handy indeed.

Any ideas on how to stop it jumping PID's??

BTW: Linux Ver: Ubuntu 6.06 and its run in a screen session.

Kind regards,

Matt AKA Team MX | MoggieX



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


RE: [hlds_linux] CS:Source Linux PID's Changing

2007-11-07 Thread Miano, Steven M.
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:hlds_linux-
 [EMAIL PROTECTED] On Behalf Of LouLou Bizou
 Sent: Wednesday, November 07, 2007 3:14 AM
 To: hlds_linux@list.valvesoftware.com
 Subject: Re: [hlds_linux] CS:Source Linux PID's Changing

 --
 [ Picked text/plain from multipart/alternative ]
 you need to use taskset for cpu affinity !

 it require PID, you can maade a shell script with crontab that for example
 chek CPU afficinty for PID every 5 minutes

 I have done it for my box and thats work well !

 2007/11/7, Matt Ogborne [EMAIL PROTECTED]:
 
  --
  [ Picked text/plain from multipart/alternative ]
  Howdy,
 
  Long time reader, first post, so pls be gentle :-)
 
  Until recently the PID (process ID) for a CS:S server running used to
 stay
  the same, thus using taskset in Linux, we were able to set the process
 to
  run on a specific CPU core.
 
  However recently (about ~3-4weeks ago) the PID randomly changes, as in
  when
  the game server is started its say PID 4223, go back to it a day later
 and
  its then 5823, go back a day later again and its a different PID.
 
  This is kinda of annoying now, as with quad core CPU's coming down in
  price,
  the ability to fix a process (a game server or servers) to specific
 cores
  is
  very handy indeed.
 
  Any ideas on how to stop it jumping PID's??
 
  BTW: Linux Ver: Ubuntu 6.06 and its run in a screen session.
 
  Kind regards,
 
  Matt AKA Team MX | MoggieX
  --
 
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
  please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlds_linux
 
 --

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux

I don't understand completely how this process is set up. Do you have an 
automatic restart set up through a script to have the server restart on a 
daily, or other increment?

I know my servers are set up in cron to restart each day at 5 am and the 
easiest way to pull the PID is to do:

[EMAIL PROTECTED]: ps -ef | grep screen | grep whatever you title your screen 
session as | grep -v grep | awk '(print $2 )'  counterstrike.pid

ps -ef pulls all running processes, the pipe means we are going to do something 
with that command, the next thing we do is grep for screen sessions, then we 
grep for the screen session that you saved the game as, then grep -v removes 
the grep that we are doing at the moment, and finally the awk command will take 
the second piece of output (which is the PID), and prints it out - this will 
give you the PID for the screen session.

If you want you can roll that all up in a script, chmod it so that it can be 
run executably, and then through it in your crontab to run hourly, daily, etc.

Keep us updated on how it goes. ; )

CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, 
confidential or otherwise protected from disclosure. If you are not the 
intended recipient of this e-mail, please notify the sender immediately by 
return e-mail, purge it and do not disseminate or copy it.

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


[hlds_linux] CS:Source Linux PID's Changing

2007-11-06 Thread Matt Ogborne
--
[ Picked text/plain from multipart/alternative ]
Howdy,

Long time reader, first post, so pls be gentle :-)

Until recently the PID (process ID) for a CS:S server running used to stay
the same, thus using taskset in Linux, we were able to set the process to
run on a specific CPU core.

However recently (about ~3-4weeks ago) the PID randomly changes, as in when
the game server is started its say PID 4223, go back to it a day later and
its then 5823, go back a day later again and its a different PID.

This is kinda of annoying now, as with quad core CPU's coming down in price,
the ability to fix a process (a game server or servers) to specific cores is
very handy indeed.

Any ideas on how to stop it jumping PID's??

BTW: Linux Ver: Ubuntu 6.06 and its run in a screen session.

Kind regards,

Matt AKA Team MX | MoggieX
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] CS:Source Linux PID's Changing

2007-11-06 Thread Dan E
--
[ Picked text/plain from multipart/alternative ]
The only thing that I could think of that would cause that would be if the 
server is crashing, which is logical then that the PID changes.

Matt Ogborne [EMAIL PROTECTED] wrote: --
[ Picked text/plain from multipart/alternative ]
Howdy,

Long time reader, first post, so pls be gentle :-)

Until recently the PID (process ID) for a CS:S server running used to stay
the same, thus using taskset in Linux, we were able to set the process to
run on a specific CPU core.

However recently (about ~3-4weeks ago) the PID randomly changes, as in when
the game server is started its say PID 4223, go back to it a day later and
its then 5823, go back a day later again and its a different PID.

This is kinda of annoying now, as with quad core CPU's coming down in price,
the ability to fix a process (a game server or servers) to specific cores is
very handy indeed.

Any ideas on how to stop it jumping PID's??

BTW: Linux Ver: Ubuntu 6.06 and its run in a screen session.

Kind regards,

Matt AKA Team MX | MoggieX
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux