task_profiles.json: Set io.prio.class

Provide an additional way to request the block layer to prioritize
foreground I/O over background I/O. This patch prepares for tests with
the mq-deadline I/O scheduler. While CFQ and BFQ support a "weight"
cgroup attribute, the mq-deadline scheduler does not. The mq-deadline
I/O scheduler only supports the I/O priority class for differentiating
I/O priorities.

The io.prio.class attribute is declared optional since this attribute
only exists if CONFIG_BLK_CGROUP_IOPRIO != n in the kernel
configuration.

Bug: 186902601
Change-Id: Iee1004cd0996e32245aff2b51772ef40178e024f
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
Bart Van Assche 2023-09-28 15:18:56 -07:00
parent fb3e64ab42
commit 9bba87244d

View file

@ -91,6 +91,11 @@
"Name": "CfqWeight",
"Controller": "io",
"File": "io.weight"
},
{
"Name": "IoPrioClass",
"Controller": "io",
"File": "io.prio.class"
}
],
@ -479,6 +484,15 @@
"Value": "200",
"Optional": "true"
}
},
{
"Name": "SetAttribute",
"Params":
{
"Name": "IoPrioClass",
"Value": "restrict-to-be",
"Optional": "true"
}
}
]
},
@ -511,6 +525,15 @@
"Value": "1000",
"Optional": "true"
}
},
{
"Name": "SetAttribute",
"Params":
{
"Name": "IoPrioClass",
"Value": "restrict-to-be",
"Optional": "true"
}
}
]
},
@ -543,6 +566,15 @@
"Value": "1000",
"Optional": "true"
}
},
{
"Name": "SetAttribute",
"Params":
{
"Name": "IoPrioClass",
"Value": "promote-to-rt",
"Optional": "true"
}
}
]
},
@ -575,6 +607,15 @@
"Value": "1000",
"Optional": "true"
}
},
{
"Name": "SetAttribute",
"Params":
{
"Name": "IoPrioClass",
"Value": "promote-to-rt",
"Optional": "true"
}
}
]
},