From owner-freebsd-hackers Sun Dec 16 1:56:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-out1.apple.com (mail-out1.apple.com [17.254.0.52]) by hub.freebsd.org (Postfix) with ESMTP id F2CDB37B405; Sun, 16 Dec 2001 01:56:37 -0800 (PST) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id fBG9ubu22662; Sun, 16 Dec 2001 01:56:37 -0800 (PST) Received: from scv3.apple.com (scv3.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Sun, 16 Dec 2001 01:55:47 -0800 Received: from [17.219.180.26] (minshallidsl1.apple.com [17.219.180.26]) by scv3.apple.com (8.11.3/8.11.3) with ESMTP id fBG9tWK00460; Sun, 16 Dec 2001 01:55:37 -0800 (PST) X-Sender: conrad@mail.apple.com Message-Id: In-Reply-To: <200112160122.fBG1Mtq18851@apollo.backplane.com> References: <58885.1008217148@winston.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 16 Dec 2001 00:01:17 -0800 To: Matthew Dillon , Jordan Hubbard , Peter Wemm , Mike Smith , hackers@freebsd.org, msmith@mass.dis.org From: Conrad Minshall Subject: Re: Found NFS data corruption bug... (was Re: NFS: How to make FreeBSD fall on its face in one easy step ) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 5:22 PM -0800 12/15/01, Matthew Dillon wrote: > Ho! Will do. I'm going to try to speed things up a bit by > having the NFS server export an MFS filesystem. > > -Matt Two things I've done to speed it up are to restrict the size of transfers (use the -o flag) and eliminate all the size checks (use the -n flag). Why would MFS be much faster than UFS? On the server doesn't the whole file end up cached? ...and the metadata changes likewise via softupdates. Running fsx during resource shortages (low memory or buf structs) has exposed a bug or two. Running it with operations 512 or page aligned also exposed bugs - see usage for those flags. Note that if you get a failure at operation 50 million there is an fsx flag which allows you to restart at, say, 49 million. Of course some failures don't reproduce reliably at the same spot anyway. I gave out fsx source code at the recent CIFS (SMB) plugfest. If I make the 2002 Connectathon I'll give it out there too. I don't test it on Windows so those defines may be in need of repair. Please send me any patches or cool additions. -- Conrad Minshall, conrad@apple.com, 408 974-2749 Apple Computer, Mac OS X Core Operating Systems To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message