From owner-freebsd-stable@FreeBSD.ORG Fri Sep 8 09:30:59 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3276E16A4E0 for ; Fri, 8 Sep 2006 09:30:59 +0000 (UTC) (envelope-from shino@fornext.org) Received: from juniper.fornext.org (167.109.138.210.bn.2iij.net [210.138.109.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id D75AA43D53 for ; Fri, 8 Sep 2006 09:30:58 +0000 (GMT) (envelope-from shino@fornext.org) Received: from [127.0.0.1] (shino-gw.noc.titech.ac.jp [131.112.126.17]) by juniper.fornext.org (Postfix) with ESMTP id 1982A13 for ; Fri, 8 Sep 2006 18:30:56 +0900 (JST) Date: Fri, 08 Sep 2006 18:30:57 +0900 From: Shunsuke SHINOMIYA To: freebsd-stable@freebsd.org Message-Id: <20060908175132.EC4D.SHINO@fornext.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.25.02 [ja] Subject: reenable tagged queueing of VMware virtual disk. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 09:30:59 -0000 Hi, Tagged queueing feature of a VMware virtual disk connected with SCSI has been disabled since the cam quirk was added. # this quirk is needed to find the drive by SCSI HA. I modified this quirk to allow tagged queueing while finding out causes of low disk performance. This modification improve the throughput of the disk I/O on VMware ESX Server 3, at least. (4MBps -> 18Mbps, by some easy measurements using dd). I think following modification to be applicable to RELENG_[456] and MAIN. I applied this patch to my RELENG_5 (virtual) box and do 'make -j4 buildworld' now and at present, the problem has not occurred. --- sys/cam/cam_xpt.c.orig Fri Sep 8 18:10:14 2006 +++ sys/cam/cam_xpt.c Fri Sep 8 17:43:57 2006 @@ -359,7 +359,7 @@ { /* Does not support other than LUN 0 */ { T_DIRECT, SIP_MEDIA_FIXED, "VMware*", "*", "*" }, - CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0 + CAM_QUIRK_NOLUNS, /*mintags*/2, /*maxtags*/255 }, thank you. -- Shunsuke SHINOMIYA