-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate I/O scheduler parameters to task_profiles.json
This patch preserves the CFQ I/O scheduler parameters: * Foreground blkio.weight (CfqWeight) 1000 * Foreground blkio.group_idle (CfqGroupIdle) 2000 * Background blkio.weight (CfqWeight) 200 * Background blkio.group_idle (CfqGroupIdle) 0 This patch prepares for migration of the blkio controller to the v2 cgroup hierarchy. Bug: 213617178 Change-Id: I868e766092d875813a5f5e448631d59c38915649 Signed-off-by: Bart Van Assche <[email protected]>
- Loading branch information
Bart Van Assche
committed
Sep 15, 2022
1 parent
dde9cdc
commit b84b9b0
Showing
3 changed files
with
131 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"Profiles": [ | ||
{ | ||
"Name": "LowIoPriority", | ||
"Actions": [ | ||
{ | ||
"Name": "JoinCgroup", | ||
"Params": | ||
{ | ||
"Controller": "blkio", | ||
"Path": "background" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqGroupIdle", | ||
"Value": "0", | ||
"Optional": "true" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqWeight", | ||
"Value": "200", | ||
"Optional": "true" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "NormalIoPriority", | ||
"Actions": [ | ||
{ | ||
"Name": "JoinCgroup", | ||
"Params": | ||
{ | ||
"Controller": "blkio", | ||
"Path": "" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqGroupIdle", | ||
"Value": "2000", | ||
"Optional": "true" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqWeight", | ||
"Value": "1000", | ||
"Optional": "true" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "HighIoPriority", | ||
"Actions": [ | ||
{ | ||
"Name": "JoinCgroup", | ||
"Params": | ||
{ | ||
"Controller": "blkio", | ||
"Path": "" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqGroupIdle", | ||
"Value": "2000", | ||
"Optional": "true" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqWeight", | ||
"Value": "1000", | ||
"Optional": "true" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "MaxIoPriority", | ||
"Actions": [ | ||
{ | ||
"Name": "JoinCgroup", | ||
"Params": | ||
{ | ||
"Controller": "blkio", | ||
"Path": "" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqGroupIdle", | ||
"Value": "2000", | ||
"Optional": "true" | ||
} | ||
}, | ||
{ | ||
"Name": "SetAttribute", | ||
"Params": | ||
{ | ||
"Name": "CfqWeight", | ||
"Value": "1000", | ||
"Optional": "true" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |