From owner-freebsd-questions@FreeBSD.ORG Wed Feb 18 16:26:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 134C4106566B for ; Wed, 18 Feb 2009 16:26:22 +0000 (UTC) (envelope-from jon@witchspace.com) Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by mx1.freebsd.org (Postfix) with ESMTP id 4229D8FC1F for ; Wed, 18 Feb 2009 16:26:20 +0000 (UTC) (envelope-from jon@witchspace.com) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090218162619.WAIM4080.mtaout02-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Wed, 18 Feb 2009 16:26:19 +0000 Received: from witchspace.com ([82.15.251.148]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with SMTP id <20090218162619.HJOM22934.aamtaout04-winn.ispmail.ntl.com@witchspace.com> for ; Wed, 18 Feb 2009 16:26:19 +0000 Received: (qmail 4667 invoked from network); 18 Feb 2009 16:26:17 -0000 Received: from unknown (HELO ?127.0.0.1?) (192.168.0.1) by dookie.home with SMTP; 18 Feb 2009 16:26:17 -0000 Message-ID: <499C3686.3090902@witchspace.com> Date: Wed, 18 Feb 2009 16:25:42 +0000 From: Jonathan Belson User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Mel References: <49999AA2.9060306@witchspace.com> <200902161123.34208.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200902161123.34208.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.0 c=1 a=vWLZ6EcyT3kA:10 a=IjGrbkjIAAAA:8 a=bGevDrxLM1xmZGjSYIoA:9 a=UD95BBGGnNXOGMiO5f4A:7 a=xAfUTKaGwaaKkgjdmae88IpAs0IA:4 a=72oxJoRhc8oA:10 Cc: freebsd-questions@freebsd.org Subject: Re: Performance problem with samba/zfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 16:26:22 -0000 Mel wrote: > On Monday 16 February 2009 07:56:02 Jonathan Belson wrote: >> I export a few samba shares from a FreeBSD amd64 server and I've been >> editing text files on one of the shares via a Windows box. >> >> This /usually/ works fine, but occasionally I'll get a pause of several >> seconds when I save back a modified file. No errors are generated on the >> server, but it causes the smbd process takes a few % of available cpu time, >> according to top. >> >> Could this be due to the infamous seekdir/seekdir issue between samba and >> FreeBSD? Some of the directories do contain hundreds of files. This post >> suggests it has been fixed though: http://www.vnode.ch/fixing_seekdir >> >> The server is running -STABLE ('FREEBSD 7.1-PRERELEASE'), as built on >> 2008/09/08. The file system is zfs. I'm using samba 3.0.34,1, built from >> ports. > If you can reproduce this behavior using local access or ssh access (taking > samba out of the equivalent) I would take it over to freebsd-fs. > The seekdir is indeed fixed. > If not, increase verbosity for smbd, maybe it spits out a hint why it is > taking so long (smells like locking). I just moved my work to an exported UFS partition and I've seen the same problem appear a couple of times. It's possibly a little less frequent though. So with zfs off the hook, it's possible that the problem lies with samba (or maybe the editor itself, although I don't remember ever coming across the issue before). Cheers, --Jon