What is Pagefile.sys file
This file is very special and uses Windows to temporarily store data which are exchanged between the RAM in order to have a larger block of memory, it is known as VIRTUAL MEMORY.
The file name is pagefile.sys and is created at the time of Windows installation on the root drive (usually C: \) where the system boot is located and its attributes are hidden.
The pagefile.sys file should normally not be viewable in Windows Explorer, unless you have disabled the “Hide Protected System Files” option.
The pagefile.sys file size is typically 1.5 times larger than the system’s RAM. (For example, if you have 1GB of RAM, the file should weigh something like 1.5GB, if you have 256MB, the file should weigh something like 384B, and so on, etc.)
How to optimize and what is the best location of the Pagefile.sys file
Some tips that you should keep in mind to handle that file much better:
1. Avoid creating or having a pagefile.sys file on the same hard disk where the operating system files are located.
This is achieved by having two hard disks, if you have Windows in C: \, you can configure a single pagefile.sys file located on the first partition of the second hard drive, eg: D: \
2. Do not create pagefile.sys files on multiple partitions on the same hard disk, you just need to create a pagefile.sys file on a single partition.
3. Do not create pagefile.sys files on mirror hard drives (backup) or on RAID-5 partitions
So simply create a pagefile.sys file in the system.
How to create or set a pagefile.sys file?
You can individually configure a pagefile.sys file on each drive we want as follows:
1. Right click on “My Computer” and Click on “Properties”
Or Click on the “Start” button> Click on “Control Panel”> Double Click on the “System”
2. Now click on the “Advanced Options” tab (Windows XP) | Or “Advanced” (Windows 2000)
3. Under the “Performance” section click the “Settings” button (Windows XP) | Or click on “Performance Options” (Windows 2000)
4. Now click on the “Advanced” tab (Windows XP only)
5. In the section “Virtual memory” click on the “Change” button
6. As we said earlier, we recommend a single pagefile.sys file. Make sure that only one pagefile.sys file is configured:
At the top, the available disk drives are listed, to see if they have a pagefile.sys file configured, simply select a drive and see if any of the following options are checked (Windows XP):
- Custom size (You can manually set the size of the pagefile.sys file on the selected drive)
- System-managed size (Automatically configured) Recommended!
- No paging file (The selected disk drive does not have the pagefile.sys file)
In Windows 2000, only the option to set the minimum and maximum manually is available.
Removing a Pagefile.sys File
It is not recommended to delete pagefile.sys. But if you need disk space or you are doing a test we will see the steps (another option for free disk space is clear hiberfil sys).
- In Windows 7 do the following steps:
Open the Control Panel
Click on System and Security and then the system link
Click on “Advanced system settings”
Go to Advanced tab
Click on settings
Go to Advanced tab
Click on Change Button
Unselect “Automatically manage paging file size for all drives”.
Select “No Paging File”. Click Set
Click Ok and Reboot.
- In Windows XP, if you want to modify this, for example, remove or delete the pagefile.sys file from C :, mark the C: drive, then select the option Without paging file and finally click the “Set”. Windows will remove the “pagefile.sys” file from the selected drive on the next reboot.
- In Windows 2000, to remove or delete the pagefile.sys file from C :, mark the C: drive, then enter the values ”0″ to each of the boxes of Initial size and Maximum size and finally click on the button “Establish”. Windows will remove the “pagefile.sys” file from the selected drive on the next reboot.
Note: In windows 2000, if there is no paging file, you will get a warning window notifying you of this on every reboot.
Can my system work without a pagefile.sys file?
The answer is YES. Yes, if your system has enough RAM to worry about when you are running the maximum number of applications and doing the most tasks on a maximum work day. If you have 2GB or more, you can try to see how your system works.
Now, as a professional recommendation, NO, I DO NOT recommend that you leave the system without any pagefile.sys file, your system may need some extra memory at some point, and not being able to use VIRTUAL memory may cause some type of crash (Freezing) system, so be warned. Many things will stop working if you delete it and many manufacturers create software based on that file exists on the hard drive, and Windows XP does not use the file until you need it so you will not get any benefits by removing it.
Note: In windows 2000, if there is no paging file, you will get a warning window telling you this on every reboot.