Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Linux FDS » LFDS memory usage
LFDS memory usage [message #233437] Sat, 09 December 2006 03:10 Go to next message
bigburd88 is currently offline  bigburd88
Messages: 7
Registered: December 2006
Location: Owensboro, KY, USA
Karma: 0
Recruit
I'm running the RH8.0 build of the LFDS on CentOS 4.3. While the server is running it appears to leak a lot of memory, consuming nearly all the memory on the system and making the entire box lag horribly.

I get the following line in top:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
20250 renegade  18   0  847m 776m  872 R  1.0 77.6   1:04.69 renegade_server


Is this normal? If not, what can I do to fix it?
Re: LFDS memory usage [message #233438 is a reply to message #233437] Sat, 09 December 2006 03:28 Go to previous messageGo to next message
Stumpy is currently offline  Stumpy
Messages: 93
Registered: May 2005
Karma: 0
Recruit

well it depends on Ram you have on your server Big Ups
You shouldnt run a Server with less than 255(max. 18 player) mb ram.


Visit and dream about it http://pb-live.team64.eu
Re: LFDS memory usage [message #233440 is a reply to message #233438] Sat, 09 December 2006 03:37 Go to previous messageGo to next message
bigburd88 is currently offline  bigburd88
Messages: 7
Registered: December 2006
Location: Owensboro, KY, USA
Karma: 0
Recruit
This box has 1 gig of RAM. Without the Renegade server running, 25% of it is normally used.
Re: LFDS memory usage [message #233441 is a reply to message #233437] Sat, 09 December 2006 03:48 Go to previous messageGo to next message
Blazer is currently offline  Blazer
Messages: 3322
Registered: February 2003
Location: Phoenix, AZ
Karma: 0
General (3 Stars)
Administrator/General

Are you using ssaow or any other server mods? It could be them causing the memory leak. Try reverting to a plain vanilla server for long enough to verify if that fixes the leak or not. If it is one of the mods causing the leak, the authors may be willing to track down the problem and fix it.
Re: LFDS memory usage [message #233442 is a reply to message #233441] Sat, 09 December 2006 03:50 Go to previous messageGo to next message
bigburd88 is currently offline  bigburd88
Messages: 7
Registered: December 2006
Location: Owensboro, KY, USA
Karma: 0
Recruit
No mods. This is a fresh install of the server and SSCP1.3+BRenBot.
Re: LFDS memory usage [message #233449 is a reply to message #233442] Sat, 09 December 2006 05:20 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
bigburd88 wrote on Sat, 09 December 2006 04:50

No mods. This is a fresh install of the server and SSCP1.3+BRenBot.

It sounds like scripts.so is leaking memory (it is known to do that)...3.0 should plug some of the leaks, but nobody knows when it will show up Tell Me


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.

[Updated on: Sat, 09 December 2006 05:20]

Report message to a moderator

Re: LFDS memory usage [message #233454 is a reply to message #233449] Sat, 09 December 2006 05:41 Go to previous messageGo to next message
bigburd88 is currently offline  bigburd88
Messages: 7
Registered: December 2006
Location: Owensboro, KY, USA
Karma: 0
Recruit
Lovely. I guess I'll just wait around for a fix and keep the server offline, much to my brother's dismay.

My brother == srgmjrten. He asked a while back here about hosting a Renegade server on my box.

edit: Just for entertainment, here's a graph if the memory usage when I started the server earlier. That's a pretty impressive spike.

http://files.nedrub.com/hayatsu.williamwight.com-memory-day.png

[Updated on: Sat, 09 December 2006 05:58]

Report message to a moderator

Re: LFDS memory usage [message #233471 is a reply to message #233442] Sat, 09 December 2006 10:00 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

bigburd88 wrote on Sat, 09 December 2006 11:50

No mods. This is a fresh install of the server and SSCP1.3+BRenBot.


And SSCP1.3 contains SSAOW, doesn't it ? Wink
Try to run the FDS without SSCP1.3, and see if it still
needs that much RAM.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: LFDS memory usage [message #233529 is a reply to message #233437] Sat, 09 December 2006 17:25 Go to previous messageGo to next message
Blazer is currently offline  Blazer
Messages: 3322
Registered: February 2003
Location: Phoenix, AZ
Karma: 0
General (3 Stars)
Administrator/General

Crimson just reported to me that her Win32 FDS does the exact same thing...she has to restart it every 3-4 days because its memory usage slowly but surely increases over time. She thought it was perhaps SSAOW causing it, but now that we know the LFDS does it as well, it could be an issue with scripts.dll. I will speak to jonwil about auditing the scripts.dll source to try and locate any possible memory leaks.
Re: LFDS memory usage [message #233530 is a reply to message #233529] Sat, 09 December 2006 17:37 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Blazer wrote on Sat, 09 December 2006 18:25

Crimson just reported to me that her Win32 FDS does the exact same thing...she has to restart it every 3-4 days because its memory usage slowly but surely increases over time. She thought it was perhaps SSAOW causing it, but now that we know the LFDS does it as well, it could be an issue with scripts.dll. I will speak to jonwil about auditing the scripts.dll source to try and locate any possible memory leaks.

Actually, in the case of the LFDS, we could try re-running Valgrind on it...StealthEye tried once, but the LFDS simply crashed trying to run under Valgrind


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: LFDS memory usage [message #233540 is a reply to message #233529] Sat, 09 December 2006 18:21 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Blazer wrote on Sun, 10 December 2006 01:25

Crimson just reported to me that her Win32 FDS does the exact same thing...she has to restart it every 3-4 days because its memory usage slowly but surely increases over time. She thought it was perhaps SSAOW causing it, but now that we know the LFDS does it as well, it could be an issue with scripts.dll. I will speak to jonwil about auditing the scripts.dll source to try and locate any possible memory leaks.


It could be ???
It's definatly scripts.dll/SSAOW, look into the sourcecode, it contains memory leaks like hell.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: LFDS memory usage [message #233552 is a reply to message #233437] Sat, 09 December 2006 18:51 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

I ran valgrind on the LFDS with the current "WIP" of 3.0 and did a small test (start the server, join the game, wander around a bit, get shot by the GDI AGT on Under, leave the game, shut down the server) and didnt get any notable memory leaks.

I think in order to continue with this leak issue, firstly we need people who are having problems to try running 2.9.2 (or possibly 3.0 WIP) and not old versions (anyone running SSAOW need not apply, SSAOW is FULL of memory leaks, none of which appear when you run normal scripts.dll) and confirm whether the LFDS is still leaking memory like a sieve when run with the latest code. If it is still leaking enough memory to care about, then we can run it under valgrind with a longer real world test and examine the results (although the downside is that valgrind makes the SFPS drop way down so it would need to be a fast machine...)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: LFDS memory usage [message #233558 is a reply to message #233552] Sat, 09 December 2006 19:17 Go to previous messageGo to next message
bigburd88 is currently offline  bigburd88
Messages: 7
Registered: December 2006
Location: Owensboro, KY, USA
Karma: 0
Recruit
As noted by the graph above, I can say that I'm having those problems. I can help out by running some tests, anything to keep others from having the same problem in the future. I've got a second unmodified installation of just the FDS on my box that I can use for testing. Just tell me what I need to do.
Re: LFDS memory usage [message #233569 is a reply to message #233437] Sat, 09 December 2006 20:56 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Well firstly install Valgrind on the machine (if it is not already installed).
Second, set up a LFDS with the stock unmodified no SSAOW 2.9.2 LFDS scripts.so/bhs.so and confirm that it is leaking memory.
After you confirm that, go into the server folder and type
export LD_PRELOAD=./scripts-RH8.so (if on RH8) or export LD_PRELOAD=./scripts-RH73.so (if on RH73). Then do
valgrind --tool=memcheck --leak-check=yes --num-callers=10 --log-file=renegade <name of server binary>

It should then load the server and the custom scripts.dll and instrument it. Do whatever it is that you need to do to get it to leak memory and then exit the server (exit it properly with QUIT and dont force terminate it or ctrl-c or whatever that doesnt give it the proper chance to shut down)
Then once thats done, look for a file called renegade.pidnnnnn where nnnnn is some number and post it here or something, that will contain information on where it is leaking memory.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: LFDS memory usage [message #233605 is a reply to message #233569] Sun, 10 December 2006 02:50 Go to previous messageGo to next message
bigburd88 is currently offline  bigburd88
Messages: 7
Registered: December 2006
Location: Owensboro, KY, USA
Karma: 0
Recruit
On a fresh install and version 2.9.2 of scripts-RH8.so/bhs.so, the server leaks no memory. The usage tops out at 55M.

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
13067 renegade  15   0 65464  55m 4460 S  0.0  5.6   0:01.50 renegade_server


Since the problem seems to be in the SSCP1.3+BRenBot addon, how can I get that one to work?

edit: Read "how can I get that one to work?" as "will it work if I copy the 2.9.2 version of scripts.so/bhs.so into its folder?". I'm a total newb at this software package.

[Updated on: Sun, 10 December 2006 02:53]

Report message to a moderator

Re: LFDS memory usage [message #233614 is a reply to message #233605] Sun, 10 December 2006 05:17 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
bigburd88 wrote on Sun, 10 December 2006 03:50

On a fresh install and version 2.9.2 of scripts-RH8.so/bhs.so, the server leaks no memory. The usage tops out at 55M.

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
13067 renegade  15   0 65464  55m 4460 S  0.0  5.6   0:01.50 renegade_server


Since the problem seems to be in the SSCP1.3+BRenBot addon, how can I get that one to work?

edit: Read "how can I get that one to work?" as "will it work if I copy the 2.9.2 version of scripts.so/bhs.so into its folder?". I'm a total newb at this software package.

Then, SSAOW is at fault. It needs a total, ground-up rewrite. Razz Razz Tell Me Listen


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: LFDS memory usage [message #233620 is a reply to message #233437] Sun, 10 December 2006 06:22 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

If you need the server side mods of SSAOW, you will have to wait for SSAOW to start using a more recent scripts.dll (such as 2.9.2 or more likely 3.0). And then you will have to wait for someone with the skills, time and interest to go through SSAOW and find and fix all the memory leaks.

If you dont need SSAOW, you can just copy the 2.9.2 so files over and it will work no problems.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: LFDS memory usage [message #233634 is a reply to message #233620] Sun, 10 December 2006 08:52 Go to previous message
bigburd88 is currently offline  bigburd88
Messages: 7
Registered: December 2006
Location: Owensboro, KY, USA
Karma: 0
Recruit
It looks like everything is working now, but it's probably the coat hanger holding the bumper on the car so I'm going to be pretty jumpy around the setup until I know it's stable. Thanks to everyone for the advice.

Now on getting XWISP to work... that's a different story. If anyone has had considerable success in getting it to work, I could use some pointers, but I won't go on because this thread will spiral off topic.
Previous Topic: I need access to a RH73 LFDS machine
Next Topic: Dedicated Servers
Goto Forum:
  


Current Time: Sat Nov 02 08:47:02 MST 2024

Total time taken to generate the page: 0.01008 seconds