Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I put /var as first partition, then /home and /, will the partition for /var have better performance than if I put other partitions close to head of the disk? Will the disk sector position matter?

I heard some people saying that I should put swap closer to the head of a partition to get higher performance.

share|improve this question
Increasing usage of LVM and RAID might render this question moot. – jw013 Jul 18 '12 at 14:53
up vote 5 down vote accepted

Yes, it is true.

The platters in a disk rotate at a fixed speed (7200 RPM in the common case). As such when the head is over the outer portion of the platter more surface area passes under the head per rotation than on the inside track. Thus more IO per rotation is possible.
(The 'beginning' of the drive is the outside tracks of the platters)

Now whether this is going to be at all noticeable, especially for swap which you shouldnt be using extensively anyway, is debatable.

share|improve this answer

That was very true a decade ago, when drive IO speeds were the major bottleneck. In fact, it was recommended placing your swap on a separate drive, to keep it off your primary's BUS.

IO speeds have improved since then, partition placement for performance tweaks are negligible now.

To add, and assuming placing swap closer would improve performance, it would indicate that you would be using a lot of swap to begin with. That is exactly what you should avoid, if anything, to gain performance. Swap is a pinhole bottleneck compared to your RAM throughput, and should only get used with heavy loads, like during virtualization, or large dataset processing.

/var on the other hand, does get used more often, but I have yet to see benchmarks indicating this trick to improve it's performance. I'd be very interested if this were true :-)

update: found this interesting performance tuning guide that indicates placing /tmp or /var on the outer region of the platters, improves speed. This makes sense, bear in mind to see the difference you may need to reach loads like those of a ftp/web server.

share|improve this answer

Your Answer


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.