Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My laptop has one 5400rpm HDD with two partitions: OS (116Gb) and Data (327Gb). Both have plenty of space. I'm wondering whether I'll see improvement if I move my pagefile from the OS partition to the Data partition.

Is there a benefit to having the page file:

  • on the OS partition?
  • on the Data partition?
  • at a particular physical location of my HDD?
share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

If the pagefile is on the same physical disc, then any performance changes from it's location will be negligible. Common wisdom from last decade was to put the swap area in the middle of the disk (See http://www.linuxquestions.org/questions/slackware-installation-40/should-i-put-the-swap-partition-at-the-beginning-or-the-end-of-the-drive-365793/ ) , but realistically you won't notice any difference. If, on the other hand, you had another physical disk, then that could increase performance significantly. But then again, so would adding more RAM.

share|improve this answer
    
I'm guilty of following that "in the middle" scheme. My preferred Linux partitioning is one for root, a swap partition and then a partition for /home. –  sawdust Nov 12 '12 at 2:51
add comment

Having a page file on the OS/boot partition lets you make minidumps - which is useful if your computer crashes. Otherwise it shouldn't really matter all that much.

In theory, you would want files that would need to be accessed quickly on the inner part of the hard drive that has a higher linear velocity- practically though, the difference is not likely to be that great. Page files are also meant to be a temporary space, and a way to handle needing more ram - you'd probably consider this largefile/bulk storage, and can get fragmented within a partition. Trying to put a pagefile in a predictable fashion on a specific physical part of a hard drive will need you to do a seperate partition just for that, almost the way linux has a swap partition.

You're unlikely to have any benefit from moving the swap file from the OS to storage partition

share|improve this answer
    
Agree with your conclusion, but not your premises. "on the inner part of the hard drive " - Actually that's backwards. The outer cylinders/tracks have higher linear velocity, and are preferred. If the HDD uses constant areal density, then the platter transfer rate is higher; otherwise the lower bit density of the outer cylinders improves data integrity. Hence boot sectors are on the outer tracks. "it'll get fragmented" - Windows tends to put the pagefile in one contiguous and unmovable file. –  sawdust Nov 12 '12 at 2:46
    
I've seen pagefiles get fragmented, and its a pain in the rear to defragment them - technet.microsoft.com/en-us/sysinternals/bb897426.aspx - there's a reason there's tools for this. The wider point I was trying to make is though that you can't really effectively control where your pagefile is. Generalised my answer slightly, but I think the major points I was trying to make still stand –  Journeyman Geek Nov 12 '12 at 3:02
add comment

though on moving pagefile to data partition you wont have any improments however if you want improve performance you can use this tip.when your windows frequently crashes the header of paging file often gets corrupted and you get pagefaults try deleating your pagefile or emptying it and recreate it again it may improve your performance

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.