Windows 7 virtual memory settings and misunderstandings

Source: Internet
Author: User

Sometimes we encounter a problem with insufficient memory as shown in:


Cause: Running memory-consuming programs, such as 3D games, or opening too many software, or frequently reading and writing data, improper virtual memory settings, and insufficient system disk space; and other causes. In general, we can avoid this problem by setting virtual memory. The following describes the common knowledge and setting methods of virtual memory.

1. Introduction to virtual memory

Simply put, all programs running on the computer need to be executed through the memory. If the executed program occupies a large or large amount of memory, the memory will be exhausted. To solve this problem, the virtual memory technology is used in windows, that is, a portion of the hard disk space is used for memory usage. When the memory is exhausted, the computer will automatically call the hard disk to act as the memory, to ease the memory shortage. The virtual memory will generate a pagefile. SYS file on the hard disk. As shown in:


Ii. Setting Method

For Windows 7, choose computer> right-click> Properties> advanced system Settings> performance> advanced> virtual memory> change. For example:


Three methods are available:

2.1. Custom size;

You need to first understand the general memory usage of your computer. You can use the following three methods:

2.1.1. Performance options through the task manager, such:


2.1.2. Use resource monitor, such:


2.1.3. By adding a memory monitor to the Performance Monitor, you can understand all aspects of memory usage (this is a bit professional and we can't actually use it ).

In Windows 7, choose computer> right-click> Management> performance> Monitoring Tool> Performance Monitor. For example:


Click the green + sign above, open the Add counter option, and select the memory option (you can select all or only one or several items for monitoring), such:


By default, the display mode of monitoring is line, which makes it difficult to see the data. You can click the third option in the upper row to change the graphic type. Here, select the report format, which makes it easy to see the data. For example:


The meaning of the specific options is very simple. I have a Windows counter list, which is shared and explained in detail.

Address: http://www.kuaipan.com.cn/file/id_14024936532213965.htm

After learning about the memory usage of your computer, you can customize the memory size. The larger the memory size, the better. Generally, 1 GB memory is used based on the actual memory usage, you can set the virtual memory to 128-1024 MB (the sum of memory + virtual memory is generally 25-MB higher than normal usage ).

2.2. System Management size;

This type is recommended and easy to set. You only need to select a drive letter (the recommended system disk is the drive C), set the drive letter, and click OK. (remember to set the drive letter. If you do not set the drive letter, click OK ).

2.3. No paging file. Iii. Mistakes in virtual memory settings

Misunderstanding 1: the virtual memory should not be located in the system disk C (the system disk is another disk), but in other non-system partitions.

Answer: Yes! Because disk C is the default system disk, system files and page files are the most frequently read and written files on the hard disk. What is the most time-consuming operation for hard disk read/write? Yes, Head Positioning! The head location in the same partition is undoubtedly less time-consuming than the long-distance back-and-forth location across partitions! Therefore, the virtual memory (default value) in the system disk is the fastest and most efficient.

Misunderstanding 2: the optimal value of virtual memory is 1.5-3 times of memory capacity.

Answer: Yes! It depends on the actual usage. In particular, the popularity of large memory today. Memory usage is shown in the memory column of the task manager.

Generally, the memory usage is 256 MB. You can set the virtual memory to 768-MB (the sum of memory + virtual memory is generally MB higher than the normal usage ).

1 GB memory, depending on the actual memory usage, you can set the virtual memory to 128-1024 MB (the sum of memory + virtual memory is generally-MB higher than normal ). Users who normally occupy several hundred MB (the majority) can even disable virtual memory (a small amount of virtual memory can be set with software restrictions, such as 16-128 MB ).

If the memory is 2 GB or above, virtual memory can be disabled (a small amount of virtual memory can be set with software restrictions, such as 16-128 MB ). Some people who actually use a large amount of memory, such as playing a large 3D game, making large images, 3D modeling, and receiving a warning about insufficient system memory, need to set virtual memory as appropriate.

Misunderstanding 3: The larger the virtual memory, the better.

Answer: Yes. The virtual memory is too large, which wastes disk space and increases the Head Positioning time, reducing the system execution efficiency without any benefit. Correct settings can save about mb-4 GB space (depending on the memory size)

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.