DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

RAMDISK

Started by Dr PR, February 12, 2016, 09:53:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I know SEJ and prl have reported using a ramdisk to speed up operations. I looked over the Dataram ramdisk instructions and it brought to mind a few questions. Maybe someone can provide insight for using  a ramdisk.

First, for anyone who might not know about ramdisks, they are software drivers that install and function like a hard drive. But instead of using a physical disk drive they use part of your systems RAM as a virtual drive. They have a drive letter (D:, E:, V:, whatever) and you read/write to them just like disk drive. BUT - there are several orders of magnitude faster that the fastest hard drives (no moving parts, rotating disks, head seek times, etc.).

File reads and saves using ram disk are much faster that read/write from a hard drive. This means opening files and saving them are faster for all programs.

But file read/write doesn't happen very often. With DesignCAD  you might save the file periodically, but between file saves a lot of other housekeeping disk read/writes are happening (temporary variable storage, paging parts of the program to/from the hard drive, saving backup/undo information, etc.). And this disk activity slows down the program.

Question: Is there a way to get DesignCAD to use the ramdrive for all of its housekeeping file read/write operations?

The Dataram instructions mention changing Windows settings to use the ramdisk for TEMP and TMP temporary data storage. This is information that is needed only while the program is active, and it is discarded when the program shuts down.  Programs use the TEMP storage area on the primary hard drive for housekeeping. So assigning TEMP storage to the ramdrive should speed up the housekeeping.

Is anyone doing this?

One problem with this approach is that when the system reboots all of the information in the ramdrive is lost. And some program installers save information in the TEMP storage area to use to continue an installation after restarting the system. If TEMP storage is in ramdrive the installation will fail, and it might make the computer inoperable.

Anyone know a way around this problem?

****

Any RAM assigned to ramdisk is unavailable for other uses. If not enough RAM space is left for Windows and the programs you want to run the computer may actually run slower with a ramdisk.

I have checked my Windows 7 Pro 64 computer with DesignCAD working on a 113 Mbyte drawing and with Photoshop running at the same time with several large pictures open. Total RAM use is 4.8 Gbytes with 26.3 Gbytes of RAM free (32 Gbytes total).  So there is plenty of unused RAM.

Win 7 is using a 32 Gbyte Paging File on Drive C: - the minimum size Paging File is 16 Mbytes and 49 Gbytes is recommended (there is a lot of unused space on the 1 Tbyte drive). I assume this Paging File is the TEMP or TMP storage the Dararam instructions refer to. If so, I could reduce the Paging File to 16 Gbytes and assign it to the ramdisk.

Any thoughts on this idea?

Phil
DesignCAD user since 1987

Bob P

With that much basic RAM, I doubt whether you ever use the swap area, so reducing it won't effect performance.

As a different tactic to speed things up, you might consider an SSD for the system, DC program and data files.  Quality SSDs' reliability is basically the same as a hard drive at this point.

Dr PR

Bob,

That's a good point. The swap file won't be used until Windows fills up all available RAM and needs to page parts of lesser used programs and data to the Paging File to make room for more frequently used programs and data in the system RAM.

In my case, with 26 Gigabytes of unused RAM the Paging File shouldn't be used.

****

A ramdisk might be useful for program storage with programs that can't address more than a limited amount of RAM no matter how much RAM is in the machine. It appears this applies to DesignCAD. Windows Resource Monitor reports DesignCAD V25.1x64 memory use (with a 113 Mbyte file open) as follows:

Amount of reserved virtual memory:  531.8 Mbytes
Amount of total RAM in use: 652.6 Mbytes
Amount of Private (unshareable) RAM in use: 508.9 Mbytes

So, even though there is 26 Gbytes of unused RAM Windows is reserving about 532 Mbytes of space in the Page File.

Phil
DesignCAD user since 1987