Detailed Windows virtual memory

Source: Internet
Author: User
Tags file size range window
window| detailed

In a nutshell, the file data is a cross linking activity file. is a "WIN386" in the Windows directory. SWP "file, this file will continue to expand and automatically shrink. Virtual memory is like the L1 and L2 cache of CPUs and the 512k-2m cache of hard disks. Specifically, if the computer has only 64M of physical memory, when reading a 100M executable, you must use the larger virtual memory, the file will be read after the memory will first be stored in the virtual memory, waiting for memory to save all the files to the virtual memory, Keep up with the virtual storage of the file will be released into the original installation directory.

Second, the role of virtual memory

Memory is very important in the computer, 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, will lead to memory consumption exhausted. To solve this problem, Windows uses virtual memory technology, that is, to take out a part of the hard disk space to act as memory, when the memory is exhausted, the computer will automatically call the hard disk to act as memory, to ease the memory tension. For example, if the computer has only 128MB of physical memory, when reading a file with a capacity of 200MB, you must use a larger virtual memory, the file will be read after the memory is stored in virtual memory, waiting for memory to store all the files to virtual memory, Then you will release the virtual storage files into the original installation directory. Next, let's take a look at how to set up the virtual memory.

Third, the virtual memory settings

For virtual memory mainly set two points, that is, memory size and paging position, memory size is set the minimum virtual memory and the maximum number, and the paging position is set virtual memory should use the hard disk space in that partition. How do I get the minimum and maximum value for the memory size setting? You can use the following methods to obtain: Select "start → program → attachment → system tools → system Monitor" (if not in System tools, you can install through the Windows Installer in Add/Remove Programs) Open System Monitor and select Edit → add item, and in the type item, select Memory manager, and select "Swap file Size" in the list on the right. That way, as you do, you'll see fluctuations in the value of the Exchange file, you can open the program you want to use, and then use it, and then look at the performance values in the System Monitor, because each time the user uses the computer is different, so It is best to be able to monitor the swap file over a long period of time to find the value that best matches your Exchange file, so that the system is stable and in optimal condition.

After you have found the most appropriate range value, when you set up virtual memory, right click on "My Computer", select "Properties", pop-up System Properties window, select "Performance" tab, click the "Virtual Memory" button below, pop-up virtual Memory Settings window, click the "user specified virtual memory settings" radio button, "Hard disk" Select the partition for the larger remaining space, and then enter the appropriate range value in the Min and max text boxes. If you feel the hassle of using System Monitor for maximum and minimum values, you can choose to have Windows manage virtual memory settings entirely.

Four, adjust the paging position

The virtual memory paging location of Windows 9x, In fact, is saved in the C-packing directory of a virtual memory file (also known as Exchange file) WIN386.SWP, its location can be any one partition, if the system disk C capacity is limited, we can transfer win386.swp to other partitions, the way is in Notepad open System.ini (C : \\Windows) file, in the [386Enh] section, change "PAGINGDRIVE=C:WINDON386.SWP" to a path to another partition, such as "PAGINGDRIVE=D:WIN386.SWP" if you put the swap file in D: , such as without the above statement can be typed directly.

With Windows 2000 and Windows XP, you can select settings → advanced → changes in Control Panel → system → advanced → performance to open the Virtual Memory Settings window, and the default selection in the drive [volume label] is the partition where the system resides, and if you want to change to a different partition, First, set the original partition to no paging file, and then select a different partition.

Five, the best way to set up virtual memory

In terms of usage, first of all I think that the virtual memory into another disk can reduce the fragmentation of disk, more fully in the disk collation, if only using WIN98 their own virtual inside, you can carefully look at the disk defragmentation under WIN98 will appear a lot of files can not be moved, is white red, In fact, those are virtual memory files. Because WIN98 is not released in time after using virtual memory, it will behave like this first. If you set the virtual memory to another disk, and then delete the Win386.swp files in the Windows directory, and do a defragmentation of the disk, you will find that the white-red files will be a lot less. Another benefit is that you can reduce the amount of disk fragmentation that occurs when a file is swapped, such as putting a C: After a full collation, and then deleting and reloading the file in C: 3-4 times, and then defragmenting it a lot faster. The more physical memory is compared to the less virtual memory, the better performance.

First talk about how WIN98 should set virtual memory, if only 64M of physical memory set to 160 virtual memory, 128M physical memory set 250M virtual memory, If it is 256 physical memory virtual 128M virtual memory (mainly to see what software you use if it is 3dsmax4.0 or PHOTOSHOP6.01 the words are no problem. ), if it is to play the main can be set to 80M virtual memory, if it is 384-512 physical memory can be virtual 32-64m virtual memory. WIN98 the best physical memory is not more than 512M, because the larger the memory performance in the WIN98 system will be reduced, because WIN98 can fully use the memory only under 24M can be fully used. Plus, the larger the memory in the WIN98 system, the longer the CPU memory addressing time will degrade the performance

WIN2000 and XP virtual memory settings, it is recommended that the two operating systems is the CPU up to 1G and physical memory is 256m,7200 2M cache of hard drives, because WIN2000 and XP in memory use of different WIN98, the higher the physical memory performance. It is best to have 512n-1g memory. Specific settings, if only 64M of physical memory to set 200M virtual memory, 128M physical memory is set to 250M virtual memory, if it is the 256M physical memory (only for server use virtual 16m-32m virtual memory, and 3DSMAX or PHOTOSHOP6.01 can be set to 60m-120m virtual memory. If it is 512m-1g or more physical memory is set to 16-32m virtual memory. Physical memory can be fully used in WIN2000 and WinXP.

Note: If C: is the operating system disk, put the virtual memory into D: To, the best is D: First of all must be an empty disk. If it is a dual hard drive, it is best to set the virtual memory to the from disk. Disk defragmentation if it is WIN98 it is best to use the DEFRAG.EXE in WinME to migrate to the WIN98 folder windows, directly overwrite the line, and the Windows directory under the Applog delete it is a hidden file. Or use Third-party software, such as Voptme, Norton's SpeedDisk. If it is WIN2000 and WinXP it is best to use the disk defragmentation itself, the third party software uses Diskeeper, Norton SpeedDisk. If there is not enough memory, you can turn the virtual memory larger. The other is to remember that it is best not to disable virtual memory, at least to set 2m-4m virtual memory Otherwise there will be some software can not use or error. After these optimizations, performance is bound to improve.





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.