Messages in this thread | | | Date | Wed, 30 Mar 2011 23:23:30 +0800 | From | "Lina Lu" <> | Subject | cfq-iosched.c:Use cfqq->nr_sectors in charge the vdisktime |
| |
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
| |