pagefile.sys : Java Glossary

pagefile.sys
W95/W98/Me/NT/W2K/XP/W2003/Vista/W7-32/W7-64 have a virtual memory system. This means it fakes having more RAM (Random Access Memory) than it really does by keeping a backing store on disk contaning the least recently used information. The backing store is a file, usually on the C: drive called pagefile.sys.

pagefile.sys is usually 1.5 to 3 times the size of your real RAM. You have to experiment to find out what is optimal. Basically, the more programs you have loaded that are not actually doing anything, the bigger pagefile.sys should be. In Vista/W7-32/W7-64 you control the size of it with Start ⇒ Control Panel ⇒ System and Maintenance ⇒ System ⇒ Advanced System Settings ⇒ Advanced⇒ ⇒ Performance ⇒ Settings ⇒ Advanced ⇒ Virtual Memory ⇒ Change. If you had 2Gb of RAM, you might set the size of pagefile.sys to 3000 MB.

For good performance, you want pagefile.sys contiguous on disk, not scattered all over the disk in a number of fragments. You don’t want the disk arms to go chasing all over since this is a very heavily used files. pagefile.sys can’t be defragged like an ordinary file; it takes special techniques. See the defragger entry on programs to do that for you. Even they fail sometimes, so here is a technique for manual defragging:

Manual Defragging of pagefile.sys

Let us say you had two partitions C: and D:. First create a pagefile.sys on D:. Then reboot. Then set the size of the one on C: to 0. Then reboot. Then defrag C:. Then set the size of the C: pagefile.sys back to normal. Then reboot. Then set the one on D: to 0. Then reboot. Windows will then recreate the pagefile.sys in the vast empty spaces freed on C:, and it will natually create it in one piece, right after the end of the files, (which if you have use O&O defragger with the COMPLETE ACCESS option, are nicely in order so the most active files are at the end close to the newly created pagefile.sys).


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/pagefilesys.html J:\mindprod\jgloss\pagefilesys.html
logo
Please email your , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email. If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, please quote it and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. Threatening to kill me or spouting obscenities has yet to persuade me to change my mind.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.214]
You are visitor number 14,751.