Memory Upgrade: Is It Time To Add More RAM?

64-Bit: Swap File

The swap file: relic or necessary evil?

We first had to go through some application parcours to resolve this fundamental question. We used 8, 12, and 16 gigabytes of RAM in our test system. We also installed and ran a variety of applications, many of them in parallel. 

We know that virtual and system memories are two different things. When calculating the memory requirements of different applications, you might assume that 8 GB of RAM or more would be enough to deactivate the swap file. But there's a catch: unfortunately, some programs specifically want to allocate the virtual memory. In these cases, a missing swap file causes an error or the system memory completely fills with garbage data.

You have to carefully test whether the installed application can operate without a swap file. If it can, disabling the swap file is a practical way to avoid slow hard drive access. If not, then you'll just have to live with it. The speed increase is noticeable, but not exactly a killer feature.

To produce a reasonably fair comparison, we started six parallel rendering tasks, each with 2 GB of maximum RAM usage. We ran this test with and without a swap file under the different RAM configurations.

With the swap file deactivated, we ran into problems using 8 GB of RAM (as expected) when Windows ran out of memory. The red values document the state at the time of the crash. If you have 8 GB of RAM installed, you should carefully consider whether it's worth the risk of a possible crash before deactivating the swap file. The performance increase from disabling the swap file is measurable, but still rather modest. At least 12 GB of RAM is needed before you can consider disabling the swap file in a consumer-type environment without worrying--unless you use software that requires a swap file, of course.

Conclusion

We would advise against disabling the swap file if you have less than 12 GB of RAM, at least without thoroughly testing all of your programs first. There is a performance increase when you disable it, but you have to factor in the risk of possible data loss.

This thread is closed for comments
153 comments
    Your comment
  • 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.
  • Lutfij
    awesome read for the masses, thanks Tom!
  • hmp_goose
    I, too, run an X58 chipset, with Win7-64, and don't know what this article is telling me . . .
  • 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.
  • 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.
  • 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.
  • rags_20
    Is the RAM loaded on an actual model of the truck?
  • coffee_man
    i use triple channel but i only got 3 gb of ram, is better to add more ram or buy an ssd ?
  • 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.
  • 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.
  • 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!
  • 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.
  • musicaldevil
    What's with the German text in the images on the page "64-Bit: Memory-Hungry Graphics Cards"?
  • 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.
  • 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?
  • 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)
  • 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.
  • 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.
  • 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.
  • 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.
  • techyfox
    Having 8gb of ram, I was wondering about using a ramdisk. It looks like this isn't a good idea after reading this.

    Great article, I learned a lot.

    For anyone that does want to use a ramdisk that retains its state after a reboot. SuperSpeed RamDisk can save itself to HDD on shutdown.

    http://www.superspeed.com/desktop/ramdisk.php

    It's not cheap!
  • K2N hater
    "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."

    32-bit Windows DO support >4GB natively (PAE kernel) since Windows 2000 but licensing prevents it. 3GB per process limit is the only concern. It's true not all drivers work with PAE kernel but most will.

    Source: http://www.geoffchappell.com/viewer.htm?doc=notes/windows/license/memory.htm
  • when using adobe after effects (as example) to render a clip, the program read the clip from the HDD frame by frame ( or frames as many as core your cpu have) so the hdd speed will be the bottleneck . if we try to put the clip in ram disk may this increase the rendering performance ?
  • bl4c
    what about crossfire/SLI in games ?

    1x radeon 5800 = 1407MB "reserved from RAM"
    so would 2x radeon 5800 reserve a total of 2814MB from RAM ?

    this should be really interesting to see !
    what would the performance be when 4GB is used and then compared with 16GB ...

    now there seems to be an increase of just 1-4% in framerate (for 32-bit games)
    would it be possible that the advantage is much bigger for a crossfire/SLI configuration ?