How virtual memory is best set

Source: Internet
Author: User

the best way to set up virtual memory:

Virtual memory uses hard disk space for memory to make up for the lack of RAM space on the computer. When the actual RAM is full (actually, before Ram is full), virtual memory is created on the hard disk. When the physical memory is exhausted, the virtual memory manager chooses the lower-priority portion of memory that has not been used recently to write to the swap file. This process is hidden from the application, and the application regards virtual memory and actual memory as the same.

Each application running under WindowsNT is assigned to the 4GB of its own virtual address space (2GB to the application, 2GB to the operating system).

The problem with virtual memory is that it is much slower to read and write the hard drive than to read and write the actual RAM. This is why the program runs slowly when the NT system does not have enough memory.

Virtual memory is an active file that is linked to file data. is a WIN386.SWP file in the Windows directory, and this file will be continuously enlarged and automatically scaled down.

In terms of speed, CPU L1 and L2 cache speed is the fastest, memory second, hard disk again. But the virtual memory uses the space of the hard disk, why use the slowest hard disk as virtual memory? Because all the programs running in the computer need to go through the memory to execute, if the execution of the program is very large or many, it will cause us only poor 256m/512m memory consumed. and hard disk space at dozens of G on hundred g, in order to solve this problem, Windows uses virtual memory technology, that is, take out a part of the hard disk space to act as memory use ...

Set Virtual memory manually

The default state is to let the system manage virtual memory, however, the system default settings are usually more conservative management, in the automatic adjustment will cause the paging file is not continuous, and reduce the efficiency of reading and writing, the efficiency is not high, so often appear in memory is not enough of such tips, the following let yourself set it.

Step one, right click on the desktop of My Computer icon, in the Right button menu to select the property option to open the System Properties window. Click the Advanced tab in the window and the Advanced Settings dialog box appears.

Step two, click the Settings button in the Performance area, select the Advanced tab in the Performance Options window that appears, and open its dialog box.

Step three, in this dialog box you can see the area of virtual memory, click the Change button to enter the Virtual Memory Settings window. Select a partition with larger free capacity, tick the check box before the custom size, fill in the initial size, maximum column, click the Set OK button, and then restart the computer to take the virtual memory setting into effect.

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.