Author Topic: Soldatserver has many processes under linux?  (Read 977 times)

0 Members and 1 Guest are viewing this topic.

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Soldatserver has many processes under linux?
« on: May 26, 2007, 08:11:16 pm »
Well, I just did some process viewing with the linux shell I am having, and saw that there are 6 soldatserver-processes. (http://www.imagehosting.com/show.php/686410_solserv.PNG.html)

I am not that experienced with Linux, so I don't know what could cause this, if it is only in Linux. I haven't seen similar in Windows environment.

I am not worried about this, it is not causing any problems, at least not so far, and I tink there is some simple and logical reason for this, which I am not aware of.

So, someone tell me why it apprears so. :) (Multithreading!? :o)

Edit: Hmm.. 6 slots... 6 processes.. A own process for a slot? ;]


OH, Forgot to mention, that could it be possible to make bots in lower-case letters and without spaces? Everything else is like that, except bots. :o
« Last Edit: May 26, 2007, 08:22:47 pm by Clawbug »
Fight! Win! Prevail!


Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Soldatserver has many processes under linux?
« Reply #2 on: May 26, 2007, 09:07:40 pm »
There are separate threads for things such as:
  • lobby server registration
  • ASE handling (I think, you can see for yourself if you disable ASE and count how many threads there are)
  • admin connections
  • the game server itself
  • the file server( that sends files such as maps/textures/etc out)
  • BattlEye
I think that list is correct, one of the server gurus can correct me if I'm wrong

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: Soldatserver has many processes under linux?
« Reply #3 on: May 26, 2007, 09:31:17 pm »
Oh yeah.

I was just wondering as at least THIS shows that "top" would show processes. I am not sure are threads counted as processes then.

Thank you for the info.
Fight! Win! Prevail!

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Soldatserver has many processes under linux?
« Reply #4 on: May 26, 2007, 09:39:42 pm »
`top` shows threads.  If you install `htop` and switch it to "tree" mode (hit 't'), it'll show you that one process is the parent of the other threads.


see my attached screenshot: http://forums.soldat.pl/index.php?action=dlattach;topic=15087.0;id=7639;image
« Last Edit: May 26, 2007, 09:43:53 pm by FliesLikeABrick »

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: Soldatserver has many processes under linux?
« Reply #5 on: May 28, 2007, 03:44:54 am »
Hmm, I am not very familas with how Linux manages the memory, or how Soldatserver does it for the threads, or actually has no clue.

But isn't there a good opportunity to optimize the soldatserver memory-wise, not allocating that much memory for the threads which do not need it reall? I do not believe admin connections need as much memory as does the server itself, nor that File erver would consume that much, nor BE.

As I said, I am not familar with the threading and memory allocating between threads.
Fight! Win! Prevail!