Use ramdisk to further improve the performance of virtual machines (VMware)

Source: Internet
Author: User
Tags symlink

As described in "How to Improve the Performance of vmware5", by setting the virtual memory file to shut down VMWare, VMWare can truly run in physical memory. I installed the client Windows XP in VMware, by setting off the virtual memory of Windows XP, all programs can run in the physical memory, which greatly improves the speed.

However, during the test, it is found that the access speed of the Virtual Machine hard disk gradually becomes a bottleneck and the speed cannot be further improved. What should we do? I think we can use the virtual hard disk method (ramdisk) to place frequently read/write data, especially some temporary files, in ramdisk, which further reduces the bottleneck of the Virtual Machine hard disk.

The superspeed ramdisk plus is used to implement the virtual disk (ramdisk). The specific settings are very simple. The following describes how to use ramdisk to improve ie performance. The figure below is similar:

 

In this way, all temporary files downloaded by IE are stored in ramdisk, which greatly improves the speed. However, there is a flaw. ie cookies are still stored in the C:/Documents and Settings/user/cookies directory. Can I also put this directory in ramdisk?

It seems that the cookie directory of IE cannot be set. You can only use some other techniques. What? In Linux, a directory can be mapped directly to another directory, that is, the concept of a link. Is there anything like this in windows? The shortcut concept is a bit like, but not exactly the same. For example, if I set up a shortcut temp in C:/to point to D:/temp, we can double-click the shortcut to enter D: /temp, but if you open CMD and type cd c:/temp, the system will prompt that this directory is not available, that is, C:/temp and D:/temp are not equal.

After searching, there is indeed such a thing for this purpose, that is, junction:

Junction v1.05by mark russinovichpublished: July 24,200 7 Introduction

Windows 2000 and higher supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer. for example, if the Directory D:/symlink specified C:/winnt/system32 as its target, then an application accessing D:/symlink/drivers wowould in reality be accessing C: /winnt/system32/drivers. directory symbolic links are known as NTFS junctions in windows. unfortunately, Windows comes with no tools for creating junctions-you have to purchase the Win2k resource kit, which comes with the linkd program for creating junctions. I therefore decided to write my own junction-creating tool:Junction.JunctionNot only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. reparse points are the mechanisms on which NTFS junctions are based, and they are used by Windows 'remote Storage Service (RSS), as well as volume mount points.

Please read thisMicrosoft KB articleFor tips on using junctions.

NoteThat Windows does not support junctions to directories on remote shares.

If you want to view reparse information, the usageJunctionIs the following:

 

Using Junction

Usage: [-S] <directory or file name>

-S Recurse subdirectories

If you want to create or delete a junction, useJunctionLike this:

Usage: [-D] <junction directory> [<junction target>]

To delete a junction specify the-D switch and the junction name.

 

You can download junction here.

With junction, cookies can also be stored in ramdisk. Junction "C:/cookies and settings/user/cookies" R:/cookies.

Note that an error occurs when you directly execute the preceding command. You can delete C:/Documents and Settings/user/cookies, however, this directory cannot be deleted when the current user logs on. It is best to log on with another user, delete the directory, execute the preceding command, and then log on with your account.

 

 

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.