StamatisX

RAMDisk and computer performance

14 posts in this topic

A very nice way to boost your computer's performance is by installing an SSD. Even though SSDs are way faster than HDDs, still NANDs used on SSDs and the SATA 2/3 protocol cannot be compared to the speed of a DDR3 RAM.

A solution to this gap is a RAMDisk. With current chipset architectures that allow even laptops to have up to 32GB of RAM, someone who can afford it and wants the maximum performance for the money s/he paid should seriously consider a solution like that.

I was thinking of a scenario with the soon to be released Alienware M18x, that supports up to 32GB of RAM.

Keep 8GB for the OS and dedicate the rest 24GB to the RAMDisk. Inside that space you can allocate the pagefile, assign all the temp files, caches like that used by the web browser (that instead of being written on the disk would now be written much more faster on your RAM) and install programs that you use the most and you need them to run as fast as possible.

You won't have to worry about the wear and tear of your SSD, since at the end of the day all the data will be written in a serial manner to your SSD, you will utilize your RAM in a more efficient way since most of the times it remains unused, the pagefile will remain on your SSD instead of the slower SSD/HDD and will reduce the wear of it.

You can even install an OS in there using VM. That OS would literally fly.

Cons are the cost and the limited size of RAM, plus you need a 64bit version of windows to be able to utilize more than 3GB of RAM, it will as prolong the shut down times since it will have to write everything to your SSD at the end of the day.

So what do you think about it? Do you have any other ideas about maximizing your computer's performance?

Share this post


Link to post
Share on other sites

Have you already worked with a system which used this setup? I'm really curious about whether you can actually fell the difference or not. I heard about this idea a couple of times and I think it's really interesting. However there are also people saying it isn't really worth all the effort because you don't gain enough performance... I'd love to hear from someone who uses this whether it really (noticeably) boosts the system.

BTW, did you check the prices of the 8GB RAM sticks? :D

Share this post


Link to post
Share on other sites

Yeah kinda pricy I know, but if it can really increase the performance that much, it might be worth it, unfortunately I only have 4GB of RAM and I need pretty much all of it, but if I had 8 I would dedicate half of it and install programs in it to see the difference.

Share this post


Link to post
Share on other sites

Yeah, I only have 4GB myself, otherwise I would have tried it already a while ago. I'm really curious whether it works fine.

Share this post


Link to post
Share on other sites

It should work better than fine, ie, let's say you have Linux and installed using vmware on the ramdisk, compiling the kernel would me blazing fast, so would be the whole OS.

Think about it, you would run an entire OS on your RAM...

Share this post


Link to post
Share on other sites

Yes, when running a VM on the RAMdisk it will be incredibly fast... I agree. But I'm wondering whether having the pagefile on the RAMdisk really makes a big difference.

Share this post


Link to post
Share on other sites

About the pagefile, I usually keep it off, unless I plan to play a game like Metro 2033, for some reason if I don't have a pagefile larger than 4GB the game crashes with an error about low memory, while my RAM still has 2GB free. So keeping the pagefile in RAM (given that we have plenty, like the scenario described on my first post) will prevent the wear and tear of an SSD or makes things a lot faster if we have an HDD.

Share this post


Link to post
Share on other sites

All the concept checks out, I tried it actually with my system when it worked I used a 1gb size ram disk to give it a try. It did improve speed to the temp files a lot. I didn't try a page file and as people start to have more ram by default config this should be a good solution for all the uses you posted Stam. There is another thing, you have an option if not using sensitive data to be saved like a pagefile, instead your using it for browser temp files and cookies, if you don't have the ramdisk save it's contents at shutdown you have a automatic way to delete your history and temp files. So a ramdisk can provide better security. Those who bench could keep the executable in a ramdisk and tests with a lot of reads and writes. If I had 32Gb I would do very similar to what you suggested Stam. Your pagefile is basically like a second version of your ram... It contains everything you may need but isn't work putting in your ram yet(according to windows) and if those files when needed were accessed faster then you would see speed improvement in everything. There is a option to clear pagefile every shutdown (in windows) if you pair that with don't save ram disk contents at shutdown, you won't lose more crucial ssd disk space and will see the benefit of a page file on ramdisk. SSD operations per second is shadowed by ram's max operations per second. We need to see some benches of systems with their temp files and page files on ramdisk versus systems without. Then we need to see the program aspect of things like install Vantage or 3DMark2011 and see it's performance versus normal install on SSD and platter disk drives.

Stam, I found the same thing some programs cannot have no page file and I found a 1-2gb minimum or I would have similar errors. That's when I decided the pagefile was crucial and integral. I get better bench scores with 8gb page file with 8gb of ram...

Edited by mw86

Share this post


Link to post
Share on other sites

Pagefiles are needed for 32bit game executables with poor memory management.

The developers have 2 options when it comes to 32bit games:

1: Fit everything into 2GB and manage it properly, using time and effort (or 3Gb if the user has the /3gb environment variable, but thats not reliable)

2: IDGAF it and code poorly, lazily, and quickly and rely on the page file for memory overflow.

I bet you can fucking guess what they choose?

So if you have a 64bit machine with 9999999gb memory, that game exe can only use 2gb. So the devs throw all their extra crap into the pagefile.

If you have your pagefile switched off and the devs do this you will get the "close programs memory too low" error, which is actually bullshit if you check out your task manager. Its windows responding to one program hitting its pitiful 2gb limit.

If it is a 64bit app, you wont have this problem with your pagefile switched off.

So, the best solution if you have more than 8gb ram, is to have a 4gb ramdisk with a 4gb pagefile on it, set size. Then your 32 bit apps will be more than happy. Also, use the /3gb switch on startup for a bit of extra legroom.

-Ash

3 people like this

Share this post


Link to post
Share on other sites

Great post Ash. So when I got bluescreen errors or program crashes with the page file off its because a program or game exceeded it's 2gb memory limit. Cool If I get 8gb - 32 GB of ram I'll throw my pagefile on a ramdisk @ 4gb size.

Share this post


Link to post
Share on other sites

so been using my pagefile in a 4gb ramdisk for maybe a week... the OS is what I notice a difference in... seems like moving through windows os interface in this config is much snappier. any suggestions on a test to see real world benefits guys?

Share this post


Link to post
Share on other sites

bump guys any thoughts i went to 1gb ramdisk with 1gb swap files to see if better... shutdown and start up speed improved since ramdisk backup at shutdown has less to save....

Share this post


Link to post
Share on other sites

As long as you don't see any weird behavior with programs, like sudden crashes or BSOD then you can leave it like that. It means that what you use doesn't require anything more than that.

Share this post


Link to post
Share on other sites

Sweet thanks Stamatis... This on standard hard drive still.... I will use this on SSD no doubt. As I will be raiding mine although it disables trim. Raid says do not place page file on raid partition... So I won't I'll place in ramdisk.

plus saves ssd from many writes... This way only write from page file will be at each shutdown then as ramdisk backup. Need help though sometimes I see total page file size is larger then I had set and is currently set in system properties. I am reading max from hwinfos latest version. Mumak added its reading to sensors window which is so cool mumak!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Similar Content

    • By Dr. AMK
      View full article
    • By danger007
      Well I have now banged my head against this wall for a week.
       
      Here is the basics of my system, all other parts are standard:
      Alienware M17xR4 (delivery date May 2012)
      Intel 3720QM processor w/Intel HD 4000 iGPU
      AMD 7970m 015.017.000.000.042717 (if I read the right sticker)
      Samsung 850 Evo SSD msata 1TB (removed other 2 Mechanical HDD's to simplify troubleshooting
      8 GB Ram
      Windows 7 64bit service pack 1 - installed fresh not a factory install, manually installed drivers myself  (Winupdate last run in Feb 2016, then ran it on May 17, 2016 with a restore point being created before the windows update started, windows failure May 19, 2016 approx 10pm local time for me)
      System Bios:  A12
       
      Overclocking Notes:
      No overclocking attempted, ever.  All parts are running at system spec settings
       
      Driver notes:
       AMD are Leshcat drivers 15.7 WHQL Unifl.  
      IntelRST 11.x - version required with
      Dell drivers for Alienware OSD, Respawn, and other related software, all drivers where possible were most current on site or by maker of product, i.e. Intel Management Interface)
       
      Trouble started:  
      While I was playing a game a week ago, the computer froze, no mouse movements, alt-f4 would not close the program, no keyboard response.  It was typical as this game has issues with the switchable graphics and only sees the Intel HD4000, even though in the AMD CCC I set it Max Perform (main reason for running Leshcast drivers since Dell and AMD had old versions and/or drivers that were having issues or had the CCC lock some programs into one performance category or another and user couldn't change).
       
      Inital Action Taken:
      So when I rebooted nothing showed up.  So I did my normal routine, windows recovery environment off Windows 7 Sp1 64bit retail disc.  Nothing happened.  sfc /scannow wouldn't run, chkdsk with the various / settings found nothing.  I thought this was strange never had this issue before.  So I figure well lets go into safe mode and find out what is going on.  It just went to a blank screen with a mouse cursor I could move but no shortcut keys brought anything but sticky keys up.
       
      After spending hours trying different things, I started to get the 0x07b error.  So I did something I don't like, system restore.  The only restore point I had was just before a Windows Update was done.  Now everything started to go wrong. I would find one solution, but it would not work.
       
      Possible Mistakes:
       I deleted the prefetch directory and removed the Panther directory, in hopes of resetting the prefetch setup.  
      Trying to learn how to put back together the Windows Boot Manager/BCD.  I can't confirm if the BCD has been configured in the registry or not since I am only able to load the 5 hive keys in the c:\windows\system32\config and the date on the registry backups were almost 2 hours after the problems started, so they have been of little use.  
      No additional restore points, just the one that I already tried and of course that leaves me with nothing.
      Reading to many forums
       
      Some of the Solutions attempted:
      rename amd drivers and oem file
      safe mode
      safe mode w/networking
      windows system repair x3
      sfc /scannow - won't allow
      rebuilt the bcd, uefi partition correctly labeled
      adjust entries in reg to remove amd/ati (but made backups before deletion of the keys)
      removed all drives but the SSD and no usb devices
      ran Norton Tool (ISO) for scanning for viruses/malware - results clean as a whistle (and that was with SSD + 2 HDD).
       
      Other Notes:
      I have seen about 5 different errors show up in the Windows RE, but they change frequently, I get the Boot Status Indicates that the OS booted Successfully.
       
      I even put in an older clone of this computer, it was from around August 2015.  It got into Windows normal mode.  I looked around in the SSD for some sort of errors, bad files, etc. Then I made the mistake of seeing if I could boot again into Normal mode on this clone.  Opps!  Now it won't boot.  I can off and on get into safe mode on the clone (not the ssd).
      Finally it went to the black screen with mouse cursor.  I gave up and removed it as it obviously wasn't of much use now.
       
      The Alienware model physical installation location of the Msata part is not at all easy to get too, as it all but requires a system tear down almost down to just the frame holding the motherboard.
       
      When I had access to safe mode/normal (fyi, I do not have either ways to access Windows) I had Samsung Magician 4.7 software check the status of the SSD and no issues.
      A new issues that started to appear was in the bios of the laptop.  It no longer called the discrete graphics AMD 7970m and Intel HD 4000, now calls them ATI gfx and Ivy Bridge, respectively.
       
      I eventually got Windows RE command Bootrec /scanos to say there was a windows install.  Now it says there isn't, so it sounds like the BCD/UEFI Boot manager/etc is again wrong.
       
      Where am I now on this problem:
      I just don't know what else to do.  I want to try and avoid a reinstall as it can take a long time with all the software and *cough* games I install.  Didn't bother contacting alienware as it is really Dell support and someone reading a script that tells them to have me reinstall immediately, so pointless.
       
      I can use the help at this point.  I have way too many websites/forums, etc. bookmarked it could take years to clear all of them.  So I feel I have reached that point that this problem is beyond my knowledge or expertise or lack their of.
       
      UPDATE:  MAY 28, 2016, Sat, 10pm, as noted below I removed the GPU to verify it wasn't the 7970m, while out I think I came across the sticker that shows the bios version of the video card, it was the only sticker that had a proper looking vbios,  015.017.000.000.042717
    • By pando
      Sorry if this is very noob but I'm getting conflicting answers to this:
       
      I want to upgrade my AW 14 HD and want to go with SSD as the primary boot. What's the difference if I replace my HDD with an SSD vs. adding an mSATA? Is mSATA faster booting?
       
      What I plan to do is leave the HDD as a storage only device and use either SSD or mSATA as the boot/OS. Which is better for that? And would there be any benefit to having both mSATA and SSD (other than capacity)? TIA
    • By BoGyesz
      I decided to build eGPU for my late 2013 13" MBPr 11,1 but got lost in the details for the planned configuration. I after the following:
      Nvidia 970 or 980 GPU external SSD drive for Windows 8.1 and the games a case that can fit both GPU and SSD  
      The questions I'm not sure about:
       
      Is it possible to install Windows on the external SSD and daisy chain it on the same TB cable as the eGPU? Can I use the MacBook's LCD with Optimus & Win 8.1 or Win 10? Which eGPU case and GPU brand would you recommend for the easiest installation? I wouldn't custom build the external case, just buy the one that works.  
      I hope I can get the information I need and I hope it's doable for the average human being. :-)
       
      Thank you!
    • By charliez
      Hi guys!
       
      Forgive me for any spelling mistakes but I have not slept for about 6 days now trying to get this to work and the men in white coats will be picking me up soon.
       
      I bought an Alienware 15 with 1GB HDD and 1GB SSD (PM951 NVMe Samsung 1024GB).  For reasons that can only be attributed to criminal insanity the PC was delivered with the OS on the HDD and a blank SSD.
       
      I have now spent the last 5 days trying to install Win10 on the SSD (clean install from Win ISO file on USB).  It kept failing for all sorts of reasons but I finally managed to use diskpart to set a combination of disk format and partitions that Win was happy with.  The installation now goes all the way through until the restart.  This is where my problems start.
       
      For reasons I cannot understand, it simply refuses to boot from the SSD.  If I leave the USB stick in, the installation starts all over again, if I take it out I get "Checking media presence" and then "No bootable devices" (I have physically disconnected the HDD).
       
      The SSD is showing in the BIOS as "M.2 SSD-1 PM951 NVMe Samsung 1024GB".  If I run the Win installer and then uses Shift+F10 I can also access the SSD as drive C and see that there are Win files on it.  But I cannot get the BIOS to boot to the SSD.  I have tried all sorts of combinations now of Legacy and UEFI with and without Secure Boot and/or Load Legacy Option Rom.  I have installed everything with the SATA set to both RAID and to ACHI.  I have kissed the machine, I have punished it, I have asked for forgiveness and given it flowers and chocolate.  And still the bastard will not boot to SSD.
       
      I just cannot understand how it can show in BIOS and I can see the files on the drive from command line, but I cannot get it to boot.  Please, please help me.  I am on the brink and the only thing that has kept me alive is that I am on the ground floor and thus jumping from the balcony only looks silly, really.