From: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Benjamin Berg <benjamin-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [BUG] NULL pointer de-ref when setting io.cost.qos on LUKS devices
Date: Thu, 5 Mar 2020 10:20:21 -0500 [thread overview]
Message-ID: <20200305152021.GA6939@mtj.thefacebook.com> (raw)
In-Reply-To: <71515f7a143937ab9ab11625485659bb7288f024.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
Hello,
On Thu, Mar 05, 2020 at 11:31:29AM +0100, Benjamin Berg wrote:
> > In the longer term, what we wanna do is controlling at physical
> > devices (sda here) and then updating dm so that it can maintain and
> > propagate the ownership correctly but we aren't there yet.
>
> Perfect, so what I am seeing is really just a small systemd bug. Thansk
> for confirming, I'll submit a patch to fix it.
IO control is a bit confusing right now. Here's the breakdown.
* There are four controllers - io.latency, io.cost, io.max and bfq's
weight implementation.
* io.latency and io.cost when combined with btrfs can control all IOs
including metadata IOs and writebacks while avoiding priority
inversions.
* wbt may interfere with IO control. It can be disabled with "echo 0 >
/sys/block/DEV/queue/wbt_lat_usec".
* io.latency is useful to protect one thing against everything else
but it gets tricky when multiple entities competing at different
priority levels.
* io.cost is what we're verifying against and deploying. While
system-level configuration is a bit involved
(/sys/fs/cgroup/io.cost.model and /sys/fs/cgroup/io.cost.qos).
Actual cgroup configuration is really simple. Simply enabling IO
controller and leaving all weights at default often can achieve most
of what's needed.
Thanks.
--
tejun
prev parent reply other threads:[~2020-03-05 15:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-03 14:13 [BUG] NULL pointer de-ref when setting io.cost.qos on LUKS devices Benjamin Berg
[not found] ` <1dbdcbb0c8db70a08aac467311a80abcf7779575.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2020-03-03 14:19 ` Tejun Heo
[not found] ` <20200303141902.GB189690-146+VewaZzwNjtGbbfXrCEEOCMrvLtNR@public.gmane.org>
2020-03-03 14:40 ` Benjamin Berg
[not found] ` <24bd31cdaa3ea945908bc11cea05d6aae6929240.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2020-03-04 16:42 ` Tejun Heo
[not found] ` <20200304164205.GH189690-146+VewaZzwNjtGbbfXrCEEOCMrvLtNR@public.gmane.org>
2020-03-05 10:31 ` Benjamin Berg
[not found] ` <71515f7a143937ab9ab11625485659bb7288f024.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2020-03-05 15:20 ` Tejun Heo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200305152021.GA6939@mtj.thefacebook.com \
--to=tj-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=benjamin-cdvu00un1VgdHxzADdlk8Q@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.