qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] The design choice for how to enable block I/O throttling function in libvirt
@ 2011-08-30  2:55 Zhi Yong Wu
  2011-08-30  7:18 ` [Qemu-devel] [libvirt] " shu ming
       [not found] ` <CAJSP0QW1CPCokX=F5z7y==vn1S4wH0VtOaQ7oj4kC7f7uQM4MQ@mail.gmail.com>
  0 siblings, 2 replies; 8+ messages in thread
From: Zhi Yong Wu @ 2011-08-30  2:55 UTC (permalink / raw)
  To: libvir-list; +Cc: Stefan Hajnoczi, Zhi Yong Wu, QEMU Developers, Adam Litke

HI, folks,

I am trying to enable block I/O throttling function in libvirt. But
currently i met some design questions, and don't make sure if we
should extend blkiotune to support block I/O throttling or introduce
one new libvirt command "blkiothrottle" to cover it or not. If you
have some better idea, pls don't hesitate to drop your comments.

If one new libvirt command "blkiothrottle" is introduced, I plan to
design its usage syntax as below:

virsh # help blkiothrottle
  NAME
    blkiothrottle - Set or display a block disk I/O throttle setting.

  SYNOPSIS
    blkiothrottle <domain> <device> [--bps <number>] [--bps_rd
<number>] [--bps_wr <number>] [--iops <number>] [--iops_rd <number>]
[--iops_wr <number>]

  DESCRIPTION
    Set or display a block disk I/O throttle setting.

  OPTIONS
    [--domain] <string>  domain name, id or uuid
    [--device] <string>  block device
    --bps <number>   total throughput limits in bytes/s
    --bps_rd <number>  read throughput limits in bytes/s
    --bps_wr <number>  write throughput limits in bytes/s
    --iops <number>  total operation limits in numbers/s
    --iops_rd <number>  read operation limits in numbers/s
    --iops_wr <number>  write operation limits in numbers/s


virsh #

2.) If blkiotune command is extended to enable block I/O throttling function.

virsh # help blkiotune
  NAME
    blkiotune - Get or set blkio parameters

  SYNOPSIS
    blkiotune <domain> [--weight <number>] [--config] [--live]
[--current] [--bps <number>] [--bps_rd <number>] [--bps_wr <number>]
[--iops <number>] [--iops_rd <number>] [--iops_wr <number>]

  DESCRIPTION
    Get or set the current blkio parameters for a guest domain.
    To get the blkio parameters use following command:

    virsh # blkiotune <domain>

  OPTIONS
    [--domain] <string>  domain name, id or uuid
    --weight <number>  IO Weight in range [100, 1000]
    --config         affect next boot
    --live           affect running domain
    --current        affect current domain

Welcome to your suggestions or comments about how to choose it. thanks.

-- 
Regards,

Zhi Yong Wu

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

end of thread, other threads:[~2011-09-01  4:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30  2:55 [Qemu-devel] The design choice for how to enable block I/O throttling function in libvirt Zhi Yong Wu
2011-08-30  7:18 ` [Qemu-devel] [libvirt] " shu ming
2011-08-30  8:10   ` Zhi Yong Wu
2011-08-30  8:31     ` shu ming
2011-08-30  8:36       ` Zhi Yong Wu
     [not found] ` <CAJSP0QW1CPCokX=F5z7y==vn1S4wH0VtOaQ7oj4kC7f7uQM4MQ@mail.gmail.com>
     [not found]   ` <20110830134636.GB29130@aglitke.rchland.ibm.com>
     [not found]     ` <CAJSP0QUHm=y8XJC_KXRg7ufFZt3K_XDDfQb--sxjC+c0GjO8qg@mail.gmail.com>
2011-09-01  3:55       ` [Qemu-devel] [RFC] block I/O throttling: how to enable " Zhi Yong Wu
2011-09-01  4:21         ` Osier Yang
2011-09-01  4:51           ` Zhi Yong Wu

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