Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a VPS in cloud environment based on XEN Virtualization platform.

/etc/fstab looks like that:

LABEL=PRGMRDISK1   /    ext3    errors=remount-ro       0       0

As far as I know IO can pretty easily become a bottleneck if some other VPS neighbor will use it intensively(IO bandwidth is a shared resource for multiple guest VPS).

Can I add noatime,nodiratime to /etc/fstab partition declaration to save some IO load? Will it work?

share|improve this question

migrated from stackoverflow.com Jan 24 '11 at 14:23

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

It is recommended to use noatime and nodiratime in your domU indeed, also it's good to have some other tweaks in mind, here's a quick list:

In domU (Xen guest):

  • In fstab have noatime,nodiratime.
  • Change the default scheduler to noop (add elevator=noop to your kernel boot parameters).

In dom0 (Xen host):

  • In fstab have noatime,nodiratime.
  • Change the default scheduler to anticipatory (add elevator=anticipatory to your kernel boot parameters).

To get even more IO throughput you can use other quirks as using LVM volumes to mount straight into the XEN host and stuff like that, but for starters those tricks should give you good enough IO 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.