[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-devel
Subject:    Re: [Qemu-devel] how qemu do io throttling?
From:       Brian Jackson <iggy () theiggy ! com>
Date:       2014-06-28 3:51:58
Message-ID: 53AE3BDE.7020500 () theiggy ! com
[Download RAW message or body]



On 6/27/2014 10:02 PM, yue wrote:
> hi ,all
> i now know there are 2 ways to implement io throttling,
> one is cgroup, but it is only targeted at block device.
> another is qemu itself.

cgroups are done at the host (Linux only) kernel level. So anything that 
doesn't go through the host block layer (filesystems, block devices, 
etc.) doesn't get accounted for.


> i want to know the theory how qemu itself do io throttling? and in
 > that case if it depends on the type of back storage(nfs,file,rbd, 
other posix fs)?
> it better tell me where is the code .

I don't know where exactly the code is, but it's in Qemu's own block 
layer. Which means it works with any block backend that Qemu supports. 
Both kernel space and user space. File backed, block backed, network 
backed, etc. That is one of the main reasons it was written in the first 
place.


>
> thanks
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic