From owner-freebsd-current@FreeBSD.ORG Sun Aug 7 17:29:13 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC83E106566C for ; Sun, 7 Aug 2011 17:29:13 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3AA8FC0C for ; Sun, 7 Aug 2011 17:29:13 +0000 (UTC) Received: by fxe4 with SMTP id 4so1723463fxe.13 for ; Sun, 07 Aug 2011 10:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=s5GnFrnT0PioQ986SZRyhA7Yq95mJRtzQfc3pmolJSw=; b=t0uzyL+uQEM2EYL8MOzWG3aQtz1O3IEE9cZb7BoOKoDAdYdbgsmxBQXerZ6Bqb/St5 rONTJAxm4CSa/KlXhXOiLOxMDo/6Ru5xXwLqq569P7VZ9lxvLOzI/AzNdVrz1/9yjeVW kcTp7KFxloJjlgm0HisrzzMTvpvhpEvgupxiU= Received: by 10.223.15.13 with SMTP id i13mr6217830faa.51.1312736272771; Sun, 07 Aug 2011 09:57:52 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([91.198.175.1]) by mx.google.com with ESMTPS id q15sm3540736fah.32.2011.08.07.09.57.50 (version=SSLv3 cipher=OTHER); Sun, 07 Aug 2011 09:57:51 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E3EC3FD.5070404@FreeBSD.org> Date: Sun, 07 Aug 2011 19:57:33 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110709 Thunderbird/5.0 MIME-Version: 1.0 To: Ed Schouten References: <20110805185344.GA1767@hoeg.nl> <20110806092720.GA1929@hoeg.nl> In-Reply-To: <20110806092720.GA1929@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@FreeBSD.org Subject: Re: ahci(4) breaks on MSI X58 Pro-E X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2011 17:29:14 -0000 On 06.08.2011 12:27, Ed Schouten wrote: > * Ed Schouten, 20110805 20:53: >> The day before yesterday I upgraded a server of mine at Hetzner to >> FreeBSD 9. It seems to use an MSI X58 Pro-E motherboard, having an ICH10 >> SATA-controller. >> >> It seems that under high load, I get timeouts on the SATA controller. It >> seems disabling MSI has no effect. Unfortunately it's a sort-of >> production system, so I can't do a lot of testing with it and I also >> don't have any hands-on console access. > > False alarm. One of the hard disks of the server died, not long after I > upgraded to 9. They replaced the disk and the system runs fine again. > > It should be noted that the ahci(4) driver made the system hang on > timeouts, whereas the ata(4) driver already observed timeouts during > startup and disabled the channel entirely. This allowed me to properly > boot with a single disk. ata(4) always had more strict command timeout settings. That could allow to recover faster, but caused problems in some cases. About a week ago I've committed few patches to improve error recovery in case when device completely stops responding. On my tests hung device dropped within 2-3 minutes. If device is not completely dead, repeating recovery may take more time, but obviously this case has no right solution. If you have some disk redundancy, you may try to reduce number of command retries to make system recover faster. -- Alexander Motin