Change to ‘deadline’ I/O scheduler
*
From command line (change the device ‘sda’ to appropriate device):
1 | echo “deadline” > /sys/block/sda/queue/scheduler |
*
kernel parameter, change /boot/grub/menu.lst, add kernel parameter
1 | elevator=deadline |
Change VM parameters
There are two variables which control the behaviour of VM flushing and allocation and affect network and disk performance
1 | * |
To set these values from command line
1 | echo 20 > /proc/sys/vm/dirty_background_ratio |
to make it permanent, edit /etc/sysctl.conf:
1 | vm.dirty_background_ratio = 20 |
Increase readahead
To get current readahead value:
1 | blockdev --getra /dev/sda |
To increase it to a higher value like 16K:
1 | blockdev --setra 16384 /dev/sda |
Disable updating access time stamp for file system
Edit /etc/fstab, remove “atime” attribute if there is, add “noatime” attribute.