qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bob Chen <a175818323@gmail.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] cgroup blkio weight has no effect on qemu
Date: Wed, 20 Jan 2016 18:15:37 +0800	[thread overview]
Message-ID: <CAMxP3BSGgbjRM+9=eer1iEVg0e_W_4J3-_r-J1ASnGGL4XAFCA@mail.gmail.com> (raw)

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

Sorry for disturbing by reply, don't know why I'm not able to send a new
mail.
------------------------

Hi folks,

Could you enlighten me how to achieve proportional IO sharing by using
cgroup, instead of qemu's io-throttling?

My qemu config is like: -drive
file=$DISKFILe,if=none,format=qcow2,cache=none,aio=native -device
virtio-blk-pci...

Test command inside vm is like: dd if=/dev/vdc of=/dev/null iflag=direct

Cgroup blkio weight of the qemu process is properly configured as well.

But no matter how change the proportion, such as vm1=400 and vm2=100, I can
only get the equal IO speed.

Wondering cgroup blkio.weight or blkio.weight_device has no effect on qemu?


PS. cache=writethrough aio=threads is also tested, the same results.


- Bob



2016-01-20 18:04 GMT+08:00 Markus Armbruster <armbru@redhat.com>:

>
>
>

[-- Attachment #2: Type: text/html, Size: 1495 bytes --]

             reply	other threads:[~2016-01-20 10:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-20 10:15 Bob Chen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-01-20 10:41 [Qemu-devel] cgroup blkio weight has no effect on qemu 陈博
2016-01-20 14:52 ` Daniel P. Berrange
2016-01-20  9:55 Bob Chen
2016-01-20  9:51 Bob Chen
2016-01-20  9:43 陈博
2016-01-20  9:37 Bob Chen
2016-01-20  9:29 Bob Chen
2016-01-19  9:59 陈博

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='CAMxP3BSGgbjRM+9=eer1iEVg0e_W_4J3-_r-J1ASnGGL4XAFCA@mail.gmail.com' \
    --to=a175818323@gmail.com \
    --cc=armbru@redhat.com \
    --cc=qemu-devel@nongnu.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 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).