qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Manos Pitsidianakis <el13635@mail.ntua.gr>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Alberto Garcia <berto@igalia.com>
Subject: Re: [Qemu-devel] [Proposal] I/O throttling through new -object interface
Date: Tue, 13 Jun 2017 20:35:55 +0300	[thread overview]
Message-ID: <20170613173555.y256hkw3o4uiuucm@postretch> (raw)
In-Reply-To: <20170612111543.GC5232@noname.redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1842 bytes --]

On Mon, Jun 12, 2017 at 01:15:43PM +0200, Kevin Wolf wrote:
>Am 08.06.2017 um 20:21 hat Manos Pitsidianakis geschrieben:
>to maintain compatibility with the existing interfaces. We will have to
>automatically insert or remove new nodes if 'block_set_io_throttle' is
>used, but let's not extend it. It only makes things complicated.
>
>If people are using new features, they will be using new interfaces and
>we can make them use more natural syntax. For example, we can expect
>that they create throttle nodes manually (management tools always, human
>users at least for more complicated cases). What we may want is to
>update the settings of a throttle node at runtime (though inserting a
>new filter and then removing the old one could do the trick as well).
>
>If we want to change the settings of a throttle node, then I think the
>appropriate low-level interface is bdrv_reopen(). We need to figure out
>whether we can expose a full bdrv_reopen() on QMP or whether we need
>more specific commands. I'd prefer finally doing the "real thing" rather
>than adding more and more special-case commands to update nodes.

So basically, restrict our involvement in the graph with 
'block_set_io_throttle', which will only deal with editing the node at 
the top of the tree, just below BB? (Unless the group name instead of 
device name is specified). Can the user sufficiently manage a complex 
configuration on their own with existing interfaces (ie blockdev-add)?  

>I maintain my stance that I express off-list, which is that query-block
>should _only_ display limits that belong to the throttle node that was
>internally created for satisfying a 'block_set_io_throttle' request on a
>BlockBackend.

Assuming the answer to my first question is yes, that will always be the 
throttle node below the queried BB.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-06-13 17:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08 18:21 [Qemu-devel] [Proposal] I/O throttling through new -object interface Manos Pitsidianakis
2017-06-09 13:42 ` Alberto Garcia
2017-06-09 16:06   ` Manos Pitsidianakis
2017-06-12 12:37     ` Alberto Garcia
2017-06-13 10:16       ` Stefan Hajnoczi
2017-06-12 11:15 ` Kevin Wolf
2017-06-13 17:35   ` Manos Pitsidianakis [this message]
2017-06-12 13:59 ` Stefan Hajnoczi
2017-06-12 14:04 ` Stefan Hajnoczi

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=20170613173555.y256hkw3o4uiuucm@postretch \
    --to=el13635@mail.ntua.gr \
    --cc=berto@igalia.com \
    --cc=kwolf@redhat.com \
    --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).