Received: from eggs.gnu.org ([2001:4830:134:3::10]:55316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dn4YC-00076y-I0 for qemu-devel@nongnu.org; Wed, 30 Aug 2017 11:05:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dn4Y8-0005z2-A1 for qemu-devel@nongnu.org; Wed, 30 Aug 2017 11:05:04 -0400 Received: from fanzine.igalia.com ([91.117.99.155]:43130) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dn4Y7-0005yX-Tt for qemu-devel@nongnu.org; Wed, 30 Aug 2017 11:05:00 -0400 From: Alberto Garcia In-Reply-To: <9b24c28f-f891-1046-f09f-bffded9e316f@huawei.com> References: <1504016587-39779-1-git-send-email-pradeep.jagadeesh@huawei.com> <9b24c28f-f891-1046-f09f-bffded9e316f@huawei.com> Date: Wed, 30 Aug 2017 16:54:31 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v8 0/6] fsdev: qmp interface for io throttling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pradeep Jagadeesh , Pradeep Jagadeesh , eric blake , greg kurz Cc: Markus Armbruster , "Dr. David Alan Gilbert" , jani kokkonen , qemu-devel@nongnu.org On Wed 30 Aug 2017 02:10:53 PM CEST, Pradeep Jagadeesh wrote: >> I'm trying to read from an 9p share that has limits set with hmp >> fsdev_set_io_throttle and I'm having some problems. Here's one simple way to reproduce it: 1) Launch qemu with -fsdev local,security_model=none,id=fs0,path=/some/files -device virtio-9p-pci,fsdev=fs0,mount_tag=fs0 2) In the guest, mount the fs0 share in /mnt 3) Run this hmp command fsdev_set_io_throttle fs0 0 4096 0 0 0 0 4) In the guest, start reading some large file from the 9p share: dd if=/mnt/large_file of=/dev/null bs=4k iflag=direct status=progress 5) Check the progress, reading speed should be around 4k per second. 6) While dd is still running, change the I/O limits: fsdev_set_io_throttle fs0 0 8192 0 0 0 0 7) If you check the status of the dd command, reading should be faster now. Instead, it is stalled. Berto