[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V5 5/5] block: Add iops_sector_count to do the i
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH V5 5/5] block: Add iops_sector_count to do the iops accounting for a given io size. |
Date: |
Fri, 16 Aug 2013 14:10:04 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Aug 12, 2013 at 06:53:16PM +0200, Benoît Canet wrote:
> diff --git a/block/qapi.c b/block/qapi.c
> index 5ba10f4..f98ff64 100644
> --- a/block/qapi.c
> +++ b/block/qapi.c
> @@ -258,6 +258,9 @@ void bdrv_query_info(BlockDriverState *bs,
> cfg.buckets[THROTTLE_OPS_WRITE].max;
> info->inserted->iops_wr_max =
> cfg.buckets[THROTTLE_OPS_WRITE].max;
> +
> + info->inserted->has_iops_sector_count = cfg.op_size;
> + info->inserted->iops_sector_count = cfg.op_size;
Why introduce the concept of sectors here? Throttling uses bytes and
that will help prevent confusion if the user has 4 KB sector disks, for
example, instead of 512 bytes.
- [Qemu-devel] [PATCH V5 2/5] throttle: Add units t ests, (continued)
- [Qemu-devel] [PATCH V5 2/5] throttle: Add units t ests, Benoît Canet, 2013/08/12
- [Qemu-devel] [PATCH V5 3/5] block: Enable the new throttling code in the block layer., Benoît Canet, 2013/08/12
- [Qemu-devel] [PATCH V5 4/5] block: Add support fo r throttling burst max in QMP and the command line., Benoît Canet, 2013/08/12
- [Qemu-devel] [PATCH V5 5/5] block: Add iops_sec tor_count to do the iops accounting for a given io siz e., Benoît Canet, 2013/08/12
- Re: [Qemu-devel] [PATCH V5 0/5] Continuous Leaky Bucket Throttling, Stefan Hajnoczi, 2013/08/16