From owner-freebsd-stable@FreeBSD.ORG Fri Feb 13 13:21:21 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50B541065731 for ; Fri, 13 Feb 2009 13:21:21 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-fx0-f16.google.com (mail-fx0-f16.google.com [209.85.220.16]) by mx1.freebsd.org (Postfix) with ESMTP id A886F8FC18 for ; Fri, 13 Feb 2009 13:21:20 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by fxm9 with SMTP id 9so1003825fxm.19 for ; Fri, 13 Feb 2009 05:21:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=gVaSfB84FUsNfl0aFkNuJrck+Ed8UgXzWeuvtEjQDfI=; b=TwRHRUpSAgKey8Cs7HN6K3089pb7+qwjaPvMuLAKZZt6ACWp4g/dHkZRZ8npYsMkJc lviN7MOWrtrM8e57QIqimpWTDJ4PLMiH/qBvfkxConMsA2OOYRfl/M8VEmPZePr59xn3 +qY2z0xM+NTI1iGvxaE7sse6kCpU2SC4mGzfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=CtctptUxML6jXO1MV/Vgwh7z2Hx2bSMH0tjjiCLxCjhll+8iTuyd31Xd/+ijGC9+Rl o8LEgQ8wbQJLhxa0KbrGwmfS1KpXoydRMD2+Vf8X14CXCCMFXwgPZcL1wIWrGG5IXX7F 1q3ZE2oaseofoJjRh5qtQ96ItPG20z7omUc2w= Received: by 10.223.110.3 with SMTP id l3mr989313fap.49.1234531094250; Fri, 13 Feb 2009 05:18:14 -0800 (PST) Received: from ?192.168.1.66? (87-194-39-182.bethere.co.uk [87.194.39.182]) by mx.google.com with ESMTPS id i39sm23550195ugd.32.2009.02.13.05.18.13 (version=SSLv3 cipher=RC4-MD5); Fri, 13 Feb 2009 05:18:13 -0800 (PST) From: Tom Evans To: Scott Long In-Reply-To: <499551B9.7050805@samsco.org> References: <499551B9.7050805@samsco.org> Content-Type: text/plain Date: Fri, 13 Feb 2009 13:18:05 +0000 Message-Id: <1234531085.2998.42.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable Subject: Re: HEADS UP: Major CAM performance regression 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, 13 Feb 2009 13:21:21 -0000 On Fri, 2009-02-13 at 03:55 -0700, Scott Long wrote: > All, > > A major performance regression was introduced to the CAM subsystem in > FreeBSD 7.1. The following configurations are known to be affected: > > VMWare ESX > VMWare Fusion > (using bt or lsilogic controller options) > HP CISS RAID > Some MPT-SAS combinations with SATA drives attached > (Includes Dell SAS5/ir, but not PERC5/PERC6). > > Pure SCSI and SAS subsystems likely are NOT affected. Any hardware > that uses the 'ata' driver is also definitely NOT affected. To > determine if your installation is affected, run the following command as > root: > > camcontrol tags da0 > > Substitute 'da0' with another appropriate drive device number, if > needed. Note that this ONLY AFFECTS 'da' DEVICES. If your disks are > 'ad' devices, they are NOT affected. > > The result from running this command should be an output similar to the > following: > > (pass0:mpt0:0:8:0): device openings: 255 > > If, instead, it reports a value of '1', you are likely affected. Note > that it may be normal for USB memory devices to report a low number. > Also, many legacy SCSI disks, and devices that are not disks, may also > be expected to report a low number. > > The effect of this problem is that only one I/O command will be issued > to the controller and disk at a time, instead of overlapping multiple > commands in parallel. This causes significantly higher latency in > servicing moderate and heavy I/O workloads, leading to very poor > performance. Performance can be easily compared by downgrading to > FreeBSD 7.0. > > I have committed a fix for this problem for FreeBSD 8-CURRENT as of SVN > revision 188570. FreeBSD 7-STABLE will be updated with the fix in a few > days once I've gotten confirmation that the fix works and doesn't cause > any adverse side-effects. Anyone wanting to help in this validation > effort should apply the attached patch to their kernel source tree and > recompile. Please contact me directly by email to report if the problem > is fixed for you. > > If the validation process goes smoothly, I will work with the release > engineering team to turn this fix into an official errata update for > FreeBSD 7.1. > > Thanks in advance for your help. > > Scott > Hi Scott I have one da0 device, a USB attached hard disk: umass0: on uhub6 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) camcontrol shows: > $ sudo camcontrol tags da0 (pass0:umass-sim0:0:0:0): device openings: 1 Is that to be expected? This is RELENG_7 from October '08: FreeBSD strangepork.mintel.co.uk 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Oct 22 02:25:56 BST 2008 root@sweetpork.pc.mintel.co.uk:/usr/FreeBSD/RELENG_7/obj/usr/FreeBSD/RELENG_7/src/sys/STRANGEPORK i386 Thanks Tom