Received: from eggs.gnu.org ([2001:4830:134:3::10]:56674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acOVO-0000eD-14 for qemu-devel@nongnu.org; Sat, 05 Mar 2016 21:33:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acOVK-0002UC-Rh for qemu-devel@nongnu.org; Sat, 05 Mar 2016 21:33:13 -0500 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]:36112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acOVK-0002St-LI for qemu-devel@nongnu.org; Sat, 05 Mar 2016 21:33:10 -0500 Received: by mail-io0-x22e.google.com with SMTP id l127so99795503iof.3 for ; Sat, 05 Mar 2016 18:33:10 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_198F4162-1C3E-4DE9-B7FD-DF417B8D14B4" Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) From: "Huaicheng Li (coperd)" In-Reply-To: <1079134073.2531350.1456868044024.JavaMail.zimbra@redhat.com> Date: Sat, 5 Mar 2016 20:33:07 -0600 Message-Id: References: <1079134073.2531350.1456868044024.JavaMail.zimbra@redhat.com> Subject: Re: [Qemu-devel] qemu AIO worker threads change causes Guest OS hangup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org --Apple-Mail=_198F4162-1C3E-4DE9-B7FD-DF417B8D14B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 1, 2016, at 3:34 PM, Stefan Hajnoczi = wrote: >=20 > Have you seen Linux Documentation/device-mapper/delay.txt? >=20 > You could set up a loopback block device and put the device-mapper = delay target on top to simulate latency. I=E2=80=99m working on one idea to emulate the latency of SSD = read/write,=20 which is *dynamically* changing according to the status of emulated=20 flash media. Thanks for the suggestion.= --Apple-Mail=_198F4162-1C3E-4DE9-B7FD-DF417B8D14B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Mar 1, 2016, at 3:34 PM, Stefan Hajnoczi <shajnocz@redhat.com>= wrote:

Have you seen Linux = Documentation/device-mapper/delay.txt?

You could set up a loopback block device and put = the device-mapper delay target on top to simulate latency.


I=E2=80=99= m working on one idea to emulate the latency of SSD = read/write, 
which is *dynamically* changing = according to the status of emulated 
flash = media. Thanks for the suggestion.
= --Apple-Mail=_198F4162-1C3E-4DE9-B7FD-DF417B8D14B4--