Principles of Windows operating system page files

Source: Internet
Author: User
Page files are the files used by the operating system to reflect the size of the hard disk space built and used by the virtual memory. To sort out the page file, first move the page file from the original drive to another drive, then sort the original drive, and finally move the page file back to the original drive, at this time, the page files will be stored in the continuous disk space. Specifically, in Windows operating system (Windows 2000/XP) pagefile. sys is a system page file (also known as a virtual memory file). Its size depends on the number of opened programs and the minimum size of the page file you set, is constantly changing, sometimes only a few dozen M, sometimes more than 600m.
Some large software consumes a large amount of memory and also opens up a portion of the hard disk space as a buffer. The entity of this part of the hard disk space is the page file created by the software, such as Photoshop. This design can relieve the pressure on the system's scheduling memory and improve the software running speed.
The computer has a great role in the computer. All the running programs in the computer need to be executed through the memory. If the program is large or large, it will cause the memory to be exhausted. To solve this problem, the virtual memory technology is used in windows, that is, some hard disk space is used as the memory. When the memory is used up, the computer will automatically call the hard disk to act as the memory, to ease memory shortage. For example, if the computer only has MB of physical memory, a large virtual memory is required to read a file with a capacity of MB, after the file is read by the memory, it is first stored in the virtual memory. After the memory stores all the files in the virtual memory, then, the files stored in the virtual memory will be released to the original installation directory. Next, let's take a look at how to set the virtual memory.
The previous paragraph is misleading. virtual memory is not used only after physical memory is used up. Virtual Memory is only used to temporarily store physical memory content, any memory in use is read only from the physical memory. If the physical memory is used up, how can I put the content in the virtual memory into the physical memory? Even if the physical memory is not exhausted, the system will also specify a location for the newly opened program, but the file at this location in the page folder is empty.
The virtual memory is mainly set to two points, namely the memory size and paging location. The memory size is the minimum and maximum value of the virtual memory; the paging position is to set the virtual memory to use the hard disk space in that partition. How can we get the minimum and maximum values for memory size settings? You can obtain the following information by selecting "Start> program> attachment> System Tool> system monitor" (if not, you can use the Windows Installer in "Add/delete programs" to install the system monitor, and then select "Edit> Add project ", select "Memory Management Program" in "type", and select "swap file size" in the list on the right ". In this way, as your operations show fluctuations in the value of the exchanged files, you can open frequently used programs and then use them, in this case, you can check the performance values in the system monitor. Because every time you use your computer, it is best to monitor swap files for a long time to find the values that best match your swap files, so as to ensure the system performance is stable and maintained at the best state. After finding out the most appropriate range value, right-click "my computer" and select "properties" when setting the virtual memory. The System Properties window is displayed, and the "performance" tab is selected, click the "virtual memory" button below to bring up the virtual memory settings window. Click the "user-designated virtual memory Settings" Single-choice button, and select a partition with a large available space for "Hard Disk, enter the appropriate range value in the "minimum" and "maximum" text boxes. If you feel it is troublesome to use the system monitor to obtain the maximum and minimum values, you can select "Let windows manage Virtual Memory Settings" here ".
Windows 9x's virtual memory paging location is actually a virtual memory file (also called swap file) win386.swp stored in the root directory of the C drive. Its storage location can be any partition, if the system disk C capacity is limited, we can adjust win386.swp to another partition by enabling system in notepad. INI (C:/Windows) file. In the [partition ENH] section, change "pagingdrive = C: windowswin386.swp" to the path of other partitions. For example, place the swap file in D: to "D: win386.swp = pagingdrive". If you do not have the preceding statement, type it directly. For Windows 2000 and Windows XP, you can select "Settings> advanced> change" in "Control Panel> system> advanced> performance" to open the virtual memory settings window, in the drive [volume label], the system partition is selected by default. to change it to another partition, you must first set the original partition to a non-paging file, then select another partition. Alternatively, WINXP generally requires a physical memory of over MB. If you like to play large 3D games and the memory (including memory) is not large enough, the system will often prompt that the virtual memory is not enough and the system will automatically adjust it (the virtual memory is set to system management ). If your hard disk space is large enough, you can set your own virtual memory as follows: right-click my computer → properties → advanced → Performance Settings → advanced → virtual memory change → select virtual memory (page file) storage partition → Custom Size → determine the maximum and minimum values → set. Generally, the virtual memory is 1.5 times the physical memory, which is a little larger. If you do not want to change the virtual memory frequently, you can set the maximum and minimum values to the same value.
Microsoft has provided us with an official solution to the problem of how to set the virtual memory. In general, we recommend the following settings: (1) on the partition settings page of the Windows system, the file size is determined by your system settings. The specific setting method is as follows: Open the "properties" setting window of "My Computer", switch to the "advanced" tab, and in the "Write debugging information" column of the "Start and fault recovery" window, if you use "NONE", set the page file size to about 2 MB. If you use "core memory storage" and "full memory storage ", set the page file value to a greater value, which is similar to the physical memory.
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.