|
|
|
 |

April 13th, 2007, 06:18 AM
|
 |
Colonel
|
|
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Memory leak question
I finally got the memory leak crash:
After only 3 turns in an advanced BM 1.05 game with 14 AI empires (usual complete turn processing time 5-10 minutes) at stardate around 2415.0.
Now the question how to avoid best this game crash:
Is it better to make a fixed virtual memory size (how much?) or to let the system (Windows XP) handle the size?
Thank you for your answer.
|

April 13th, 2007, 07:03 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: Memory leak question
Virtual memory should always be fixed. And as for size, it seems 2.5x your ram is reccomended.
* Note: It's been about a year since I last checked on that.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

April 14th, 2007, 09:41 PM
|
 |
Private
|
|
Join Date: Jul 2005
Location: In a chamber of horrors
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Memory leak question
I don't know how many people have tracked this, but this is my observation. I have dual monitors and I recently upgraded my cpu to a dual core. Since I have done this I run the Windows Task Manager in one monitor and play the game in the other just to see how the program is using the dual cores. Here's what I noticed about SEV on my machine. The page file usage increases around 125 meg per turn, so after about 5 turns my page file usage is running at 950 meg. Since I have 2 gig in my computer this isn't a problem for me at this point, but I can see where it would be a big problem for those who only have 1 gig. On a fresh reboot I start with approximately 230 meg and after I play 6 turns, save, get out of the game I have around 270 meg. It appears to me that even if I exit the game SEV doesn't release all of the memory it used. The latter part may be common with most other programs as well.
Here's my take on the memory leak: it appears as though SEV does not release the previous turns data. What I mean by this is that by the time you get to turn 5, turns 1-4 are still in the page file.
Anybody else noticed the same thing I have? If my observations can be confirmed or debunked we may be able to help Aaron isolate the memory leak problem and finally get it fixed. It is my opinion that the next patch should concentrate solely on fixing the memory leak.
Edit: After playing another 5 turns I noticed the same thing about page file usage, however when I quit the page file usage returned to about the same size I had when I started. This leads me to believe that SEV does clear itself out of memory when you quit the game, but still retains each turn in the page file while playing.
Any thoughts?
__________________
Computer AI easy: zero beers, Computer AI average: 6 beers, Computer AI hard: 12 Beers, Computer AI impossible: a fifth of whiskey.
|

April 15th, 2007, 03:01 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Memory leak question
Even if SE5 didn't explicitly clear its memory when it exited, the kernel level process management routines will free up all virtual memory mapped by an application upon termination. Unless you are using some garbage OS like win98, though; with win9x, anything can happen.
|

April 15th, 2007, 07:08 AM
|
 |
Corporal
|
|
Join Date: Apr 2007
Posts: 135
Thanks: 0
Thanked 2 Times in 1 Post
|
|
Re: Memory leak question
With hard disk space cheap as it is now, I've simply set the swap file to 4096 Mb (max) on my faster disk, while Se5 is installed on the secondary slower disk. Since I only have 512Mb SDRAM, it greatly helps.
|

April 15th, 2007, 11:58 AM
|
 |
First Lieutenant
|
|
Join Date: Jan 2001
Location: Toledo, OH
Posts: 641
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Memory leak question
Maybe SE5 is keeping combat replays in RAM?
__________________
Assume you have a 1kg squirrel
E=mc^2
E=1kg(3x10^8m/s)^2=9x10^16J
which, if I'm not mistaken, is equivilent to roughly a 50 megaton nuclear bomb.
Fear the squirrel.
|

April 15th, 2007, 12:00 PM
|
 |
Private
|
|
Join Date: Jul 2005
Location: In a chamber of horrors
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Memory leak question
I have mine set to 4092 and I use XP professional, but that doesn't explain why the game crashes when the page file hits 1.2gb to 1.5gb on my system.
The only explanation I can come up with is this; SEV stores the previous turn in the page file. When you hit the next turn button SEV goes to virtual memory and brings that information to ram. Since each turn appears to use only 100-150megs in the page file and the game, at least on mine, and uses between 400-500meg of ram, this wouldn't be a problem. However if SEV brings the entire page file allocated to the game into memory it would become a problem.
__________________
Computer AI easy: zero beers, Computer AI average: 6 beers, Computer AI hard: 12 Beers, Computer AI impossible: a fifth of whiskey.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|