From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vivek Goyal Subject: Re: [Qemu-devel][RFC]QEMU disk I/O limits Date: Tue, 31 May 2011 15:55:49 -0400 Message-ID: <20110531195549.GL16382@redhat.com> References: <20110530050923.GF18832@f12.cn.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, kwolf@redhat.com, guijianfeng@cn.fujitsu.com, herbert@gondor.hengli.com.au, stefanha@linux.vnet.ibm.com, aliguori@us.ibm.com, raharper@us.ibm.com, luowenj@cn.ibm.com, wuzhy@cn.ibm.com, zhanx@cn.ibm.com, zhaoyang@cn.ibm.com, llim@redhat.com To: Zhi Yong Wu Return-path: Received: from mx1.redhat.com ([209.132.183.28]:62376 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753523Ab1EaT4H (ORCPT ); Tue, 31 May 2011 15:56:07 -0400 Content-Disposition: inline In-Reply-To: <20110530050923.GF18832@f12.cn.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: [..] > 3.) How the users enable and play with it > QEMU -drive option will be extended so that disk I/O limits can be specified on its command line, such as -drive [iops=xxx,][throughput=xxx] or -drive [iops_rd=xxx,][iops_wr=xxx,][throughput=xxx] etc. When this argument is specified, it means that "disk I/O limits" feature is enabled for this drive disk. How does throughput interface look like? is it bytes per second or something else? Do we have read and write variants for throughput as we have for iops. if you have bytes interface(as kenrel does), then "bps_rd" and "bps_wr" might be good names too for thoughput interface. Thanks Vivek From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53138 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRV3H-0006aR-Ct for qemu-devel@nongnu.org; Tue, 31 May 2011 15:56:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRV2r-000122-JW for qemu-devel@nongnu.org; Tue, 31 May 2011 15:56:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRV2r-00011p-18 for qemu-devel@nongnu.org; Tue, 31 May 2011 15:56:05 -0400 Date: Tue, 31 May 2011 15:55:49 -0400 From: Vivek Goyal Message-ID: <20110531195549.GL16382@redhat.com> References: <20110530050923.GF18832@f12.cn.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110530050923.GF18832@f12.cn.ibm.com> Subject: Re: [Qemu-devel] [RFC]QEMU disk I/O limits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Yong Wu Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@linux.vnet.ibm.com, kvm@vger.kernel.org, guijianfeng@cn.fujitsu.com, qemu-devel@nongnu.org, wuzhy@cn.ibm.com, herbert@gondor.hengli.com.au, luowenj@cn.ibm.com, zhanx@cn.ibm.com, zhaoyang@cn.ibm.com, llim@redhat.com, raharper@us.ibm.com On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: [..] > 3.) How the users enable and play with it > QEMU -drive option will be extended so that disk I/O limits can be specified on its command line, such as -drive [iops=xxx,][throughput=xxx] or -drive [iops_rd=xxx,][iops_wr=xxx,][throughput=xxx] etc. When this argument is specified, it means that "disk I/O limits" feature is enabled for this drive disk. How does throughput interface look like? is it bytes per second or something else? Do we have read and write variants for throughput as we have for iops. if you have bytes interface(as kenrel does), then "bps_rd" and "bps_wr" might be good names too for thoughput interface. Thanks Vivek