How to set virtual memory for Windows 7 operating system

  
        

1. What is virtual memory?

Memory plays a big role in the computer. All running programs in the computer need to be executed through memory. If the program is large or many, the memory consumption will be exhausted. In order to solve this problem, Windows uses virtual memory technology, which takes out part of the hard disk space to act as memory. This part of the space is called virtual memory. The virtual memory exists on the hard disk in the form of PAGEFILE.SYS.

Virtual memory is just a supplement to the lack of real memory, so don't deify it. The read and write performance of virtual memory (ie hard disk read and write) is only a fraction of the real memory performance, and it is very harmful to the hard disk. ! If you can use it, you can use it less! The principle is enough to use + to leave a small amount of allowance.

2, the misunderstanding of virtual memory settings

One: the larger the virtual memory, the better.

Answer: Wrong. The virtual memory is too large, which wastes disk space, increases the time for head positioning, and reduces system execution efficiency without any benefit. Correct setting can save 256MB-4G space (depending on memory size)

3, virtual memory optimization

Generally, you can disable virtual memory first, restart the computer into safe mode (do not run at this time) A large number of programs), and then defragmentation, reset virtual memory after completion, so that the page file does not contain fragmentation, read and write faster.

4, virtual memory settings

Take Win7 as an example, computer right, properties, advanced system settings, performance > settings..., advanced, virtual memory > change..., Automatic management cancel, custom size, set, OK, exit restart.

Second: Virtual memory should not be set in the system disk C disk (the system disk is the same as other disks), but should be set in other non-system partitions.

Answer: Wrong! Because the C drive is the default system disk, the hard disk read and write most frequently is the system file and page file. What is the most time-consuming operation of hard disk reading and writing? Is the head positioning! The positioning of the head in the same partition is undoubtedly more time-saving than the long-distance positioning across the partition! Therefore, the virtual memory (system default) in the system disk is the fastest and most efficient.

Third: The optimal value of virtual memory is 1.5-3 times the memory capacity.

Answer: Wrong! It should be judged according to the actual use. Especially the popularity of large memory today. Memory usage See the task manager's memory column.

General 512MB memory, according to the actual memory usage, you can set the virtual memory to 256-768MB (the sum of memory + virtual memory is generally 256MB higher than the normal occupancy).

1GB memory, according to the actual memory usage, you can set the virtual memory to 128-1024MB (the sum of memory + virtual memory is generally 256-512MB higher than the normal occupancy). Usually, people who normally occupy hundreds of megabytes (most of them) can even disable virtual memory (software-limited software can set a small amount of virtual memory, such as 16-128MB).

Memory is 2G and above, you can generally disable virtual memory (software limited to a small amount of virtual memory, such as 16-128MB). Some people who do use a lot of memory, such as playing large 3D games, making large pictures, 3D modeling, etc., and receiving the system memory shortage warning, need to set the virtual memory as appropriate.

Copyright © Windows knowledge All Rights Reserved