From owner-freebsd-current@FreeBSD.ORG Sun Feb 22 04:34:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E05816A4CF; Sun, 22 Feb 2004 04:34:58 -0800 (PST) Received: from mailout1.pacific.net.au (mailout1.pacific.net.au [61.8.0.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9327D43D2D; Sun, 22 Feb 2004 04:34:57 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87])i1MCYsLE015015; Sun, 22 Feb 2004 23:34:54 +1100 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i1MCYqch023435; Sun, 22 Feb 2004 23:34:52 +1100 Date: Sun, 22 Feb 2004 23:34:52 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Scott Sipe In-Reply-To: <40386B2C.1090307@mindspring.com> Message-ID: <20040222205828.W12356@gamplex.bde.org> References: <40386B2C.1090307@mindspring.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: Samba Problems on Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 22 Feb 2004 12:34:58 -0000 On Sun, 22 Feb 2004, Scott Sipe wrote: > I have a FAT drive mounted (it was created and formatted under FreeBSD) > and shared via samba. newfs_msdos is very broken in -current. This may be relevant. Incomplete fixes (just enough for mounting under FreeBSD): %%% Index: newfs_msdos.c =================================================================== RCS file: /home/ncvs/src/sbin/newfs_msdos/newfs_msdos.c,v retrieving revision 1.20 diff -u -0 -r1.20 newfs_msdos.c --- newfs_msdos.c 17 Feb 2004 02:02:18 -0000 1.20 +++ newfs_msdos.c 17 Feb 2004 07:23:01 -0000 @@ -762 +861 @@ - bpb->bsec = lp->d_secperunit; + bpb->bsec = ms / secsize; %%% This fixes the file system size for the case where the device is a partition within a BSD-labeled device (and is not the whole labeled device). > When I try to copy large files to the drive from > an XP computer, samba often (not always) dies (I lose the connection) > and a large number of unkillable smbd processes abound in state "nbufkv" > if that matters (kill -9, killall -9 -- no effect)--the only solution is > to reboot the computer (which by itself doesn't always work--sometimes I > have to pull the plug). I haven't noticed anything weird in the samba > logs, or elsewhere, and am not really sure what I should look for, or > what additional information I can provide. Hanging in state "nbufkv" means that your buffer map is fragmented, and there is a bug handling it. To avoid this fragmentation, don't use file systems with a block size larger than BKVASIZE (16K), or if you must use such a file system then try increasing BKVASIZE to 32K or 64K. Block sizes larger than 16K tend to be inefficient even if they work. To monitor this fragmentation, use the vfs.bufdefragcnt and buffreekvacnt sysctls. Bruce