qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Throttling groups vs filter nodes
@ 2017-05-27  7:56 Stefan Hajnoczi
  2017-05-29 15:05 ` Alberto Garcia
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2017-05-27  7:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: Manos Pitsidianakis, Kevin Wolf, Alberto Garcia

Throttling groups allow multiple drives to share the same throttling
state (i.e. budget) between them.  Manos is working on moving the
throttling code into a block filter driver so it is no longer
hardcoded into the I/O code path.

Throttling groups are not defined explicitly using -object syntax.
Instead they are brought into existence by referring to them by name:
-drive throttling.group=group0.

A quirk in the current implementation is that the throttling limits
for the group are overwritten by each -drive throttling.group=group0.
Limits for all but the last -drive in a group are ignored.

There is no way to associate with an existing throttling group while
keeping current limits in place.  The caller must pass in desired
limits with at least the last -drive (and with every hotplugged
drive).

The new throttling filter node could do things differently:
If *no* limits were specified (i.e. iops, bps, etc) then keep existing
limits for the group in place.

These semantics are more convenient - especially for hotplugging
drives after the guest has launched.

Manos: I suggest implementing this new behavior when you write the
throttling filter driver.  The code needs to check that all throttle
cfg fields are 0.  There are no backwards compatibility concerns since
the throttle filter is new and existing users don't rely on it.

Thoughts?

Stefan

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-05-30 15:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-27  7:56 [Qemu-devel] Throttling groups vs filter nodes Stefan Hajnoczi
2017-05-29 15:05 ` Alberto Garcia
2017-05-29 20:57   ` Manos Pitsidianakis
2017-05-30  9:37     ` Kevin Wolf
2017-05-30 13:12     ` Alberto Garcia
2017-05-29 15:50 ` Kevin Wolf
2017-05-30  9:28   ` Stefan Hajnoczi
2017-05-30 14:29 ` Alberto Garcia
2017-05-30 15:32   ` Kevin Wolf

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).