From owner-freebsd-questions@FreeBSD.ORG Mon Oct 10 01:43:27 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3966816A41F for ; Mon, 10 Oct 2005 01:43:27 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA7B43D6A for ; Mon, 10 Oct 2005 01:43:15 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout5.cac.washington.edu (8.13.4+UW05.04/8.13.4+UW05.09) with ESMTP id j9A1hEsi019561 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 9 Oct 2005 18:43:14 -0700 X-Auth-Received: from [192.168.0.23] (c-24-18-246-211.hsd1.wa.comcast.net [24.18.246.211]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.4+UW05.04/8.13.4+UW05.09) with ESMTP id j9A1hDvD020665 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 9 Oct 2005 18:43:13 -0700 Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <04E232FDCD9FBE43857F7066CAD3C0F1053BC1@svmailmel.bytecraft.internal> References: <04E232FDCD9FBE43857F7066CAD3C0F1053BC1@svmailmel.bytecraft.internal> Message-Id: <94D5758B-394E-4C75-88B6-98B142554E51@u.washington.edu> From: Garrett Cooper Date: Sun, 9 Oct 2005 18:44:32 -0700 To: FreeBSD Questions X-Mailer: Apple Mail (2.734) X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='HTML_70_90 0.1, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __FRAUD_419_TINHORN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_HTML 0, __MIME_VERSION 0, __SANE_MSGID 0, __TAG_EXISTS_HTML 0' Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: unexplained system hangs - possible smbfs issue ?? 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, 10 Oct 2005 01:43:27 -0000 On Oct 9, 2005, at 5:14 PM, Murray Taylor wrote: > Hi all, > > I have a system using smbfs that locks up every few hours. > > The system is running a cron job every minute, that opens > a directory that is actually a smbfs mounted directory on a > Windows Server 2003 machine. The program reads the directory > looking for a particular file pattern, opens and processes the file > then closes and renames the file. > > What this means is that the smnfs mounted directory file count > constantly > increases. > > The hang mentioned is just that... the cron job doesnt run, you cannot > login on the console (well you can type root and and thats it, > no password prompt appears). If there is an open console session, > a single command can be issued then the console freezes. > The only recovery is a power cycle. > > We have run the programs under a test framework to do a month load > of files in an hour, and cant hang things, yet the production box > (which is technically a better machine, but runs the same OS versions > as the testbed) will hang under 'normal' use every few hours. Its > almost > clock regular, except that it is slowly reducing the time between > hangs. > > We have just purged the Windows directory, and it seems so far to > have extended the hang window. > > Are there any known issues with smbfs and large directories??? > > NB We have other processes that use smbfs without the large number of > files on the Win systems and these have run ok for years. > > > It will hang on both these production versions. > > FreeBSD xxxhostnamexxx 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue > May 25 > 22:47:12 GMT 2004 > root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > FreeBSD xxxhostnamexxx 4.10-RELEASE-p7 FreeBSD 4.10-RELEASE-p7 #3: Thu > Apr 14 15:34:37 EST 2005 > root@svmysql3.xxxdomainnamexxx:/usr/obj/usr/src/sys/SVMYSQL3 i386 > > > mjt > > -- > A: Because it fouls the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on usenet and in e-mail? > > Murray Taylor > Bytecraft Systems > P: +61 3 8710 2555 > F: +61 3 8710 2599 > D: +61 3 9238 4275 > E: mtaylor@bytecraft.com.au Those are a lot of files =\... a temporary solution might be to compress old log files past a particular date, or use an actual database system, but yeah... I could see something odd occurring with the FreeBSD machine. However, you didn't provide a lot of information about the FBSD machine. What are the specs for it, hardware-wise? Just curious. Also, what's the approximate amount of files in the directory in question? -Garrett