Use ramdisk to create a memory disk to speed up system operation (and solve some problems)

Source: Internet
Author: User

Although many articles on how to use ramdisk to create a memory disk are very old, there are still many shortcomings in many methods for large programs. The reason why I want to write this article is as follows, I want to point out some shortcomings and solve them so that users can enjoy the speed brought by ramdisk with peace of mind without encountering instability.

Its advantages: using the system's excess memory to create disk partitions can be called ramdisk technology. This disk partition is no different from each partition of your hard disk in the operating system, but it is based on the physical memory. Since it is built on the basis of physical memory, its read/write speed is basically the system's memory operation speed, much faster than the traditional mechanical hard disk and solid state disk, after creating such a disk partition, you can move the virtual memory and temporary folders of the operating system from the hard disk to the partition, which can greatly improve the system running speed and reduce the read/write frequency of the hard disk, reducing the data throughput of the hard disk can effectively protect the hard disk, thus reducing the hard disk loss and extending its service life.

Of course, there are also disadvantages: 1. after a power failure, everything in Ram is cleared, so resources virtualized into hard disks disappear, so data files cannot be stored in the disk; 2. the size of the memory disk is not suitable, which may lead to a warning of "insufficient Virtual Memory" or serious consumption of physical memory (4 GB memory, if 16 GB memory is available, Do not worry ).

Next I will configure the ramdisk for the company's computer with xp_32-Bit Memory and 4 GB memory. The required software download link is as follows, XP ramdisk configuration is mainly used to make full use of 4G memory, because 32-bit systems can only identify a maximum of 3 GB memory, I used ramdisk in 64-bit Windows 7 to use extra large memory for read/write operations on the disk to speed up data processing.

The operating system of XP and 4G memory is as follows:

1. first, check whether the PAE (physical address extension) support has been enabled for the XP system, use Everest to check, open the Everest software, and click "motherboard"-"Memory" to check whether the PAE is enabled, if "enable" is required, you need to modify c: \ Boot first. INI file: Enable Pae. Note that you must first boot the file. the "read-only" attribute of the INI file is removed; otherwise, it cannot be saved. Method of modification: If PAE is not enabled, in "multi (0) disk (0) RDISK (0) Partition (1) \ Windows =" Microsoft
Windows XP Professional "" is not followed by the "/PAE" mark, but "/noexecute = optin/fastdetect/noexecute = alwaysoff ", therefore, you need to add/PAE before/noexecute and save it, as shown in 1:

Figure 1 Add the/PAE keyword to enable the PAE Function

Restart the instance and use Everest to check whether it has been enabled, as shown in Figure 2:


Figure 2 check whether PAE is successfully enabled

2. Download the corresponding ramdisk software, decompress it, and open the following. install the software in the following order. Right-click "rramdisk. inf" and select "Install". Then, double-click the role ram4g.reg.pdf option to open the role ramdisk.exe. 3.


Figure 3 configure ramdisk.exe

3. after the disk size is turned on, it is very important to select the disk size here. For 4G memory, I tried the differences between 1g and 2g respectively, if pagefile is not created on another disk. if you use a multi-point program to process the Sys paging file, the system will warn you of insufficient virtual memory. However, if there are too many large programs, the physical memory will be 100% insufficient, and the virtual memory will be useless and the overall speed will slow down. I tried several cases and finally chose the "1 GB memory disk + extra pagefile. sys" solution. Now, I will not be reminded that the virtual memory is insufficient. First set disk in ramdisk.exe
The size is 1 GB. Click "Install ramdisk" by default, as shown in figure 4, at the same time, note that after the allocation is successful, the R disk name on my computer will have the "PAE" sign, indicating that the part of memory that XP could not recognize is used. Win7_64-bit does not have "PAE", because 64-bit all recognizes the memory, and only "ramdisk" indicates that part of the memory is directly used as a hard disk.

Figure 4 setting ramdisk

4. Next, put the pagefile. sys, temp, ie cache in the original system in this "memory disk" to speed up data processing. Put the virtual memory in it first. In order to avoid the warning of "insufficient Virtual Memory", I also set up a pagefile. sys on other non-system disks to relieve pressure. The procedure is as follows: Right-click "my computer"> "properties"> "advanced", and click "Settings"> "advanced" in the "performance" column ", in the "virtual memory" column, click "change", specify a MB paging file in the r disk, and set the pagefile of the system disk. cancel sys and set it to another disk. The advantage of this is that when the paging file in the r disk is full, other paging files can be used, so there will be no warning of "insufficient Virtual Memory", as shown in Figure 5:


Figure 5 configure two pagefile. sys

5. put the temp temporary files in the memory disk. The temp folder is used to save the temporary cache generated by the amplification program during running. After the program is closed, it will be released, for example, when downloading images from thunder, there will be a cache, and when Photoshop processes images, it also needs to be placed in the memory disk to speed up data calling. However, in XP, I only divided 1 GB of memory disks and MB of pagefile. when sys came out, I tried to open PS and import a lot of photos, the 512m will prompt "insufficient temporary storage ", therefore, the pssoftware should also be allocated with corresponding modifications, but it is more than enough for daily applications. The specific settings are as follows: Right-click "my computer"> "property"> "advanced"> "environment variable ", specify the temp and TMP environment variables in the administrator and system variables to the R: \ Temp folder. If the r disk does not contain this folder, manually create one, we recommend that you change the original environment variable address before changing the address so that you can change it back later. 6:


Figure 6 change to R: \ Temp

6. Set the IE cache to the memory disk, as shown in Figure 7. Right-click the IE icon, click "Move folder" on "2", and select "R" as the address. The advantage is that the speed of loading a webpage with a large amount of data will increase, but since the cache disappears after shutdown, You have to download it again. I personally think that the Internet access is mainly dependent on our network speed.


Figure 7 change IE Cache

In this way, we have achieved success. We have successfully converted some memory that cannot be recognized in XP into a memory disk for use to speed up data processing. Win7_64-bit settings are similar. In win7, large memory is used to process data, in this way, you can avoid warnings and errors about the "insufficient Virtual Memory" and "Temp" temporary storage disk full.

Note: I also learned from cainiao step by step. configuring ramdisk is also based on many previous articles, and I propose my own solutions, which may be insufficient, or you may have better solutions. Please feel free to contact each other.

For Original Articles, please refer to blog.csdn.net/jjzhoujun2010 for reprinting.

Author: Dream fly

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.