From owner-freebsd-stable@freebsd.org Tue Mar 22 18:43:48 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA635AD907C for ; Tue, 22 Mar 2016 18:43:48 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [70.91.206.90]) by mx1.freebsd.org (Postfix) with ESMTP id C7F9712D8 for ; Tue, 22 Mar 2016 18:43:48 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) X-Ambrisko-Me: Yes Received: from server2.ambrisko.com (HELO internal.ambrisko.com) ([192.168.1.2]) by ironport.ambrisko.com with ESMTP; 22 Mar 2016 11:57:07 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by internal.ambrisko.com (8.14.9/8.14.4) with ESMTP id u2MIgdT7060972; Tue, 22 Mar 2016 11:42:39 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.14.9/8.14.4/Submit) id u2MIgcxl060971; Tue, 22 Mar 2016 11:42:38 -0700 (PDT) (envelope-from ambrisko) Date: Tue, 22 Mar 2016 11:42:38 -0700 From: Doug Ambrisko To: Garrett Wollman Cc: freebsd-stable@freebsd.org Subject: Re: Hangs with mrsas? Message-ID: <20160322184238.GA58487@ambrisko.com> References: <22237.53738.967189.432979@khavrinen.csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22237.53738.967189.432979@khavrinen.csail.mit.edu> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2016 18:43:49 -0000 On Mon, Mar 07, 2016 at 02:09:30PM -0500, Garrett Wollman wrote: | I have a new Dell server with a typical Dell hardware RAID. pciconf | identifies it as "MegaRAID SAS-3 3008 [Fury]"; mfiutil reports: | | mfi0 Adapter: | Product Name: PERC H330 Adapter | Serial Number: 5AT00PI | Firmware: 25.3.0.0016 | RAID Levels: | Battery Backup: not present | NVRAM: 32K | Onboard Memory: 0M | Minimum Stripe: 64K | Maximum Stripe: 64K | | Since I'm running ZFS I have the RAID functions disabled and the | drives are presented as "system physical drives" ("mfisyspd[0-3]" when | using mfi(4)). I wanted to use mrsas(4) instead, so that I could have | direct access to the drives' SMART functions, and this seemed to work | after I set the hw.mfi.mrsas_enable tunable, with one major exception: | all drive access would hang after about 12 hours and the machine would | require a hard reset to come back up. | | Has anyone seen this before? The driver in head doesn't appear to be | any newer. You could try: https://people.freebsd.org/~ambrisko/mrsas.patch and once you have that then: https://people.freebsd.org/~ambrisko/mrsasutil.patch you can use mrsasutil with it (ie. mfiutil). Please let me know if that helps. It's based on -current and helped with things here. We also saw a performance increase on RAID controllers without cache but that could be do to the ioctl path changes I did since we do a lot of state queries via that. In theory the syspd from mfi(4) could be made to work via da(4) but that isn't what LSI did. Thanks, Doug A.