Out of RAM, what about HDD?

swift31

New member
Local time
12:55 AM
Messages
6
Location
İstanbul - Bayrampaşa
I am playing a game on my 32 bit Win 7 Ultimate System with 3 GB RAM, I have set something to adress more than 2 GB memory for one application. Game is using all the available memory which is generally around 2.65 gb of RAM. When that game needs to adress memory more than 3 GB memory, there is no more available space on my physicial memory(RAM). So game crashes to desktop.

But, I read about something that uses HDD space when there is no more space in RAM called "Virtual Memory". I had Virtual Memory settings in my Windows with 9000 MB initial size & 16000 MB maximum size(which is in game installed disk, not in OS installed disk). So it looks like lack of memory problem has been solved, but there is no Virtual Memory usage actually in task manager, looks like my game using only RAM.

After all of this, I'm confused. Why Windows didn't swap memory to HDD from RAM though there is no available RAM space? Do you have any advice to force program to use Virtual Memory when there is no available RAM space?

All helps are appreciated. Thanks for any kind of help. :)
 
Last edited:

My Computer My Computer

At a glance

windows 7 ultimate 32 bitintel pentium dual core e5300 2.6 GHz2 GB 800 MHZ + 1 GB 667 MHZ DDR2ATI Radeon x1600
Computer type
PC/Desktop
OS
windows 7 ultimate 32 bit
CPU
intel pentium dual core e5300 2.6 GHz
Motherboard
BIOSTAR G31D-M7
Memory
2 GB 800 MHZ + 1 GB 667 MHZ DDR2
Graphics Card(s)
ATI Radeon x1600
Hard Drives
7200 RPM Western Digital
Is this how you did it?

Run cmd as admin:
Code:
bcdedit /set IncreaseUserVa 2600

restart PC.

If it fails, lower the value - experiment.

To remove it:
Code:
bcdedit /deletevalue IncreaseUserVa

If you used a 4GB patcher, there should be a backup copy of the game exe in game folder. Rename it back to original, and delete the patched exe.

Also, 5GB paging file (virtual memory) is enough for 3GB RAM. You don't need 9-16GB.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1AMD Phenom 2 1090T2x8GB Kingston HyperX Fury Black 1600Mhz Unga...MSI GTX 970 Gaming 4G
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
I did that as 2700 and after I set that as 4000 (I know 3GB is equal to 3072 MB but I wanted to program be at full capacity and to set maximum allocation.)
I used CFF explorer and developers of the game say that patching is needed. So it shouldn't be a problem.
Actually, I tried to lower UserVa value, but program has crashed faster while value is lowering.
So i'm going to lower the virtual memory, but isn't there any solution really?
 

My Computer My Computer

At a glance

windows 7 ultimate 32 bitintel pentium dual core e5300 2.6 GHz2 GB 800 MHZ + 1 GB 667 MHZ DDR2ATI Radeon x1600
Computer type
PC/Desktop
OS
windows 7 ultimate 32 bit
CPU
intel pentium dual core e5300 2.6 GHz
Motherboard
BIOSTAR G31D-M7
Memory
2 GB 800 MHZ + 1 GB 667 MHZ DDR2
Graphics Card(s)
ATI Radeon x1600
Hard Drives
7200 RPM Western Digital
There are a number of misconceptions about how Windows manages memory. This is far more complex than you imagine and would take quite a bit of space for even a basic introduction.

I am playing a game on my 32 bit Win 7 Ultimate System with 3 GB RAM, I have set something to adress more than 2 GB memory for one application.

That setting has nothing to do with RAM usage at all but how much private virtual address space is available to applications that are Large Address Space Aware. Most are not. The problem you are having probably is due to exhaustion of private virtual address space, not a shortage of RAM. RAM shortages rarely cause any problems except poor performance.

So it looks like lack of memory problem has been solved, but there is no Virtual Memory usage actually in task manager, looks like my game using only RAM.

Where are you expecting to see this? There is nothing in Task manager that will show how much pagefile is being used for an application. It really isn't that important.

What was the exact setting you made?

Edit: The highest valid value for IncreaseUserVa is 3072 but even that is often too high. I am not certain what happens with higher values but I suspect the setting would be ignored and the default value (2048) used.

There is a downside to setting this value too high. If too high the kernel will be short of address space and that can produce a variety of problems. That is why the setting is not on by default.

There is a huge amount of misinformation on the Internet regarding this setting.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
To be honest:
- You need approximately 1GB memory for Windows itself
- That leaves you with 2GB memory
- x86 apps can only address 2GB memory (unless patched, but this is mostly for 64bit OS with more RAM)

I would just remove the patch, and remove the bcdedit entry (in my first post).

developers of the game say that patching is needed

Can you give a link to this? I bet they are talking about 64bit systems.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1AMD Phenom 2 1090T2x8GB Kingston HyperX Fury Black 1600Mhz Unga...MSI GTX 970 Gaming 4G
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
I understood how much virtual memory is used on the Processes>Commit. But it was 3 not 0, i was false.

GokAy, i did that already but still crashing. Yes it is for 64bit systems but there is also /3GB switch on 32 bit OS. So I tried this because here is saying later Windows model are be able to /3GB switch.

Problem is all about the virtual adress space, is it? So I'm going to change my windows to 64bit. Actaully my processor is 64 bit and motherboard also. But i have no more RAMs than 4 GB and my taiwan-made motherboard supports up to 4 GB though it is 64 bit. I didn't understand that situation. But I read something that telling about like "x64 OS hasn't got so many positive effects on 4GB or lesser memory systems."

What can I do, do I have to change my OS bit support?

Is my processor' effectiveness going to be lowered? (Actually its effectiveness have no big importance to me just for curiosity)
 

My Computer My Computer

At a glance

windows 7 ultimate 32 bitintel pentium dual core e5300 2.6 GHz2 GB 800 MHZ + 1 GB 667 MHZ DDR2ATI Radeon x1600
Computer type
PC/Desktop
OS
windows 7 ultimate 32 bit
CPU
intel pentium dual core e5300 2.6 GHz
Motherboard
BIOSTAR G31D-M7
Memory
2 GB 800 MHZ + 1 GB 667 MHZ DDR2
Graphics Card(s)
ATI Radeon x1600
Hard Drives
7200 RPM Western Digital
A 32-bit program on a 32-bit Windows 7 will get 2GB. A 32-bit program compiled PAE aware will get 4GB on a 64-bit Windows 7; Otherwise, it gets assigned 2GB.
 

My Computer My Computer

At a glance

Windows 7 Pro-x64i7-2600 3.4GHz - 3.8GHz Turbo8Gb - 2x4GB, Muskin 991770 PC3-1333Integrated Intel HD 2000
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
Another victim of Microsoft's word play:
I read about something that uses HDD space when there is no more space in RAM called "Virtual Memory".
Microsoft seems to have invented this ruse in the mid- or late-1990s. I guess Virtual Memory sounds sexier and more attractive than Demand Paging, the latter being a correct description of what you're referring to, while the former is something else entirely.

Windows (and most GP operating systems) have both paging and VM. But they're two different things. Virtual Memory has nothing to do with disk storage. Yet a generation has grown up with the false notion that it does.

Any CS student knows better. So does Microsoft. Read the MS/Richter books from that era. He lays out the plain facts, with no mention of the ruse. (I don't think he's the perpetrator.)
 

My Computer My Computer

At a glance

Windows 10 x64i7-7700K16 GB 2400 MHzGTX 1060
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 10 x64
CPU
i7-7700K
Memory
16 GB 2400 MHz
Graphics Card(s)
GTX 1060
Sound Card
Integrated, plus external Presonus Audiobox USB
Monitor(s) Displays
2x AOC 27"
Screen Resolution
1920x1080
Hard Drives
512 GB M.2 SSD
2 TB 7200 RPM disk
Internet Speed
110 Mbps
Browser
Firefox
A 32-bit program on a 32-bit Windows 7 will get 2GB. A 32-bit program compiled PAE aware will get 4GB on a 64-bit Windows 7; Otherwise, it gets assigned 2GB.
With CFF Explorer, 4GB Patcher like programs, allowing more than 2 GB to use is equal to compiling PAE aware? So my games executable file has got non-2gb limit version, and is it true to change my windows up to 64 bit?

Edit: Actually, you're saying it is limited to 2 GB but I'm seeing that game is using 2.6 GB memory around right now. I guess, I didn't understand this memory stuff completely.
 

My Computer My Computer

At a glance

windows 7 ultimate 32 bitintel pentium dual core e5300 2.6 GHz2 GB 800 MHZ + 1 GB 667 MHZ DDR2ATI Radeon x1600
Computer type
PC/Desktop
OS
windows 7 ultimate 32 bit
CPU
intel pentium dual core e5300 2.6 GHz
Motherboard
BIOSTAR G31D-M7
Memory
2 GB 800 MHZ + 1 GB 667 MHZ DDR2
Graphics Card(s)
ATI Radeon x1600
Hard Drives
7200 RPM Western Digital
There is an important detail about these 4 GB Patcher utilities that is rarely mentioned:

By default a 32 bit process receives a 2 GB virtual address space. Note that this is address space, not RAM. They are very different but I won't go into that here. A 32 bit OS can be configured to increase this to 3 GB and a 64 bit OS automatically to 4 GB. But this is opt in for 32 bit processes. They must specifically indicate to the OS that they are prepared to accept this or they will receive the normal 2 GB of address space. The 4 GB patcher utilities sets the Large Address Aware flag in the application that tells the 32 bit application to request this. The problem being that you may be forcing the application to lie about it's capabilities. The application may not be able to function properly (or at all) in such an environment. The fact that the developer did not set the flag himself indicates that the application was probably never tested in this way and may have serious problems with it. This includes many popular commercial applications. Testing an application for this is very complex and may not be completely reliable. The results of improperly setting the flag are unpredictable but often nasty. And the problem may only occur under unusual situations.

Note that the flag is "Large Address Aware", not PAE as mentioned in a previous post. PAE is something very different and of no consequence to applications.

Memory management in a modern OS is VERY complex. I have spent considerable time studying it and make no claims of understanding it fully.
 

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
I know that I don't know.

Windows 7 Memory Management is way over my head.

In my opinion trying to out smart Windows 7 when it comes to Memory Management is a waist of time.

If a video card needs more ram then you get a video card with more ram.

If a operating system needs more ram, then you get more ram it can use.

If a 32 bit system needs more ram then you get a 64 bit system plus more ram to meet the needs.

I have not found a magic trick that can fix a lack of ram other than getting more ram with the proper hardware to match the needs.
 

My Computer My Computer

At a glance

Windows 10 Pro. 64/ version 1709 Windows 7 Pr...Intel i7-6800K @ 4.3Corsair Platinum 16 gig @2400EVGA GTX 1070 OC
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
I think that I understand something which is needed for me about VAS. Playing that game is not a big problem, I'm doing that just for my curiosity and I will test that game on 64 bit OS.

LMiller7, everbody was playing that game 64 bit OS with LAA modded and there is no problem as I see. Perhaps I will be able to play game properly but still (unfortunately) I just suspect that what thing causes those crashes, I'm not be able to sure about that. And also I am sure about there is no capability problem. It is about my PC. Looks like I can't understand that problem but ask some of the Windows developers what did you do actually on memory management stuff? :p

OK, thanks for everyone who helped and informed me and actually LMiller7, because I searched about VAS & that was very eye-opening to me. I'm just a teenager who tries to understand that kinda problems but I'm still guessing, didn't understand so yes looks very*99999 complex. :) Thanks!
 

My Computer My Computer

At a glance

windows 7 ultimate 32 bitintel pentium dual core e5300 2.6 GHz2 GB 800 MHZ + 1 GB 667 MHZ DDR2ATI Radeon x1600
Computer type
PC/Desktop
OS
windows 7 ultimate 32 bit
CPU
intel pentium dual core e5300 2.6 GHz
Motherboard
BIOSTAR G31D-M7
Memory
2 GB 800 MHZ + 1 GB 667 MHZ DDR2
Graphics Card(s)
ATI Radeon x1600
Hard Drives
7200 RPM Western Digital
Back
Top