Is there any difference in performance if I set the paging file to be on the second partition (D) instead of the first one (C)? All my programs are on C and I always thought it would be better if the programs and the paging file are "closer" to each other.
-
-
no put the paging file on a different partition from windows.
In comes with it set on the same partition, set it to a different partition.
this is for less file fragmentations. -
Yes I noticed that the paging file is very fragmented when it's on C. That's exactly why I wanted to move it to D.
-
Yes do that.
-
John Ratsey Moderately inquisitive Super Moderator
I disagree agree about the best location. For best transfer performance the paging file should be as near as possible to the start of the HDD. I'm sure that you have seen the HDTune charts where the transfer rate drops off from left to right. D: will be on the right half.
I agree about the fragmentation problem. However, there is an antidote. First set a fixed size paging file (My Computer > Properties > Advanced > Performance Settings > Advanced ) and change the Vitrual Memory setting to Custom with the same values for Initial and Maximum. To see what values you might need, open up all your favourite applications and look in Task Manager for the total memory usage. 1536 (1.5GB) or 2048 (2GB) may be suitable.
Now you have stopped the file from changing size (the cause of the fragmentation), how to defrag it? Fortunately, someone (Mark Russinovich) has been there before us. Download PageDefrag and let it do the necessary.
John -
sesshomaru Suspended Disbelief!
The ideal location of the paging file is on the first partition of a different physical disk. This is not usually an option in laptops, which,in most cases have one hard disk. Other than that, I agree with what John says...
-
Of course, if you put the pagefile at the start of the HDD, you'll get a better transfer rate on that, but everything else will have to be pushed back a bit, giving you a worse transfer rate on something else.
Your paging file shouldn't be used much at all. If it does, you need more RAM.
And if it isn't used much, it doesn't matter where it's located. -
NEVER on a different partition on the SAME disk. This is the worst configuration.
Best option would be on a different physical disk, but that is not possible in most laptops.
Second best would be the SAME partition with OS and with FIXED size. I have disabled the pagefile on my laptop since I already have lots of memory. No big difference but I would expect that at least things wont get worse as the disk fills up.
I agree with John above. -
Ditto what John and Villageman say.
Putting a pagefile on a separate partition on the same physical disk gives no improvement and having it on a separate disk only helps if the disk is on a different channel (since IDE can only read from one IDE device per channel at a time).
The pagefile virtual memory architecture came from VMS, and is designed around being on the same disk as applications and OS, so the benefit of even having it on a separate disk on a separate channel is minimal at best.
Just set it to something static (so windows won't resize it with the chance of it being fragemented) and let it be.
To "defrag" the pagefile, you can change the settings to not use a pagefile, reboot, change the settings to use pagefile (static amount), reboot. Pagefile is deleted.
A fragmented pagefile really doesn't mean anything or degrade performance.
Paging File on C or D?
Discussion in 'Windows OS and Software' started by antonantal, Apr 28, 2007.