]> git.proxmox.com Git - pve-kernel-2.6.32.git/blame - optimize-cfq-parameters.patch
bump version to 2.6.32-74
[pve-kernel-2.6.32.git] / optimize-cfq-parameters.patch
CommitLineData
c9fd4d77
DM
1--- linux-2.6-2.6.32/block/cfq-iosched.c.org 2012-03-16 06:39:50.000000000 +0100
2+++ linux-2.6-2.6.32/block/cfq-iosched.c 2012-03-16 06:41:36.000000000 +0100
3@@ -21,7 +21,7 @@
4 * tunables
5 */
6 /* max queue in one round of service */
7-static const int cfq_quantum = 8;
8+static const int cfq_quantum = 32;
9 static const int cfq_fifo_expire[2] = { HZ / 4, HZ / 8 };
10 /* maximum backwards seek, in KiB */
11 static const int cfq_back_max = 16 * 1024;
12@@ -30,7 +30,7 @@
13 static const int cfq_slice_sync = HZ / 10;
14 static int cfq_slice_async = HZ / 25;
15 static const int cfq_slice_async_rq = 2;
16-static int cfq_slice_idle = HZ / 125;
17+static int cfq_slice_idle = 0; /* we disable that by default */
18 static int cfq_group_idle = HZ / 125;
19 static const int cfq_target_latency = HZ * 3/10; /* 300 ms */
20 static const int cfq_hist_divisor = 4;
21@@ -4499,8 +4499,6 @@
22 */
23 if (!cfq_slice_async)
24 cfq_slice_async = 1;
25- if (!cfq_slice_idle)
26- cfq_slice_idle = 1;
27
28 #ifdef CONFIG_CFQ_GROUP_IOSCHED
29 if (!cfq_group_idle)