From: Zhi Yong Wu Subject: Re: [Qemu-devel] [RFC]QEMU disk I/O limits Date: Thu, 2 Jun 2011 14:07:45 +0800 Message-ID: <20110602060745.GK18832@f12.cn.ibm.com> References: <20110530050923.GF18832@f12.cn.ibm.com> <20110531195549.GL16382@redhat.com> <20110601031958.GH18832@f12.cn.ibm.com> <20110601133232.GC21638@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kwolf@redhat.com, stefanha@linux.vnet.ibm.com, Mike Snitzer , guijianfeng@cn.fujitsu.com, qemu-devel@nongnu.org, wuzhy@cn.ibm.com, herbert@gondor.hengli.com.au, Joe Thornber , Zhi Yong Wu , luowenj@cn.ibm.com, kvm@vger.kernel.org, zhanx@cn.ibm.com, zhaoyang@cn.ibm.com, llim@redhat.com, Ryan A Harper To: Vivek Goyal Return-path: Received: from e23smtp03.au.ibm.com ([202.81.31.145]:56894 "EHLO e23smtp03.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755804Ab1FBGJS (ORCPT ); Thu, 2 Jun 2011 02:09:18 -0400 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp03.au.ibm.com (8.14.4/8.13.1) with ESMTP id p5264HhB029464 for ; Thu, 2 Jun 2011 16:04:17 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p5269GUJ966894 for ; Thu, 2 Jun 2011 16:09:16 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p5269ESF020058 for ; Thu, 2 Jun 2011 16:09:16 +1000 Content-Disposition: inline In-Reply-To: <20110601133232.GC21638@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jun 01, 2011 at 09:32:32AM -0400, Vivek Goyal wrote: >Date: Wed, 1 Jun 2011 09:32:32 -0400 >From: Vivek Goyal >To: Zhi Yong Wu >Cc: kwolf@redhat.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, ejt@redhat.com, luowenj@cn.ibm.com, > zhanx@cn.ibm.com, zhaoyang@cn.ibm.com, llim@redhat.com, > raharper@us.ibm.com >Subject: Re: [Qemu-devel] [RFC]QEMU disk I/O limits >User-Agent: Mutt/1.5.21 (2010-09-15) > >On Wed, Jun 01, 2011 at 11:19:58AM +0800, Zhi Yong Wu wrote: >> On Tue, May 31, 2011 at 03:55:49PM -0400, Vivek Goyal wrote: >> >Date: Tue, 31 May 2011 15:55:49 -0400 >> >From: Vivek Goyal >> >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 >> >Subject: Re: [Qemu-devel] [RFC]QEMU disk I/O limits >> >User-Agent: Mutt/1.5.21 (2010-09-15) >> > >> >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? >> Given your suggestion, its form will look like below: >> >> -drive [iops=xxx][,bps=xxx] or -drive [iops_rd=xxx][,iops_wr=xxx][,bps_rd=xxx][,bps_wr=xxx] > >Can one specify both iops and bps rule for the same drive? Right. They both will together limit runtime I/O rate. Regards, Zhiyong Wu > >Thanks >Vivek