cfq-iosched.c:Use cfqq->nr_sectors in charge the vdisktime

From: Lina Lu
Date: Wed Mar 30 2011 - 11:24:53 EST


Hi Vivek,
I find the weight policy can be more accuracy with cfqq->nr_sectors instead
of cfqq->slice_dispatch.
Today, I try to modify cfq_group_served(), and use "charge = cfqq->nr_sectors; "
instead of "charge = cfqq->slice_dispatch; " . The test result seens more accuracy.
Why you choose slice_dispatch here? Is the nr_sectors will lower the total performance?
And in iops mod, if I try to apply weight policy on two IO processes with different
avgrq-sz, the test results will not exact match the weight value.

Thanks
Lina

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/