From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 20:23:35 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 A029E1065693 for ; Mon, 16 Feb 2009 20:23:35 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 4923B8FC16 for ; Mon, 16 Feb 2009 20:23:35 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.lan.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 5960DAFC1FE; Mon, 16 Feb 2009 11:23:34 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 16 Feb 2009 11:23:34 -0900 User-Agent: KMail/1.9.10 References: <49999AA2.9060306@witchspace.com> In-Reply-To: <49999AA2.9060306@witchspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902161123.34208.fbsd.questions@rachie.is-a-geek.net> Cc: Jonathan Belson 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: Mon, 16 Feb 2009 20:23:36 -0000 On Monday 16 February 2009 07:56:02 Jonathan Belson wrote: > Hiya > > 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. > > Any ideas, anyone? 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). -- Mel Problem with today's modular software: they start with the modules and never get to the software part.