Do You Use a RAMDisk?

Forum for Technical discussions

Do You Use a RAMDisk?

Unread postby PinothyJ » 8 Nov 12, 1:08 am

Well, do you?

A RAMDisk is a virtual disk that is created in your RAM. This creates a usable space where reading and writing of data is only limited by your RAM speeds.


So…
PinothyJ

User avatar
1337 p0st3r
 
Offline
Posts: 1253
Joined: 15 Mar 10, 11:28 pm
Location: Queensland

Re: Do You Use a RAMDisk?

Unread postby Lupatchi » 8 Nov 12, 6:11 am

I use mine for little things at a time, I have 32 gb of ram and can fit a tone on it if need be.
Lupatchi

User avatar
Player
 
Offline
Posts: 13
Joined: 1 Nov 12, 4:55 pm
Location: Adelaide, SA

Re: Do You Use a RAMDisk?

Unread postby Treloar » 8 Nov 12, 8:43 am

Have been experimenting with some RAM disk programs.

Which one do you use or recommend :?:

Know of any tutorials as to which files and folders are best to place onto a RAM disk to improve system perfomance and reduce HDD thrashing to increase HDD life, for various OS:

XP :?:
Win7 Pro :?:
Image
Treloar

User avatar
1337 p0st3r
 
Offline
Posts: 1414
Joined: 24 Aug 07, 1:57 pm
Location: On a chair... somewhere in Australia

Re: Do You Use a RAMDisk?

Unread postby steve_rogers42 » 8 Nov 12, 9:47 am

There is some interesting reading over at anand and OCAU and the like

http://forums.anandtech.com/archive/index.php/t-2175095.html - Anand



The last time i had anything to do with one was a mate was fooling around as he had/has an instane amount of ram installed and had dedicated a rather decent (think it was 8-10gb worth) drive to hosting the game he was currently playing as he was sick of loading screens, i think he had a few issues with it in the long run, and not to sure if its still a habit, but i was impressed with the speed of it, very lulz
Image
Nolite te bastardes carborundorum
steve_rogers42

User avatar
Tech Moderator
 
Offline
Posts: 3679
Joined: 20 Jun 07, 1:11 pm
Location: Straight outta a video game

Re: Do You Use a RAMDisk?

Unread postby Long John » 8 Nov 12, 7:02 pm

I got a ramdisk program with a ASRock board. Had some benefits but personally I didn't find it overly useful. But it show good results for some apps on their test.
Image
--------------------------------------------------------------------------------------------
Image
Long John

User avatar
Padawan
 
Offline
Posts: 155
Joined: 16 Sep 10, 4:02 pm
Location: Witness protection program

Re: Do You Use a RAMDisk?

Unread postby PinothyJ » 8 Nov 12, 11:51 pm

Treloar wrote:Have been experimenting with some RAM disk programs.

Which one do you use or recommend :?:

Know of any tutorials as to which files and folders are best to place onto a RAM disk to improve system perfomance and reduce HDD thrashing to increase HDD life, for various OS:

XP :?:
Win7 Pro :?:

Because you have asked so many questions I might as well give you my whole set-up to muse over. The program I used is ImDisk for one reason and one reason only: it supports a command line. This allows me to use a batch file to create the allocations from a single shortcut.

Let me give you an example of one such shortcut (I store my batch file in my Windows folder).
  • Name: The Elder Scrolls V: Skyrim RAMDisk
  • Target: "C:\Windows\createRAMdisk.bat" /f "skyrim" /d V /r 2 /st "steam://rungameid/13278445403449065472" /iw
  • Start In: "C:\Program Files (x86)\Steam\steamapps\common\"
When I click that shortcut:
  1. The batch file will work out the capacity of "skyrim" and its contents
  2. Does some mathematics to increase that size by 2% (a one or two percent redundancy is always recommended because of two things: sometimes programs save and/or cache information in its home directory; and it is the easiest way to work out the discrepancy between actual size and size on disk)
  3. Creates a batch files in the "Start In" directory to reverse everything.
  4. Allocates the appropriate space in RAM to drive "V".
  5. Copies "skyrim" to "V:\"
  6. Renames the original "skyrim" folder to "skyrimORIGINAL"
  7. Creates a junction point (click through to the wiki page to fully understand junctions because there is a good chance that most people reading this do not) -- "C:\Program Files (x86)\Steam\steamapps\common\skyrim" -- that points to the RAM Disk --"V:\skyrim"
  8. Launches the game (in this case it is a Steam shortcut to Skyrim).
  9. Waits for prompt when you finish playing aforementioned game.
  10. Asks you if you would like to unmount, and thus remove, the drive you have in RAM.
  11. See that you have requested not to be asked about copying the contents from RAM overwriting the ORIGINAL folder and so does not bother asking.
Another one highlighting a scrub drive:
  • Name: Video Scrub Drive
  • Target: "C:\Windows\createRAMdisk.bat" /f "Video Encoding" /d S /s 4194304
  • Start In: "C:\My Documents\"

You do not have to run this via a shortcut: copying the batch file to your 'Start In' location will ensure that the job will get done via prompts.

The following flags are available and defaults, where applicable, will be used in their absence:
    /f Folder
    • Required.
    • The Folder parameter for this batch file is relative to the "Start In" path that can be set in every shortcut.
    • I have no idea what happens if you use an absolute path so here is to not doing that.
    • Always put this in quotes just in case and for the sake of tidy code.
    /d Drive letter
    • Default: R.
    /r Redundancy
    • Default: 5.
    • This is an integer so do not include the percent character.
    /s size
    • Integer
    • If you are using this as a scrub drive or Usenet porn drive or you simply want a 4GiB drive on your computer that sits in your RAM than specify here (in KiB).
    • If you leave this blank it ignore it and works out the size based on the source folder and the redundancy value.
    /l Launch
    • Optional.
    • This is relative to your "Start In" location.
    • Always put this in quotes just in case and for the sake of tidy code.
    • Examples:
      • '/l "Stalker-COP.exe"' for S.T.A.L.K.E.R.: Call of Pripyat
      • '/l "TESV.exe"' for Skyrim
      • '/l "Binaries/MassEffect2.exe"' for Mass Effect 2.
    /st Steam url shortcut
    • Optional.
    • This works for programs that you have in your Steam library or ones that you have added there.
    • The easiest way to get this is to right click a program in your Steam library and click 'Create Desktop Shortcut.' Find the '.url' file and simply copy the url in its target. Feel free to now delete the shortcut that you have created as it is not needed.
    • Always put this in quotes just in case and for the sake of tidy code.
    /ow Overwrite
    • Optional.
    • This is a flag.
    • Only applicable if '/l' or '/st' has been set.
    • If you place this here in means you want the ORIGINAL folder to be deleted and replaced with the folder you DID have in your RAM without any prompting and/or confirmation.
    /iw Ignore write
    • Optional.
    • This is a flag.
    • Only applicable if '/l' or '/st' has been set.
    • Use this flag if you do not want to keep the contents of your RAM Drive.
    • This will also 'ignore' the prompt asking if you would like to do the former overwrite operation.
    /q Quiet mode
    • Optional.
    • This is a flag.
    • If you do not want any 'pauses' or confirmations from your batch file than add this flag.
    • If you have any problems remove this flag first and try again.

Issues:
  • Setting a low redundancy can cause a discrepancy between size on disk and actual size of the content and end up in a situation in you running out of space in your allocated volume and the batch will fail to proceed any further. There is a batch file that is created as soon as all the required information is collected in the 'Start In' directory before ANY writing takes place and you should double click this to turn everything back to normal so you may try again with a larger redundancy value.
  • All actions can be easily reverted with the remove batch file with the massive exception of the OVERWRITE FROM THE RAMDISK ASKED AT THE END OF A /ST OR /L SESSION. In short: read your prompts.

http://pastebin.com/p0KJzudU


Questions: go…
PinothyJ

User avatar
1337 p0st3r
 
Offline
Posts: 1253
Joined: 15 Mar 10, 11:28 pm
Location: Queensland


Return to Tech Chat

Who is online

Users browsing this forum: No registered users and 6 guests