From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 7 18:20:10 2014 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 691EB665 for ; Thu, 7 Aug 2014 18:20:10 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 17C24226E for ; Thu, 7 Aug 2014 18:20:09 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id s77IK4kb046515 for ; Thu, 7 Aug 2014 14:20:05 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <53E3C33E.5030004@sentex.net> Date: Thu, 07 Aug 2014 14:19:42 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: "freebsd-emulation@freebsd.org" Subject: Making disk IO place nicely in a guest (VirtualBox) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.74 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2014 18:20:10 -0000 Hi, I am running VirtualBox on RELENG_10 as the hypervisor with a RELENG10 guest. I noticed, that when a do a lot of disk IO in the guest where the hypervisor cannot keep up, this start to go "bad" in the guest. If I use the non default AHCI driver, the OS at least can kind of recover. Using the default IDE drivers (non SATA , things panic quickly.) Is there a way to make the guest OS "slow down" on how fast it can write out things to avoid it going into an error state as below ? swap_pager: indefinite wait buffer: bufobj: 0, blkno: 215, size: 8192 ahcich0: Timeout on slot 14 port 0 ahcich0: is 00000000 cs 00000000 ss 00004000 rs 00004000 tfd 50 serr 00000000 cmd 1000ce17 (ada0:ahcich0:0:0:0): READ_FPDMA_QUEUED. ACB: 60 10 e0 0a 00 40 00 00 00 00 00 00 (ada0:ahcich0:0:0:0): CAM status: Command timeout (ada0:ahcich0:0:0:0): Retrying command swap_pager: indefinite wait buffer: bufobj: 0, blkno: 215, size: 8192 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 215, size: 8192 ahcich0: Timeout on slot 14 port 0 ahcich0: is 00000000 cs 00000000 ss 00004000 rs 00004000 tfd 50 serr 00000000 cmd 1000ce17 (ada0:ahcich0:0:0:0): READ_FPDMA_QUEUED. ACB: 60 10 e0 0a 00 40 00 00 00 00 00 00 (ada0:ahcich0:0:0:0): CAM status: Command timeout (ada0:ahcich0:0:0:0): Retrying command swap_pager: indefinite wait buffer: bufobj: 0, blkno: 215, size: 8192 ahcich0: Timeout on slot 14 port 0 ahcich0: is 00000000 cs 00000000 ss 00004000 rs 00004000 tfd 50 serr 00000000 cmd 1000ce17 (ada0:ahcich0:0:0:0): READ_FPDMA_QUEUED. ACB: 60 10 e0 0a 00 40 00 00 00 00 00 00 (ada0:ahcich0:0:0:0): CAM status: Command timeout (ada0:ahcich0:0:0:0): Retrying command swap_pager: indefinite wait buffer: bufobj: 0, blkno: 215, size: 8192 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 215, size: 8192 ahcich0: Timeout on slot 14 port 0 ahcich0: is 00000000 cs 00000000 ss 00004000 rs 00004000 tfd 50 serr 00000000 cmd 1000ce17 (ada0:ahcich0:0:0:0): READ_FPDMA_QUEUED. ACB: 60 10 e0 0a 00 40 00 00 00 00 00 00 (ada0:ahcich0:0:0:0): CAM status: Command timeout (ada0:ahcich0:0:0:0): Retrying command -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/