All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Ben Clay <rbclay@ncsu.edu>
Cc: kvm@vger.kernel.org
Subject: Re: FW: cgroup blkio.weight working, but not for KVM guests
Date: Wed, 24 Oct 2012 08:10:56 +0200	[thread overview]
Message-ID: <20121024061056.GA2904@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <046b01cdb170$7c2b7a10$74826e30$@ncsu.edu>

On Tue, Oct 23, 2012 at 04:48:13PM -0600, Ben Clay wrote:
> Since this is not an issue, I guess another source of problems could be that
> all the virtio threads attached to this domain are not being placed within
> the cgroup.  I will look through libvirt to see if they're setting the
> guest's process's cgroup classification as sticky (I can't imagine they
> wouldn't be), but this raises another question: are virtio kernel threads
> child processes of the guest's main process?

Virtio kernel threads?

Depend on the qemu-kvm -drive ...,aio=native|threads setting you should
either see:

1. For aio=native QEMU uses the Linux AIO API.  I think this results in
   kernel threads that process I/O on behalf of the userspace process.

2. For aio=threads QEMU uses its own userspace threadpool to call
   preadv(2)/pwritev(2).  These threads are spawned from QEMU's
   "iothread" event loop.

I suggest you try switching between aio=native and aio=threads to check
if this causes the result you have been seeing.

> Are you aware of any other factor which I should be considering here?

No, but I haven't played with the cgroups blkio controller much.

Stefan

  reply	other threads:[~2012-10-24  6:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <022401cdac8d$32565fa0$97031ee0$@ncsu.edu>
2012-10-22 13:36 ` FW: cgroup blkio.weight working, but not for KVM guests Ben Clay
2012-10-23 12:35   ` Stefan Hajnoczi
2012-10-23 22:48     ` Ben Clay
2012-10-24  6:10       ` Stefan Hajnoczi [this message]
2012-10-25 17:13         ` Avi Kivity

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=20121024061056.GA2904@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=rbclay@ncsu.edu \
    /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.