Author Topic: Memory consumption and the next official release  (Read 5392 times)

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Memory consumption and the next official release
« Reply #15 on: March 27, 2010, 10:37:34 am »
Yea, this is the sort of thing that probably won't actually cause a problem-visible-to-the-player unless it's a really long session or a really large game.  120k+ foreground objects is a lot, though easily achievable with mine enthusiasts and reachable in big/long games.

What I'm interested in from pretty much any significant play-session, though, is the memory consumption of the AIWar.exe at the beginning and end (and preferably some mid-points) and after a re-load of the save at the end, to see if it's holding on to tons of memory.

But thanks very much for the "it's not dying here" note, it is comforting to know that people can still play the latest version ;)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Fleet

  • Hero Member
  • *****
  • Posts: 633
Re: Memory consumption and the next official release
« Reply #16 on: March 27, 2010, 11:25:28 am »
I'm stressing the system now...I'll report back shortly.

7.3/7.3 Mine Enthusiast and Special Forces Captain
120 Planet snake, with 8 homeworlds.

Main menu start: 100,000K
92405 foreground objects at game start, 610,000K mem after 15sec.
100,200 total ships, 932,000K @ 10min
102,100 total ships, 955,000K @ 15min (end, no more time!)

Restarted, 102,040 FG objects, memory started at 615,000K at start of game reload, rose quickly, and leveled off at 735,000K (I didn't have time to wait and see, but it stopped climbing rapidly, and seemed more stable).

I should be able to get results from a longer game later..
« Last Edit: March 27, 2010, 11:35:17 am by Fleet »

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Memory consumption and the next official release
« Reply #17 on: March 27, 2010, 11:40:38 am »
Thanks for the info.  Been stressing my system too trying to run CLRProfiler on this thing... it assimilated my hard drive!
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline vonduus

  • Sr. Member Mark III
  • ****
  • Posts: 439
Re: Memory consumption and the next official release
« Reply #18 on: March 27, 2010, 01:37:15 pm »
I am playing on a 80 planet grid map against an Entrenched Homeworlder and a Sledgehammer, diff 7/7.

Main menu: 100.464 KB

44.485 foreground objects

load: 353.596 KB
15 min.: 529.540 KB
30 min: 519.388 KB
45 min.: 551.720 KB
60 min.: 531.492 KB

I saved the game and restarted: 369.448 KB

If you miss the alert, you die. If you get the alert, you die. Summa summarum: You die. (Kierkegaard on CPAs)

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Memory consumption and the next official release
« Reply #19 on: March 27, 2010, 01:40:11 pm »
Thanks, that's good info.

Pouring over CLR profiler logs... the difficulty here is that it's something that comes up over a long runtime and the CLR profile would completely fill my hard disk in an hour, tops, and only simulate about 10 minutes of game time in the process ;)

So may have to do more of a hunt-and-peck on all code that's changed since 3.060, but the profiler is helpful in other ways.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Memory consumption and the next official release
« Reply #20 on: March 27, 2010, 01:59:07 pm »
Played for an hour an a half to day (completed the 120 planet map *dances*)
Congratulations :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Rod Serling

  • Newbie Mark III
  • *
  • Posts: 46
Re: Memory consumption and the next official release
« Reply #21 on: March 27, 2010, 04:26:14 pm »
Well, this probably isn't specific enough, but after playing about 3 hours last night, saving, leaving the game paused, and playing about 5 more hours (I'm at in-game hour 8) this morning, I was at 1.2 GB of memory used. Restart, reload the save, and cut down to about 400k

Not sure where to find total foreground objects.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Memory consumption and the next official release
« Reply #22 on: March 27, 2010, 04:33:56 pm »
The info is helpful in that it confirms that the leak is still happening.

The foreground object number comes up during load, and can be seen using in the F3 Debug info as "Total Ships in Game".

Well, I've found a few things that could potentially be contributing to the problem, and fixed them.  Still no smoking gun, though.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Rod Serling

  • Newbie Mark III
  • *
  • Posts: 46
Re: Memory consumption and the next official release
« Reply #23 on: March 27, 2010, 04:36:36 pm »
Total ships in game was 49,000. Oh this was all 3.0.8.7

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Memory consumption and the next official release
« Reply #24 on: March 27, 2010, 04:38:24 pm »
Yea, 49000 is pretty normal for a non-mine-enthusiast midgame.  Thanks :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Atrieus

  • Newbie Mark II
  • *
  • Posts: 10
Re: Memory consumption and the next official release
« Reply #25 on: March 28, 2010, 09:08:47 am »
I see a significant jump in memory allocation when sentinel frigates are in play.  In particular, when I jump into an AI planet with 200 or more AI sentinel frigates with a largish fleet (750+ ships).  There does not seem to be a reduction when my fleet leaves the system, or is destroyed.

Perhaps the huge range has a target list growing outside of bounds?  Or might have something to do with the modifier to dmg, caused by multiple of the frigates in the same planet?


Atrieus

Offline vonduus

  • Sr. Member Mark III
  • ****
  • Posts: 439
Re: Memory consumption and the next official release
« Reply #26 on: March 28, 2010, 11:28:59 am »
3.087

main menu: 95.584
45.035 fg objects

load: 452.324 KB
4 hours: 870.300 KB
6 hours: 904.752 KB
8 hours: 981.148 KB

after restart:

main menu: 95.808 KB
49.343 fg objects

load: 374.004 KB

Unrelated sidenote: The repair tugs have stopped hauling Dyson Gatlings, thanks for the fix.

If you miss the alert, you die. If you get the alert, you die. Summa summarum: You die. (Kierkegaard on CPAs)

Offline Kalzarius

  • Sr. Member Mark II
  • ****
  • Posts: 422
Re: Memory consumption and the next official release
« Reply #27 on: March 31, 2010, 08:50:07 pm »
3.087


TimeServerFG ObjectsClient
Startup100MB--104MB
Load*361MB98,410--
Post-Load431MB98,410390MB
0:15621MB97,979500MB
0:40697MB97,652620MB
1:10708MB98,587625MB
1:40728MB99,119640MB
2:40750MB100,056616MB
3:00797MB101,260631MB
3:30**980MB91,480833MB
4:00**1070MB89,163917MB
5:00**1097MB84,155931MB
5:15**1124MB83,155945MB
* Prior to client connection
** During battle

Although I wasn't paying attention, the client noticed that upon quit, memory consumption jumped to 1.4GB.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Memory consumption and the next official release
« Reply #28 on: April 08, 2010, 08:12:20 pm »
Thanks for the data :)

Has anyone seen out-of-control memory consumption in 3.091?  I caught a real biggie a couple prereleases ago and between that and other fixes that could have been it.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Kalzarius

  • Sr. Member Mark II
  • ****
  • Posts: 422
Re: Memory consumption and the next official release
« Reply #29 on: April 20, 2010, 01:34:51 pm »
3.087


TimeServerFG ObjectsClient
Startup100MB--104MB
Load*361MB98,410--
Post-Load431MB98,410390MB
0:15621MB97,979500MB
0:40697MB97,652620MB
1:10708MB98,587625MB
1:40728MB99,119640MB
2:40750MB100,056616MB
3:00797MB101,260631MB
3:30**980MB91,480833MB
4:00**1070MB89,163917MB
5:00**1097MB84,155931MB
5:15**1124MB83,155945MB
* Prior to client connection
** During battle

Although I wasn't paying attention, the client noticed that upon quit, memory consumption jumped to 1.4GB.

For 3.093, the numbers were much more favourable.  FG Objects started at 83,412 and ended at 78,102 with an average server memory usage of 850MB and an  average client usage of 750 MB.  Both server and client jumped about 40-60MB upon application close, at 929MB and 860MB, the peak memory usage of the game.

Things are definitely improved, and memory usage didn't only fluctuate in an upward direction. ;D