[bf1942] 3 processes running?

john g-lists at cloned.org.uk
Sat Jan 4 08:07:10 EST 2003


Linux can't distinguish between threads and processes. ps is mis reporting
each thread spawned by the bf1942_lnxded binary as being a seperate process
and using seperate memory addresses etc. They are not infact seperate
processes, but just mis reported this way.

e.g.:

ps uxww
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
games     8373  0.0  0.0  2228 1012 pts/0    S    12:56   0:00 /bin/sh
/servers/bf1942_01/startbf
games     8376  7.2  6.8 110212 70712 pts/0  S    12:56   0:39
./bf1942_lnxded
games     8377  0.0  6.8 110212 70712 pts/0  S    12:56   0:00
./bf1942_lnxded
games     8378  0.0  6.8 110212 70712 pts/0  S    12:56   0:00
./bf1942_lnxded
games     8390  0.0  0.0  2592  680 pts/0    R    13:05   0:00 ps uxww


it appears from that that its using 3x 6.8% of the memory. Its not.. the
first listed process is using that memory, and it is shared between the
others.

That is to my understanding anyway ;-)

john

----- Original Message -----
From: "grant stevens" <grant at l-eet.com>
To: <bf1942 at icculus.org>
Sent: Saturday, January 04, 2003 7:29 AM
Subject: Re: [bf1942] 3 processes running?


> Is there a variable like com_hunkMegs you can set that will affect the
> amount of memory used by each process?
>
> ----- Original Message -----
> From: <monthos at mx3.org>
> To: <bf1942 at icculus.org>
> Sent: Saturday, January 04, 2003 1:12 AM
> Subject: Re: [bf1942] 3 processes running?
>
>
> > the server requires three processes to run. its one server that has 2
> > children running along with it
> >
> > On Sat, 4 Jan 2003, Emraith wrote:
> >
> > > I just got a email from the server admin where my game is hosted, he
> told me
> > > that when I start the server, 3 processes come up. The 3 together take
> 55.5%
> > > CPU...
> > >
> > > 61565  p4  S+     0:14.07 ./bf1942_lnxded
> > > 61569  p4  S+     0:00.00 ./bf1942_lnxded
> > > 61570  p4  S+     0:00.00 ./bf1942_lnxded
> > >
> > > thats what it says with 'ps x' when i run the server. i killed the
> 61570,
> > > but when i killed 61569 it said 61569  p4  Z+     0:00.00
> (bf1942_lnxded)
> > >
> > > Not sure what to do..any help?
> > >
> > >
> >
> >
>
>




More information about the Bf1942 mailing list