[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ab90dcf6-5861-48dc-f261-d6851e150863@gmail.com>
Date: Fri, 28 Apr 2023 14:36:13 +0700
From: Bagas Sanjaya <bagasdotme@...il.com>
To: Hou Tao <houtao@...weicloud.com>, linux-block@...r.kernel.org,
Jens Axboe <axboe@...nel.dk>
Cc: Bart Van Assche <bvanassche@....org>, Jan Kara <jack@...e.cz>,
Chaitanya Kulkarni <kch@...dia.com>, cgroups@...r.kernel.org,
Tejun Heo <tj@...nel.org>, Zefan Li <lizefan.x@...edance.com>,
Johannes Weiner <hannes@...xchg.org>,
Jonathan Corbet <corbet@....net>, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, houtao1@...wei.com
Subject: Re: [PATCH v4] blk-ioprio: Introduce promote-to-rt policy
On 4/28/23 14:44, Hou Tao wrote:
> diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
> index f67c0829350b..7544ce00e0cb 100644
> --- a/Documentation/admin-guide/cgroup-v2.rst
> +++ b/Documentation/admin-guide/cgroup-v2.rst
> @@ -2024,31 +2024,33 @@ that attribute:
> no-change
> Do not modify the I/O priority class.
>
> - none-to-rt
> - For requests that do not have an I/O priority class (NONE),
> - change the I/O priority class into RT. Do not modify
> - the I/O priority class of other requests.
> + promote-to-rt
> + For requests that have a non-RT I/O priority class, change it into RT.
> + Also change the priority level of these requests to 4. Do not modify
> + the I/O priority of requests that have priority class RT.
>
> restrict-to-be
> For requests that do not have an I/O priority class or that have I/O
> - priority class RT, change it into BE. Do not modify the I/O priority
> - class of requests that have priority class IDLE.
> + priority class RT, change it into BE. Also change the priority level
> + of these requests to 0. Do not modify the I/O priority class of
> + requests that have priority class IDLE.
>
> idle
> Change the I/O priority class of all requests into IDLE, the lowest
> I/O priority class.
>
> + none-to-rt
> + Deprecated. Just an alias for promote-to-rt.
> +
> The following numerical values are associated with the I/O priority policies:
>
> -+-------------+---+
> -| no-change | 0 |
> -+-------------+---+
> -| none-to-rt | 1 |
> -+-------------+---+
> -| rt-to-be | 2 |
> -+-------------+---+
> -| all-to-idle | 3 |
> -+-------------+---+
> ++----------------+---+
> +| no-change | 0 |
> ++----------------+---+
> +| rt-to-be | 2 |
> ++----------------+---+
> +| all-to-idle | 3 |
> ++----------------+---+
>
> The numerical value that corresponds to each I/O priority class is as follows:
>
> @@ -2064,9 +2066,13 @@ The numerical value that corresponds to each I/O priority class is as follows:
>
> The algorithm to set the I/O priority class for a request is as follows:
>
> -- Translate the I/O priority class policy into a number.
> -- Change the request I/O priority class into the maximum of the I/O priority
> - class policy number and the numerical I/O priority class.
> +- If I/O priority class policy is promote-to-rt, change the request I/O
> + priority class to IOPRIO_CLASS_RT and change the request I/O priority
> + level to 4.
> +- If I/O priorityt class is not promote-to-rt, translate the I/O priority
> + class policy into a number, then change the request I/O priority class
> + into the maximum of the I/O priority class policy number and the numerical
> + I/O priority class.
>
> PID
> ---
The doc LGTM, thanks!
Reviewed-by: Bagas Sanjaya <bagasdotme@...il.com>
--
An old man doll... just what I always wanted! - Clara
Powered by blists - more mailing lists