Share via

RAM Disk on Windows 11

Anonymous
2023-03-24T16:40:00+00:00

Hi, I wanted to create a RAM disk on Windows 11. I found an article for Windows 7 and 10 which has been updated recently:

https://answers.microsoft.com/en-us/windows/forum/all/create-a-ram-disk-drive-in-windows-7-and-windows/cd42aac4-8b0e-4b61-a2ea-9560a3e17d5b

However, when I tried it on Windows 11, it didn't seem to work properly.

After making changes to the TEMP and TMP environment variables as well as some application specific temp / cache paths to point them towards the RAM disk, everything appeared fine initially. But when running more intensive workloads, I experienced intermittent crashes and eventually a blue screen: DRIVER_IRQL_NOT_LESS_OR_EQUAL (probably related to the storage driver implementation used by ImDisk).

After reverting the changes I made to the temp / cache directories, removing the RAM disk, and uninstalling ImDisk, everything has been stable again.

My question is: Is there any way to set up a RAM Disk on Windows 11 without compromising system stability?

For my use case, I don't require persistent storage, but it should be auto-mounted on boot.

Thank you, Paul.

PS: Please ignore discussions regarding why someone might need such a setup; each person has their own unique use case which doesn't necessarily apply universally.

PPS: Revisiting this thread after nearly a year reveals that there is no official solution from Microsoft. While there may be paid options available, given the history of free solutions causing issues under load, I am hesitant to invest time and money checking each one individually.

In summary, there seems to be no official or unofficial (but endorsed) solution at present.

Windows for home | Windows 11 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

46 answers

Sort by: Most helpful
  1. Anonymous
    2024-05-08T14:14:17+00:00

    For anyoone who repplied, use Win11 DEV drive, that drive is not the same speed as a ram drive in the start, BUT as u use it, everything that is touched is kept on RAM, effectively creating a ram drive, not only that, but as u write it doesn't write instantly to the drive, but slowly writes the changes done to each file, instead of writing whole files.

    I used to load/unload thousands of small files from the SSD, atm this changed to a real load of a single time and a real write that instead of about 500MB ~1GB every few minutes to barely a few MBs, since the written data is only what was changes.

    This

    If u got lots of ram like me, as a side info, i would also disable memory compression and pagefile if u didn't yet, this reduces the processing required and speeds the ram access a bit.

    Cached = "Em cache"

    With almost no reads or writes:

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-04-03T03:01:41+00:00

    Good morning, everyone!

    I wanted to share a bit of nostalgia with you all. Back in the days of MS-DOS 6.2, Windows 98, and even Windows XP, RamDisk was an incredibly useful tool for me. It played a crucial role in optimizing system performance.

    To set it up in MS-DOS, we had to configure the CONFIG.SYS and AUTOEXEC.BAT files, specifically loading RAMDRIVE.SYS, the essential driver that made it all work. Those were the times when tweaking system settings manually wasn’t just a necessity—it was an art!

    Those were the times when tweaking system settings manually was both an art and a necessity! I believe I still have those old configuration files archived somewhere. If anyone’s interested, I’d be happy to dig them up and share some insights from that era.

    Let me know if you have any memories or experiences with RamDisk—I'd love to hear them!

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-07-27T19:13:59+00:00

    As someone else has mentioned, PRIMO RAMdisk is the solution you are looking for.

    It can create a local file to write out the Ramdrive's content, making the RAMdisk effectively persistent. Surviving reboots, as if the data's on disk.

    I upgraded to 64Gb RAM, and use 8Gb for portable apps, (effectively bypassing the registry as much as possible). And another 8Gb for pagefiling.
    My 9th Gen intel processor machine runs smooth and subtle like as a 16yr Lagavulin scotch. I can't ask for more...

    On my Intel 6-8th Gen processor machines, I throw in 32Gb, and do the same setup, which still gives me 16Gb to do day to day stuff...
    This setup shows me clearly why I've no reason to buy another machine for at least another 5-7years. LOL. Definitely no need for a 12th gen machine (except for computing purpose where you CLEARLY NEED a processor running full throttle, and you must have the latest processors).

    Cost-wise? Thats $50/$100 for a pair of 16/32Gbs, and then the license for the software.

    Significantly cheaper for the result, than using Optane memory, let alone M.2 NVMes.

    And those DDR4 memory are good up to 12th Gen machines, so it's money well spend.

    For day-to-day machines, you can certainly achieve similar result with just 16Gb RAM, 4Gb for portable apps, and 4Gb for your pagefiles.

    2 people found this answer helpful.
    0 comments No comments
  4. Igor Leyko 110.6K Reputation points Independent Advisor
    2023-04-18T17:18:24+00:00

    Yes, a sample virtual disk code was in Windows Developer Kit for many years.

    Moreover, there was a vdisk.sys driver in MS-DOS, and I've used it in DOS times. But unfortunately, there is no RAM disks general usefulness now, especially after M.2 SSDs appearing.

    2 people found this answer helpful.
    0 comments No comments
  5. Igor Leyko 110.6K Reputation points Independent Advisor
    2023-03-24T17:18:27+00:00

    Hi,

    My name is Igor, it's a pleasure for me to help others and I'll do all my best to help you.

    ImDisk is a third-party tool, so please ask its developer if the tool is compatible with Windows 11.

    May be there is a conflict between ImDisk and some other driver. Please share memory dumps to OneDrive for analysis.

    https://answers.microsoft.com/en-us/windows/for...

    2 people found this answer helpful.
    0 comments No comments