[kvm-devel] I/O bandwidth control on KVM

2008-02-29 Thread Ryo Tsuruta
Hello all, I've implemented a block device which throttles block I/O bandwidth, which I called dm-ioband, and been trying to throttle I/O bandwidth on KVM environment. But unfortunately it doesn't work well, the number of issued I/Os is not according to the bandwidth setting. On the other hand, I

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-01 Thread Anthony Liguori
Hi Ryo, Ryo Tsuruta wrote: > Hello all, > > I've implemented a block device which throttles block I/O bandwidth, > which I called dm-ioband, and been trying to throttle I/O bandwidth on > KVM environment. But unfortunately it doesn't work well, the number of > issued I/Os is not according to the

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-02 Thread Avi Kivity
Anthony Liguori wrote: > Hi Ryo, > > Ryo Tsuruta wrote: > >> Hello all, >> >> I've implemented a block device which throttles block I/O bandwidth, >> which I called dm-ioband, and been trying to throttle I/O bandwidth on >> KVM environment. But unfortunately it doesn't work well, the number of

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-02 Thread Anthony Liguori
Avi Kivity wrote: > Anthony Liguori wrote: >> >> If you are using virtio drivers in the guest (which I presume you are >> given the reference to /dev/vda), try using the following -drive syntax: >> >> -drive file=/dev/mapper/ioband1,if=virtio,boot=on,cache=off >> >> This will force the use of O_DI

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-03 Thread Ryo Tsuruta
Hi, > If you are using virtio drivers in the guest (which I presume you are given > the reference to /dev/vda), try using the following -drive syntax: > > -drive file=/dev/mapper/ioband1,if=virtio,boot=on,cache=off > > This will force the use of O_DIRECT. By default, QEMU does not open with > O

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-05 Thread Ryo Tsuruta
Hi, > If you are using virtio drivers in the guest (which I presume you are > given the reference to /dev/vda), try using the following -drive syntax: > > -drive file=/dev/mapper/ioband1,if=virtio,boot=on,cache=off > > This will force the use of O_DIRECT. By default, QEMU does not open > with

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-05 Thread Anthony Liguori
Ryo Tsuruta wrote: Hi, If you are using virtio drivers in the guest (which I presume you are given the reference to /dev/vda), try using the following -drive syntax: -drive file=/dev/mapper/ioband1,if=virtio,boot=on,cache=off This will force the use of O_DIRECT. By default, QEMU does not

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-06 Thread Ryo Tsuruta
Hi Anthony. > The attached patch implements AIO support for the virtio backend so if this > is the case, you should see the proper proportions. First, thank you very much for making the patch. I ran the same test program on KVM with the patch but I wasn't able to get good results. I checked the

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-06 Thread Anthony Liguori
Ryo Tsuruta wrote: > Hi Anthony. > > >> The attached patch implements AIO support for the virtio backend so if this >> is the case, you should see the proper proportions. >> > > First, thank you very much for making the patch. > I ran the same test program on KVM with the patch but I wasn

Re: [kvm-devel] I/O bandwidth control on KVM

2008-03-10 Thread Ryo Tsuruta
Hi Anthony, > There's an aio_init in block-raw-posix.c that sets the thread count to > 1. If you #if 0 out that block, or increase the threads to something > higher (like 16), you should see multiple simultaneous requests. Sorry > about that, I had that in a different patch in my tree. Thank