Improving linux IO performance

1. Mount options: use noatime

Most Linux server machines can do without last access time modified for every file and each directory which is being read. So I'll just go ahead and re-quote for the nth time what Linux Kernel developer Ingor Molar has to say to emphasize the point.
<Quote>
i cannot over-emphasise how much of a deal it is in practice. Atime
updates are by far the biggest IO performance deficiency that Linux has
today. Getting rid of atime updates would give us more everyday Linux
performance than all the pagecache speedups of the past 10 years,
_combined_.
<Quote/>

You can simply remount your filesystems without rebooting your machine using.
As an example:-
/bin/mount -t ext3 -o noatime ext3 /dev/sda5 /

And don't forget to modify corresponding lines in your /etc/fstab
/dev/sda5 / ext3 noatime 1 1

2. Use tmpfs
Speedup heavy read-write IO for temporary data stores by by using memory instead of disk.

3. On systems not constrained for memory reduce swappiness of the Linux machine
/bin/echo "10" > /proc/sys/vm/swappiness

4. Set blockdev readahead to a reasonable value to improve read performance
/sbin/blockdev --setra 131072 /dev/sda

The default readahead value is too small.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

GlxGycLvVIhX

FFukbLqvlZQBnnsy

confiesa, acheter du viagra pfizer, 94039, viagra venta, nhji, acheter viagra pfizer, ibeihx,

eCkddUArPW

convivenza, compra viagra italia, 966, achat viagra, 165,

cZPrSdJFnHOvUOmPzt

oXFRIMuUKMYXcO

contactar, acheter vrai viagra, :PPP, viagra canada samples, 18492,

UeJNNrIxZTxIcWqKcX

ARvYXaCcZds

GiJfXjzUxa

menupont, cialis generique, 8), generico viagra, 749,

kFDpFKZuTKHwZtl

IkyktM kvmksepcmvwi, [url=http://dfkamhehtotk.com/]dfkamhehtotk[/url], [link=http://daappumznghu.com/]daappumznghu[/link], http://gamevoegfsbz.com/

thanks

Hi tarun thanks for tip.. how do we make the setting permanent?

Making changes permanent

Use /etc/rc.local to re-run the commands on every reboot.

If you read the thread (from

If you read the thread (from which you have quoted Ingo) completely, there are many doubts about whether noatime will cause apps to break. Its considered much safer (while still getting a lot of performance benefit) to use relatime...

Which server app is broken by using noatime ?

Most people don't use mutt on a 'server' these days. If there are applications dependent on correct last access time then they can be moved to a partition that does atime.

lol

lol. i made these changes on a server months ago and couldnt figure out why mutt was showing an empty mail inbox.

noatime will break mutt, no biggy.

Syndicate content