From owner-freebsd-sparc64@FreeBSD.ORG Wed Dec 30 19:40:02 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 967401065679 for ; Wed, 30 Dec 2009 19:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6B0B68FC14 for ; Wed, 30 Dec 2009 19:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBUJe2mb068338 for ; Wed, 30 Dec 2009 19:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBUJe2KI068337; Wed, 30 Dec 2009 19:40:02 GMT (envelope-from gnats) Date: Wed, 30 Dec 2009 19:40:02 GMT Message-Id: <200912301940.nBUJe2KI068337@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Manuel Tobias Schiller Cc: Subject: Re: sparc64/142102: FreeBSD 8.0 kernel panics on sparc64 when accessing NFS X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Manuel Tobias Schiller List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2009 19:40:02 -0000 The following reply was made to PR sparc64/142102; it has been noted by GNATS. From: Manuel Tobias Schiller To: Marius Strobl Cc: dfr@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: sparc64/142102: FreeBSD 8.0 kernel panics on sparc64 when accessing NFS Date: Wed, 30 Dec 2009 20:32:55 +0100 On Wed, 30 Dec 2009 17:36:27 +0100 Marius Strobl wrote: > On Wed, Dec 30, 2009 at 01:25:55AM +0100, Manuel Tobias Schiller wrote: > > On Tue, 29 Dec 2009 19:53:58 +0100 > > Marius Strobl wrote: > > > Oh, sorry, I had a bug in there, the svc code used a stale > > > pointer to the mbuf with this. Could you please re-fetch > > > and try again? I can't guarantee that this fixes the hang > > > you experienced but at least in theory just re-aligning > > > the data can't make the issue with the unaligned access > > > any worse. Using the LOM or by breaking into the kernel > > > by sending a break you should be able to power-cycle/ > > > reboot the machine without removing the power cord should > > > it hang again though. > > > What NFS client and with which mount options are you > > > using to trigger is problem? > > > > > > Marius > > > > I managed to compile and test a kernel with your updated patch, and > > things seem to work. I'll try to stress-test it over the night by > > copying a few tens of gigabytes over and report back with the results. > > Doug, > > could you please review the following patch? The problem > apparently is that nfsm_srvmtofh_xx() assumes the 4-byte > alignment required by XDR so fha_extract_info() has to > ensure that the mbuf data is aligned accordingly. > http://people.freebsd.org/~marius/fha_extract_info_realign.diff > > Thanks, > Marius Marius, I did a stress-test of the patch by tarring 85 Gigabyte over NFS into a pipe, untarring them in a different NFS-mounted directory. I loaded the server machine by compiling a kernel in parallel for some time. Everything worked perfectly. Thanks for all your help! Manuel -- Homepage: http://www.hinterbergen.de/mala OpenPGP: 0xA330353E (DSA) or 0xD87D188C (RSA)