Moving temp files to RAM disk

10 posts · Closed

mraksoll
6 May 2020

How can I move temp files to RAM disk?
When I try moving them in Windows 10 1909, programs and Windows ignore the new variables (simply not create any temp files in RAM disk temp folder).
If I point the variables to physical hard drive, all works perfectly. Why is this happening?

Andrew SoftPerfect
6 May 2020

We explained how to redirect temporary folders to a RAM Disk in this article.

If it's not working for you, then perhaps you did something incorrectly. Since you have not provided any details, it's not possible to tell what it might be.

mraksoll
6 May 2020

It doesn't work with the latest Windows 10 update. No symlink, and no variable.
I tried it with freshly installed Windows 10 Pro. It doesn't work with any RAMdisk product, not only with yours.

Andrew SoftPerfect
7 May 2020

What's your exact Windows version and build number?

mraksoll
7 May 2020

Version 1909, build 18363.815, with latest updates installed.
Tested with variables, and with symlink.
With the real HDD / SDD it works, with ramdisk volume does not.

Andrew SoftPerfect
7 May 2020

I have tested this in exactly the same build and it worked as expected:

By the way, the temp folder must exist on the RAM disk. Windows will not create it automatically. So, please make sure you have the temp folder added in Create Folders field in the RAM disk's settings. For example:

mraksoll
7 May 2020

Test with system temp variable, the one in windir/temp. For example you can try install vmware or other software what uses windir/temp variable.

Most antivirus solutions use it for temporary data and sometimes for high load network or changes in file system that can generate huge amounts of writes. Example: esetnod32 can do over 200gb writes to windir/temp.

I mean local software, not current user.

Andrew SoftPerfect
8 May 2020

We don't recommend changing the system variables to a RAM disk.

The system temp variable is used by services and kernel drivers. It's likely to be used before the RAM disk is initialised and ready, and can cause the programs that use it to fail because the temp location would be invalid. They may fall back to using a different location, like %SystemRoot%\Temp, which is probably what you are seeing.

So, only change the user's TEMP and TMP environment variables, to avoid any potential issues.

mraksoll
10 May 2020

The problem is need move the system windows/temp folder. My antivirus can create 100+ gb data when in use in multiple 1-20 mb files. Moving system temp is more important to me than user temp.

Andrew SoftPerfect
10 May 2020

I am afraid there is nothing RAM Disk can do: it is just how Windows operates and lets other programs to operate. There is no sure way to point the system temp variables to a RAM disk. Depending on your hardware, drivers, OS and other software installed, and how/when they load on boot, moving system temp to a RAM disk may work perfectly well, or may cause errors, even BSOD. We have seen both scenarios on different computers during our tests.

You can try adjusting your antivirus settings, or contact its technical support, or try marking its services as delayed start, or use a different antivirus.

This topic is closed. It has had no new posts for over a year, so the software versions it talks about may be out of date. Start a new topic in RAM Disk if you have a similar question.