running out of virtual memory

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
ReadyMan
DBB Admiral
DBB Admiral
Posts: 1887
Joined: Sat Aug 07, 1999 2:01 am
Location: Oahu, Hawaii USA

running out of virtual memory

Post by ReadyMan »

I play a game called Rise of Nations that eats up my memory like crazy. Whenever I finish a game that takes 30 or more, trying to activate anything takes forever, and the only way I can get things to load properly again is to reboot.
Is there a way to clear the memory w/o rebooting?

thx!

-RM

--I have 512mb of Rambus on a P4 2.26
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

What OS are you running?
User avatar
ReadyMan
DBB Admiral
DBB Admiral
Posts: 1887
Joined: Sat Aug 07, 1999 2:01 am
Location: Oahu, Hawaii USA

Post by ReadyMan »

win xp home
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:

Post by Krom »

Your gonna hate me for this, but the only real solution is to buy more memory. ;) And rambus is still expensive last time I looked.
Matrix
DBB Alumni
DBB Alumni
Posts: 763
Joined: Tue Sep 18, 2001 2:01 am
Location: NJ
Contact:

Post by Matrix »

Just build that new computer u have been planing on getting for like the past year now :P
User avatar
ReadyMan
DBB Admiral
DBB Admiral
Posts: 1887
Joined: Sat Aug 07, 1999 2:01 am
Location: Oahu, Hawaii USA

Post by ReadyMan »

Xciter--Thanks for the tip....and Its set to 384 mb...
Will increasing it help?

Matrix-- :) sir, yes sir! I'm working extra to try and get a few extra $ for that system (and waiting for the 7800GT to show up to lower prices--which should be pretty quick)

Krom--I hate to drop any more $ into this system as it becomes my wife's office machine as soon as I get he new one...
Matrix
DBB Alumni
DBB Alumni
Posts: 763
Joined: Tue Sep 18, 2001 2:01 am
Location: NJ
Contact:

Post by Matrix »

I agree with xciter, u need a larger page file, I say no less then 1GB.

And nice choice on the 7800GT, I've been thinking about pitching my AGP MSI and going to a DFI w/ a PCIe 7800GT
User avatar
Jeff250
DBB Master
DBB Master
Posts: 6539
Joined: Sun Sep 05, 1999 2:01 am
Location: ❄️❄️❄️

Post by Jeff250 »

You don't need to clear your memory. That's why things are running slow to begin with. After the game used it all and quit there's nothing left stored in it and it all has to be reloaded. :P But yes, follow above suggestions.
User avatar
ReadyMan
DBB Admiral
DBB Admiral
Posts: 1887
Joined: Sat Aug 07, 1999 2:01 am
Location: Oahu, Hawaii USA

Post by ReadyMan »

there are two settings:
Initial size:384
Maximum size:768

what should I set these both to?

(sorry for the dumb question)
User avatar
CDN_Merlin
DBB_Master
DBB_Master
Posts: 9781
Joined: Thu Nov 05, 1998 12:01 pm
Location: Capital Of Canada

Post by CDN_Merlin »

setting your pagefile to 1 size is best as it will never get fragmented. I'd set it to zero, reboot, defrag, then reset it to 768 min 768 max. This will make sure the entire file is in one continuous spot.
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

User avatar
Ferno
DBB Commie Anarchist Thug
DBB Commie Anarchist Thug
Posts: 15163
Joined: Fri Nov 20, 1998 3:01 am

Post by Ferno »

User avatar
ReadyMan
DBB Admiral
DBB Admiral
Posts: 1887
Joined: Sat Aug 07, 1999 2:01 am
Location: Oahu, Hawaii USA

Post by ReadyMan »

Matrix
DBB Alumni
DBB Alumni
Posts: 763
Joined: Tue Sep 18, 2001 2:01 am
Location: NJ
Contact:

Post by Matrix »

User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:

Post by Krom »

384 MB page file on a 512 MB system, yikes that was a bit small, for 512 I'd set it to 768-1536. On my 1 GB system I have it set to 1536-3072.
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

Xciter wrote:You don't need to lock the page file!!! It's one continuos file which will only grow if you reach it's minimum and if set up right it's not going to grow. Read the part of that FAQ about Dynamic sized page files.

locking it and you lose the ability of it it grow if needed...
1. Space is cheap.
2. Windows is paranoid about loosing data. if it will grow the pagefile, windows will dump the data to disk immediatly... anything past the min size will be fragemented, further degrading performance during the pagefile resizing(in writes of 4KB each). Windows is the modern only operating system that allows that - and its a bad hack that exists that still around do to people bitching about win95 not running on 386s with 4 megs of memory and a 30 Meg HD. If the option wasn't there to begin with, nobody would be saying its a good thing to do.
User avatar
BUBBALOU
DBB Benefactor
DBB Benefactor
Posts: 4198
Joined: Tue Aug 24, 1999 2:01 am
Location: Dallas Texas USA
Contact:

Post by BUBBALOU »

Krom wrote: I have it set to 1536-3072.
X2
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

Xciter wrote:If on the other hand the system needs more pagefile space and it can't, because you've disabled expansion, some program, or perhaps the OS, will outright fail. This is far, far worse than the very mild and occasional performance hits you take in the "expansion enabled but not used often" scenario.
That is correct behavior. If for some reason the OS needs more than the maximum amount of pagefile specified, I surely hope it would fail.

But your probably looking at this thru the filter of your super fast scsi drives and SMP systems, where your choice of hardware minimizes the performance impact of such pagefile expansion... and not witnessed it on a machine with a low-end 5400 rpm ide drive with a process that was also thrashing the HD at the same time it was adding more pagefile. Locking the page file in that instance would've reduces the CPU overhead concering the pagefile expansion - it just becomes writes to the pagefile, rather than writes to the file table and the pagefile.

But Im thinking you treating the swap file as an extension of real ram, which is incorrect.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Xciter wrote:Even if the pagefile fragments, it's going to be fragmented in MUCH larger chunks then Windows can write to it in (64k)


Won't Windows only write to the pagefile in 4K blocks, considering that's the size of a page?

Regardless, locking the pagefile seems foolhardy unless you notice constant HDD thrashing in a memory-intensive program (like a game or something). Then locking the pagefile would give a good estimate as to at what point it gets full, useful for increasing the minimum size of the pagefile. Why would anyone want to disable the safety buffer that Windows gives you, especially since it warns you anyway when it's expanding the pagefile? What's worse, no process has priority in memory allocation over any other process, meaning that Explorer.exe and MemoryHungryProcess.exe will compete and eventually both die due to the lack of resources.
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:

Post by Krom »

At most I've seen my page file get into two fragments and that was easily fixed since I have multiple drives. When it did get fragmented, it was on the order of several hundred MB split off, not 4 or 64k.
User avatar
Top Gun
DBB Master
DBB Master
Posts: 8099
Joined: Wed Nov 13, 2002 3:01 am

Post by Top Gun »

Pardon my complete technical ignorance, but what exactly is a pagefile? I'm asking because, after running FS2_Open, my system (P4 3.0, 512 RAM, Radeon X300 64MB) runs like a dog, usually until I restart it. I was wondering if fiddling with the pagefile size would help to alleviate that problem or whether it's just caused by the limitations of my hardware. If it would help, where exactly would I look to fiddle around with it?
Post Reply