Code: Select all
echo cfq > /sys/block/sda/queue/scheduler
echo 10000 > /sys/block/sda/queue/iosched/fifo_expire_async
echo 250 > /sys/block/sda/queue/iosched/fifo_expire_sync
echo 80 > /sys/block/sda/queue/iosched/slice_async
echo 1 > /sys/block/sda/queue/iosched/low_latency
echo 6 > /sys/block/sda/queue/iosched/quantum
echo 5 > /sys/block/sda/queue/iosched/slice_async_rq
echo 3 > /sys/block/sda/queue/iosched/slice_idle
echo 100 > /sys/block/sda/queue/iosched/slice_sync
hdparm -q -M 254 /dev/sda
I have no idea if these settings are right for me. Does anyone have any recommended value for these settings that I should apply to my system. I would like to normally have between 10 to 40 percent free ram (maybe fluctuate in this range), and have the system either swap or drop cache to keep it in these bounds. I'm using TazPup on a 64bit machine in this example but this should apply to any system.
I'm able to free up memory as follows:
Code: Select all
echo 3 | tee /proc/sys/vm/drop_caches