All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bob Chen" <175818323@163.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] cgroup blkio weight has no effect on qemu
Date: Wed, 20 Jan 2016 17:37:10 +0800 (CST)	[thread overview]
Message-ID: <1539619f.10c67.1525e651a53.Coremail.175818323@163.com> (raw)

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

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





 

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

             reply	other threads:[~2016-01-20  9:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-20  9:37 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 10:15 Bob Chen
2016-01-20  9:55 Bob Chen
2016-01-20  9:51 Bob Chen
2016-01-20  9:43 陈博
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=1539619f.10c67.1525e651a53.Coremail.175818323@163.com \
    --to=175818323@163.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.