In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to parse pagefile.sys. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Pagefile.sys is the virtual memory page file created during installation. The size of this file is the minimum value set by your system's virtual memory. If the virtual memory is set to 800MB-1600MB, then you can see the pagefile.sys file with the size of 800MB under your own setting drive.
If the computer is running at a lower RAM and needs more RAM immediately, Windows will use hard disk space to simulate the system
RAM . This is called virtual memory and is often called a page file. The pagefile.sys file is generated due to the setting of virtual memory. From the above text, it is not difficult to see that the setting of virtual memory is good for the performance of your computer to a certain extent. Therefore, it is recommended that you keep the virtual memory. You can even expand the capacity of virtual memory.
Edit the setting method of this paragraph
Be careful
The page file below refers to the virtual memory set by yourself to avoid putting the page file and the system file on the same drive as far as possible. Avoid putting page files in fault-tolerant drives, such as mirrored volumes or RAID-5
Roll. Page files do not need to be fault-tolerant, and some fault-tolerant systems slow down data writes because they need to write data to multiple locations. Do not place multiple page files on different partitions on the same physical disk drive.
You can make selections to optimize your computer's memory usage. If the computer is mainly used as a workstation rather than a server, more memory can be allocated to the program. The program will run faster and the size of the system cache will reach
The default size provided by Windows. If the computer is mainly used as a server, or if the program used requires a larger cache, you can choose to set aside more computer memory for the larger system cache.
General setting method
"pagefile.sys" is a page exchange file, which cannot be deleted, but we can change its size and location: right-click my computer / Properties, then click the Settings button under performance under the Advanced tab of the dialog box, switch to the Advanced tab in the performance options dialog box, and then click the change button under Virtual memory. You can change the size of the page file as needed-first select disk c, then select "No paging file", and then click the "Settings" button After selecting the drive letter to generate the file, click "Custom size" below and enter the appropriate value, which is usually 1.5 times the physical memory, then click "Settings", and finally, restart the computer. The file is on another partition.
Precise setting method
Because everyone's actual application can not be the same, for example, some people have to run large programs such as 3DMAX, Photoshop, while some people may just type and play some Mini Game, so the requirements for virtual memory are not the same, so we have to precisely set the value of virtual memory space according to local conditions.
① first sets the "initial size" and "maximum" of the virtual memory to two identical values, such as 500MB
② then opens the Control Panel → Management tools → performance. In the performance dialog box that appears, expand performance Log and Alerts in the left column, select counter Log, right-click in the space in the right column, and select the New Log Settings option in the right-click menu.
③ fills in any name in the name column of the pop-up dialog box, such as "Virtual memory Test". Click the "add counter" button in the window that appears to enter the next window
④ opens the drop-down list of performance objects in this window, selects "Paging File", checks "Select counters from list", and selects "% Usage" in the column below
Peak "; check" Select an example from the list ", select" _ Total "in the column below, and then click" add → close "to finish.
In order to view log files easily, ⑤ can open the "Log Files" tab, select "Log File Type" as "text File", and then click the "OK" button to return to the "performance" main interface.
⑥ can find an extra "virtual memory test" project in the right column. If the project is red, it means it hasn't been started yet. Click on this item and select the "start" option in the right-click menu.
Next, run some of your commonly used applications. After running for a period of time, go to the default directory "PerfLogs" under the system partition where the log file is located, find "virtual memory test _ 000001.csv" and open it with a notepad program. In this content, we look at the penultimate value in each column, which is the virtual memory usage ratio, and find the maximum value, such as "46" in the figure. Multiply 46% by 500MB (the virtual memory value set earlier) to get the value 230MB.
With this value, the initial size can be set to 230MB, and the maximum value can be set freely according to the size of disk space. It is generally recommended to set it to 2 to 3 times the minimum value. In this way, we can make the virtual memory more accurate and make our love machine run more smoothly and efficiently.
Edit the optimization method of this paragraph
The size of virtual memory is controlled by Windows, but this default Windows setting is not the best solution, so we need to make some adjustments to it. Only in this way can we give play to the best performance of the system.
1. Change the location of the page file
The main purpose is to maintain the continuity of virtual memory. Because the data read by the hard disk is read by the magnetic head on the magnetic material, and the page files are placed in different areas of the disk, the magnetic head will jump around, which is naturally not conducive to improving efficiency. And there are many files on the system disk, so the virtual memory must be discontiguous, so put it on other disks. The way to change the location of the page file is to click "my computer" with the right mouse button, select "Properties → Advanced → performance Settings → Advanced → change Virtual memory", and select the location you want to change to in the drive bar (figure 1). It is worth noting that when the page file is moved, the original file should be deleted (the system will not delete it automatically).
2. Change the size of the page file
After changing the location of the page file, we can also resize it (see figure 2). When adjusting, we need to be careful not to set the maximum and minimum page files to the same value. Because usually the memory is not really "full", it will automatically put some of the temporarily unused data on the hard disk when the memory reserves reach a certain level. The larger the minimum page file, the lower the percentage and the slower the execution. The maximum page file is the limit, sometimes many programs are opened, the memory and the minimum page file are "full", it will automatically overflow to the maximum page file. So it is unreasonable to set the two to be equivalent. In general, the minimum page file is set to be smaller, so that you can store as much data in memory as possible, and the more efficient it is. The maximum page file is set larger to avoid being "full".
3. Disable the page file
When you have more memory than 512MB, the role of the pagefile is no longer obvious, so we can disable it. The method is to enter the registry editor "HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession" in turn
Under "Ma-nagerMemoryManagement", set the value to "1" in the "DisablePa-ging Executive" option.
4. Empty the page file
There is a "ClearPageFileAtShutdown (clear page file on shutdown)" in the same location, setting the value to "1" (figure 4). The "erase" page file here does not mean to completely delete the pagefile.sys file from the hard drive, but to "clean" and organize it so as to start Windows next time.
Be prepared to make better use of virtual memory when XP.
The concept and optimization method of virtual memory. It makes us understand the working relationship between the memory and the hard disk, and realize that the virtual memory is not the bigger the better, but should be adjusted reasonably according to the specific configuration of the computer. I believe that after we really understand and master the role of virtual memory and optimization methods, it will certainly improve the performance of the machine.
Figure 4.
Edit the deletion method of this paragraph
Many deletion methods are used on the network, such as registry, console and so on. but this file is generated by the operation of the system, and the file can only be deleted by turning off virtual memory.
Usually, you can set the virtual memory of all disks to no paging file in "my computer" right-click "Properties"-- > "Advanced"-- > "performance"-- > "Virtual memory". After selecting "Settings", restart the system, you can delete the page file pagefile.sys.
The solution to pagefile.sys cannot be found after editing this section of GHOST
Unable to find page file after ghost causes and solutions of the following three problems 1.Windows reports that the page file is too small or has no page file and cannot be launched to the desktop: Windows
Unable to read or write X:pagefile.sys 2. After logging in, the loading personal settings dialog box appears, and then the save settings dialog box appears, which automatically logs out and returns to the login interface.
XP is deadlocked on the welcome screen, and there is no "Welcome" reason: Windows can't find X:WINDOWSSystem32userinit.exe 3. A problem to stop.
Windows checks the license for this computer, Error Code:0x?. Reason: Windows could not find the following files
X:WINDOWSSystem32rsaenh.dll X:WINDOWSSystem32dssenh.dll
X:WINDOWSSystem32gpkcsp.dll X:WINDOWSSystem32asfsipc.dll
X:WINDOWSSystem32wshext.dll XRV WINDOWSS system 32oembios. * Root cause: Windows
The correspondence between the GUID and the drive letter of each volume record is saved in the registry HKEY_LOCAL_MACHINESYSTEMMountedDevices. If the volume GUID
If it has been changed, the original drive letter may not be reassigned to the volume, which will prevent Windows from accessing the files on the volume in X:XXXXXX.X format.
If the above documents are not damaged or missing, they can be solved in the following two ways. Suitable for Windows
2K PowerPoint 2003 is installed in any partition (primary partition or extended partition). Method 2 is recommended in any format (FAT,FAT32,NTFS). There are no side effects and the success rate is 99.99%.
1. Start the computer with 98 floppy disk and execute Fdisk / MBR. Because the master boot record has been modified
When Windows starts, it reinstalls the driver of the hard disk and redistributes the correspondence between the GUID recorded by each volume and the drive letter due to Fdisk
The master boot record rewritten by / MBR may be exactly the same as the original master boot record, so the success rate of this method is about 95%. If this method doesn't work, use method 2.
Note: if a third-party bootstrapper is installed in MBR, use method 2. These programs include Smart Boot Manager,lilo,GRub,PowerQuest
BootMagic, System Commander,Acronis OS Select, etc., executing Fdisk / MBR will destroy these programs and may cause the system to fail to start.
two。 Start the computer with software such as ERD Commander that can edit the registry of the target system, and edit the registry of the target Windows on the hard disk
Delete all items under HKEY_LOCAL_MACHINESYSTEMMountedDevices. This removes the disk signature associated with GUID, Windows
You can reassign a default drive letter when you restart.
Sometimes the Ghost disk will install the pagefile.sys file to disk D, but you must not delete it either.
The above content is how to analyze pagefile.sys. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.