From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Denis V. Lunev" <den@openvz.org>,
qemu-block@nongnu.org, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: Re: [PATCH 2/3] block: add logging facility for long standing IO requests
Date: Wed, 5 Aug 2020 15:51:40 +0200 [thread overview]
Message-ID: <703a491d-2281-608d-b5e7-7b143c404111@redhat.com> (raw)
In-Reply-To: <20200805100824.16817-3-den@openvz.org>
On 8/5/20 12:08 PM, Denis V. Lunev wrote:
> There are severe delays with IO requests processing if QEMU is running in
> virtual machine or over software defined storage. Such delays potentially
> results in unpredictable guest behavior. For example, guests over IDE or
> SATA drive could remount filesystem read-only if write is performed
> longer than 10 seconds.
>
> Such reports are very complex to process. Some good starting point for this
> seems quite reasonable. This patch provides one. It adds logging of such
> potentially dangerous long IO operations.
>
> Signed-off-by: Denis V. Lunev <den@openvz.org>
> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> CC: Stefan Hajnoczi <stefanha@redhat.com>
> CC: Kevin Wolf <kwolf@redhat.com>
> CC: Max Reitz <mreitz@redhat.com>
> ---
> block/accounting.c | 59 +++++++++++++++++++++++++++++++++++++-
> blockdev.c | 7 ++++-
> include/block/accounting.h | 5 +++-
> slirp | 2 +-
> 4 files changed, 69 insertions(+), 4 deletions(-)
>
...
> typedef struct BlockAcctCookie {
> @@ -101,7 +104,7 @@ typedef struct BlockAcctCookie {
>
> void block_acct_init(BlockAcctStats *stats);
> void block_acct_setup(BlockAcctStats *stats, bool account_invalid,
> - bool account_failed);
> + bool account_failed, unsigned latency_log_threshold_ms);
> void block_acct_cleanup(BlockAcctStats *stats);
> void block_acct_add_interval(BlockAcctStats *stats, unsigned interval_length);
> BlockAcctTimedStats *block_acct_interval_next(BlockAcctStats *stats,
> diff --git a/slirp b/slirp
> index ce94eba204..2faae0f778 160000
> --- a/slirp
> +++ b/slirp
> @@ -1 +1 @@
> -Subproject commit ce94eba2042d52a0ba3d9e252ebce86715e94275
> +Subproject commit 2faae0f778f818fadc873308f983289df697eb93
SLiRP change unrelated I presume...
next prev parent reply other threads:[~2020-08-05 13:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-05 10:08 [PATCH v2 0/3] block: add logging facility for long standing IO requests Denis V. Lunev
2020-08-05 10:08 ` [PATCH 1/3] block/block-backend: add converter from BlockAcctStats to BlockBackend Denis V. Lunev
2020-08-05 10:08 ` [PATCH 2/3] block: add logging facility for long standing IO requests Denis V. Lunev
2020-08-05 13:51 ` Philippe Mathieu-Daudé [this message]
2020-08-05 14:00 ` Denis V. Lunev
2020-08-05 10:08 ` [PATCH 3/3] block: enable long IO requests report by default Denis V. Lunev
-- strict thread matches above, loose matches on Subject: below --
2020-08-10 10:14 [PATCH v2 for 5.2 0/3] block: add logging facility for long standing IO requests Denis V. Lunev
2020-08-10 10:14 ` [PATCH 2/3] " Denis V. Lunev
2020-08-20 8:03 ` David Edmondson
2020-08-24 9:01 ` Denis V. Lunev
2020-09-17 13:56 ` Max Reitz
2020-09-17 15:27 ` Denis V. Lunev
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=703a491d-2281-608d-b5e7-7b143c404111@redhat.com \
--to=philmd@redhat.com \
--cc=den@openvz.org \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).