Print

Print


On Wed, Jul 27, 2005 at 04:16:00PM +0100, Alessandra Forti wrote:

> Hi Kostas,
> 
> can you expand the etc on the tuning? It looks interesting.

It depends on the workload of the machine but i usually try
things like:

mount with data=writeback for ext3

RHEL3 (2.4)
-----------
sysctl -w vm.max-readahead=1024
sysctl -w vm.bdflush =  30 500 0 0 100 500 60 20 0
sysctl -w vm.pagecache = 1 5 30
sysctl -w vm.inactive_clean_percent = 70
$ elvtune -r 256 -w 1024 /dev/sda

RHEL4 (2.6)
-----------
sysctl -w vm.dirty_expire_centisecs = 1000
sysctl -w vm.dirty_writeback_centisecs = 500
sysctl -w vm.dirty_ratio = 5
sysctl -w vm.dirty_background_ratio = 10
sysctl -w vm.swappiness=0
$ echo 512 > /sys/block/sda/queue/nr_requests
$ blockdev --setra 1024 /dev/sda

Cheers,
Kostas