Skip to content

RFC Use vdisktime based scheduling logic for cfq queues

Vivek Goyal cgroups lkml 1 version NAK

Status from this message: NACK.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest15 patches 11 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/15cfq-iosched: Properly name all references to IO classblock/cfq-iosched.c+34 -333 replies
2/15cfq-iosched: More renaming to better represent wl_class and wl_typeblock/cfq-iosched.c+30 -312 replies
3/15cfq-iosched: Rename "service_tree" to "st"block/cfq-iosched.c+73 -803 replies
4/15cfq-iosched: Rename few functions related to selecting workloadblock/cfq-iosched.c+5 -41 reply
5/15cfq-iosched: Get rid of unnecessary local variableblock/cfq-iosched.c+2 -61 reply
6/15cfq-iosched: Print sync-noidle information in blktrace messagesblock/cfq-iosched.c+7 -31 reply
7/15cfq-iosced: Do the round robin selection of workload typeblock/cfq-iosched.c+32 -190 replies
8/15cfq-iosched: Make cfq_scale_slice() usable for both queues and groupsblock/cfq-iosched.c+3 -30 replies
9/15cfq-iosched: make new_cfqq variable boolblock/cfq-iosched.c+2 -30 replies
10/15cfq-get-rid-of-slice-offset-and-always-put-new-queue-at-the-end-2block/cfq-iosched.c+18 -330 replies
11/15cfq-iosched: Remove residual slice logicblock/cfq-iosched.c+14 -390 replies
12/15cfq-iosched: put cooperating queue at the front of service treeblock/cfq-iosched.c+10 -50 replies
13/15cfq-iosched: Use same scheduling algorithm for groups and queuesblock/cfq-iosched.c+115 -390 replies
14/15cfq-iosched: Wait for queue to get busy even if this is not last queue in groupblock/cfq-iosched.c+2 -60 replies
15/15cfq-ioschd: Give boost to higher prio/weight queuesblock/cfq-iosched.c+41 -30 replies

Reviews trailers per patch

4 of 15 patches have a Reviewed-by or Acked-by.

PatchJeff MoyerTejun Heo
1/15A-b A-b
2/15
3/15
4/15A-b
5/15A-b
6/15A-b
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/15] Use vdisktime based scheduling logic for cfq queues

Hi,

This patches series primarily does few things.

- Intial few patches are just renaming and small cleanups so that reading code is easier. (Patches 1-5)

- A patch to print cfqq type (sync-noidle) in blktrace message. (Patch 6)

- Then patches to use vdisktime based scheduling logic for cfq queues. This is very similar to cfq group scheduling logic.

Why to change scheduling algorithm
==================================
Currently we use two scheduling algorithms at two different layers. vdisktime based algorithm for groups and round robin for cfq queues. Now we are planning to do more development in cfqq so that it can handle group hierarchies. And I think before we do that we first need to change the code so that both queues and groups are treated same way when it comes to scheduling. Otherwise the whole thing is a mess.

This patch series does not merge the queue and group scheduling code. It just tries to make these similar enough so that merging of code becomes easier in future patches.

What's the functionality impact
===============================
I don't expect much to change except that service differentiation among various prio levels might vary a bit. In did my testing on a SATA disk and lauched 8 processes with prio 0-7, all doing sequential reads. Here are the results.

		0	1	3	4	4	5	6	7

vanilla(MB/s) 14.8 10.4 7.6 6.5 4.4 3.7 3.3 1.5
patched(MB/s) 15.0 10.7 7.3 6.6 4.8 3.4 2.2 1.6

Thanks
Vivek

Vivek Goyal (15):
cfq-iosched: Properly name all references to IO class
cfq-iosched: More renaming to better represent wl_class and wl_type
cfq-iosched: Rename "service_tree" to "st"
cfq-iosched: Rename few functions related to selecting workload
cfq-iosched: Get rid of unnecessary local variable
cfq-iosched: Print sync-noidle information in blktrace messages
cfq-iosced: Do the round robin selection of workload type
cfq-iosched: Make cfq_scale_slice() usable for both queues and groups
cfq-iosched: make new_cfqq variable bool cfq-get-rid-of-slice-offset-and-always-put-new-queue-at-the-end-2
cfq-iosched: Remove residual slice logic
cfq-iosched: put cooperating queue at the front of service tree
cfq-iosched: Use same scheduling algorithm for groups and queues
cfq-iosched: Wait for queue to get busy even if this is not last
queue in group
cfq-ioschd: Give boost to higher prio/weight queues

 block/cfq-iosched.c |  567 +++++++++++++++++++++++++++++----------------------
 1 files changed, 324 insertions(+), 243 deletions(-)
Signature · 1 line
1.7.7.6