Memory Upgrade: Is It Time To Add More RAM?

32-Bit: Bottlenecks, Tales, And A Trick

Mistakes, tales, and things that definitely don’t work

Once and for all, the 32-bit (x86) versions of Windows XP, Vista, and 7 cannot handle more than 4 GB of RAM. PAE modes, registry hacks, and different boot options will definitely not produce the desired result. In fact, these have the potential to cause system instability and crashes.

We know that a 32-bit application only can address a maximum of 2 GB of RAM and that 32-bit Windows systems can actually handle just 3.25 GB (or even less if more than 4 GB of memory is installed). Windows Vista and 7 will show the full 4 GB in the System Info, but the "missing" RAM is reserved by the system for hardware that might be incompatible with 64-bit systems. Also, a portion of the system memory is needed by the graphics card, although the size of this portion is not the same as the size of the graphics card's video RAM. This is another misconception we'd like to dispel.

All graphics cards have a simple memory management unit called the GMP (graphics memory page table) on PCIe cards or GART (graphics address remapping table) on AGP cards. These are used to map different pages of the system memory into the address space of the GPU. This results in subsets of system RAM memory pages being accessible for the GPU at any time. Conversely, the video RAM must be addressable by the system.

The amount of system RAM utilized by this mapping process depends on the total capacity of the memory on your graphics card, which must be almost identical to what's available in system RAM. However, the memory capacity required for this mapping function is still a bit smaller than the actual capacity of the graphics memory. Finally, the amount of memory reserved for graphics also depends on the capacity of the system memory buffer that can be used by the video card as an external frame buffer for graphics purposes.

A common misconception found occasionally on forums is that the entire graphics card memory is always mirrored in the system RAM. This is not true.

The swap file trick: when RAM alone is not enough

The term "swap file" (or page file) refers to a file on a storage medium, such as a hard drive, used by the system in case it needs a larger address space than the available memory in physical RAM. Swap files prevent overflows and memory deficiencies. The operating system manages the memory such that data needed by active processes are typically stored in the faster RAM.

In memory-critical situations, there is a risk that all of this data won't be physically accommodated in system memory. Of course, this depends on the amount of physical memory installed. The system uses the following work-around: the addressable system memory is expanded and any data overflow is redirected to the swap file. Think of it as hard drive space that complements system memory. The RAM and swap file together are referred to as virtual memory, indicating the total amount of memory actually available when needed.

Windows is smart enough to store data from minimized applications or idle applications in the swap file so that active processes can access more RAM. The disadvantage of this solution is obvious. The performance of a mechanical hard drive is only a fraction of the throughput realized with memory modules. Solid state drives (SSDs) are an improvement, but the general problem remains. Frequent swap operations are poison to an SSD, possibly decreasing its speed.

However, by using a swap file, we can extend the virtual memory size to 8 GB or more, even in 32-bit versions of Windows. Doing so simply sacrifices speed, since "mechanical" RAM is seriously slow.

A simple solution

What if it were possible to use physical RAM like a hard drive and thus cross over the magical 4 GB limitation? You can do this by creating a so-called RAM disk from your system memory and then storing the swap file on it. The system will interpret the RAM disk as a normal hard drive, not noticing the physical difference. This way, if you have 16 GB of physical RAM installed, you can add an additional 12 GB to the 4 GB recognized as system memory.

Although this virtual memory is based on memory modules, it will be slower than directly-accessible RAM in a 64-bit system because data will have to be copied from the swap file to the RAM before it can be used. This is sometimes a good compromise, as the approach is much faster than any swap file on a hard drive. To take advantage of this tweak, you'll need some suitable RAM disk software. Check out the next couple of pages to see how we outsmart the system and boost our 32-bit Windows installation using this approach.

Create a new thread in the US Reviews comments forum about this subject
This thread is closed for comments
153 comments
Comment from the forums
    Your comment
    Top Comments
  • holygigi
    Finally a good read on Tom's, not a news about a rumor that a fruit company might provide a tease about something shiny.
    I use 8GB for about 2 years now, the best thing about it (and I didnt find this covered in the article) is that alt+tab-ing out from a game to windows and back to the game is almost instant. Even the hungriest game uses about 3-3.5 GB. Windows again about 2.5. So you always have 2GB free. Even though I dont have a SSD yet, after the initial slower start of an app (browser, anything), going back to it is instant. For me this is the real benefit of having more ram. The marginal (if any) FPS increase is not the main selling point. Multi-tasking is.
    33
  • Other Comments
  • doyletdude
    Hmmm... i'm concerned because i use triple channel so i'm currently at 6gb, which is under recommendation however to upgrade to 12gb might be to much, especially since i've heard that using more RAM slots negativley affects overclocking stability.
    4
  • Lutfij
    awesome read for the masses, thanks Tom!
    8
  • hmp_goose
    I, too, run an X58 chipset, with Win7-64, and don't know what this article is telling me . . .
    -13
  • holygigi
    Finally a good read on Tom's, not a news about a rumor that a fruit company might provide a tease about something shiny.
    I use 8GB for about 2 years now, the best thing about it (and I didnt find this covered in the article) is that alt+tab-ing out from a game to windows and back to the game is almost instant. Even the hungriest game uses about 3-3.5 GB. Windows again about 2.5. So you always have 2GB free. Even though I dont have a SSD yet, after the initial slower start of an app (browser, anything), going back to it is instant. For me this is the real benefit of having more ram. The marginal (if any) FPS increase is not the main selling point. Multi-tasking is.
    33
  • takeapieandrun
    Personally, I would say 6GB is nice balance between capacity and cost. 4GB of RAM can become limited at times, but IMO 8GB is a little too much.
    3
  • dogman_1234
    Nice article. I finally learned something i can be able to use later in my computing life.

    My questions are as followed:

    1) I am aware SSD's are a applied RAM set. So how can one use your system RAM to store files after shutdown as well.

    2) How can one add more memory to the GPU? I can see a noticeable jump in GPU RAM, or GMP as they put it.
    2
  • rags_20
    Is the RAM loaded on an actual model of the truck?
    -11
  • coffee_man
    i use triple channel but i only got 3 gb of ram, is better to add more ram or buy an ssd ?
    0
  • Niva
    Come on guys, the article and recommendation are pretty straight forward. They're recommending a minimum of 8 Gb and if you have less you might want to consider upgrading.

    That being said, if all you do is interwebs and some gaming you should be careful where you spend your money. Big ram is for programs that use a lot of ram, if you're doing heavy 3d modeling/animation, large photoshop files now that CS5 actually has 64 bit products it's justified. For games it's a crapshoot.

    I say stay with 6 Gb unless you see your ram usage over 50% regualrly.
    8
  • quizzical
    So basically, the conclusion is that slow hard drives are slow, which really doesn't say anything about system memory. What happens if you try running the programs off of a good SSD? Having an SSD in your system, but not putting any programs or even the swap file on it seems like a rather strange configuration.
    -9
  • iam2thecrowe
    This is the best article you have ever written toms. Clears up everything I wanted to know and achieve with memory above 4gb. I always wondered if the ram disk thing would actually work with 4gb+ in 32 bit OS's. Now I know. Thanks!
    9
  • arkadi
    Grate article guys! That what Toms is all about! That kind of articles is exactly what i liked about toms in first place.
    As for this article....i tried to play with Ram drives few years back on my first x58 platform.....finally some on put it on paper.
    3
  • musicaldevil
    What's with the German text in the images on the page "64-Bit: Memory-Hungry Graphics Cards"?
    9
  • joytech22
    I managed to score 8GB of RAM a month ago, and now i'm reading 6GB is the sweet spot?

    I'm not one to spend money in areas that don't need it so..

    I just hope this RAM works in the new AMD motherboards coming out next year.
    -10
  • cjmu
    So if you put 12 or 16gb in a 64 bit system, you are better off using the top 4 - 8 gb as a ram disk (just as in the 32 bit system) and putting a swap file and temp files there. That leaves you with 8gb of usable system memory and nice fast temp/swap. At least until more apps move to 64bit. fair?
    7
  • iam2thecrowe
    As some people dont seem to understand what the article is about, ill try explain some key points i liked - 1. a 32 bit OS CAN use more than 3.25gb ram if the extra ram is made into a ramdisk and used for the swap file, which will speed up loading times, and save your hard disk for other things. 2. Using the same allocating ram to ramdisk for swap file technique can also help in 64 bit systems with 8gb or more ram, speeding up loading times. 3. Some games do make use of more ram, not as in framerate, but loading times and also corrupt textures can be caused by not enough video ram &/or system ram (this was surprising to me and may help others diagnose what they think is a video card issue, may be a RAM issue)
    4
  • blibba
    Lutfijawesome read for the masses, thanks Tom!


    Sarcasm?

    dogman_1234Nice article. I finally learned something i can be able to use later in my computing life.My questions are as followed:1) I am aware SSD's are a applied RAM set. So how can one use your system RAM to store files after shutdown as well.2) How can one add more memory to the GPU? I can see a noticeable jump in GPU RAM, or GMP as they put it.


    No, RAM forgets everything when it looses power, so you can't use it to store data after shutdown.

    Secondly, you can't add more memory to the GPU. Increasing your system memory makes more memory available to the GPU, but it's not the same as adding more to the GPU, and the memory on your graphics card is far faster than elsewhere in your system.
    4
  • infodan
    cjmuSo if you put 12 or 16gb in a 64 bit system, you are better off using the top 4 - 8 gb as a ram disk (just as in the 32 bit system) and putting a swap file and temp files there.


    to me is shows that in you have 12-16gb ram then you can disable the page/swap file altogether, although some programs may have problems.
    4
  • pandemonium_ctp
    Thanks for touching on the subject of the paging file. Though, I'm not sure I agree with the crashing instances. I would think that's due to having cheap ram or running your ram at latencies that it can't handle.

    I've had 8GB DC since my install of Windows 7 64 bit and disabling the page file was one of the first 'tweaks' I did. My primary HDD is a WD Velociraptor and I prefer to keep it running for a long time, so I like to keep HDD access to a minimum.

    After hours of computer use (gaming, codec rendering, watching HD content) my ram will be 0 free and 5500MB+ available (meaning the system is retaining old or garbage information), but I really don't care. It takes 5ms to dump the information and free up whatever necessary space for anything my CPU is sending over. I see no performance degradation or crashes at all regarding my memory doing the work it should be doing. Swap file still equals lose in my book.
    -3
  • dacian_herbei
    I think this article is great.
    I did not know you can create a RAM disk so easy.
    What I'm missing in the tests above and which would improve massively is the the compilation time of different programs.
    If all the intermediary files are in the ram disk the whole process should be extremely fast.
    what is also not measured is the improvement in boot time.
    This should improve a bit too.
    It would be great if you guys could add this tests.
    1