From owner-freebsd-ports Tue Dec 3 7:59:31 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23F3937B401 for ; Tue, 3 Dec 2002 07:59:27 -0800 (PST) Received: from ncsmtp03.ogw.rr.com (ncsmtp03.ogw.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id E805F43EAF for ; Tue, 3 Dec 2002 07:59:15 -0800 (PST) (envelope-from bts@fake.com) Received: from mail6.nc.rr.com (fe6 [24.93.67.53]) by ncsmtp03.ogw.rr.com (8.12.5/8.12.2) with ESMTP id gB3FwWix011008; Tue, 3 Dec 2002 10:58:45 -0500 (EST) Received: from this.is.fake.com ([24.162.238.30]) by mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 3 Dec 2002 10:59:19 -0500 Received: by this.is.fake.com (Postfix, from userid 111) id 35004BB39; Tue, 3 Dec 2002 10:56:48 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: "Brian T. Schellenberger" To: Mark Knight Subject: Re: cfs and memory usage . . . Date: Tue, 3 Dec 2002 10:56:47 -0500 User-Agent: KMail/1.4.2 References: <200210310412.48667.bts@babbleon.org> In-Reply-To: Cc: cfs-users@nsa.research.att.com, freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200212031056.47931.bts@babbleon.org> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You have made my day by merely responding. I have posted to the various lists and never gotten *any* response before; I was really wondering if these were still used. Note that I've tried drastically reducing "NINSTANCES" and I still run into the problem. I find that I can reproduce the problem quite easily by just using the "find" command to do something that actually opens the files in one of my big directories. I would be more than happy to collaborate with you on doing this. The one quasi-useful discovery that I *have* made is that it's perfectly possible to just kill cfsd and start it up again without bothering to detach and unmount and mount and re-attach; it yields "stale NFS handles" in all the shells and/or other programs that have a file open in CFS but is otherwise harmless and for the shells once merely has to cd back to where one already was in order to get everything stable again. This at least lets me avoid crashing or rebooting all the time. On Tuesday 03 December 2002 07:06 am, you wrote: | In message <200210310412.48667.bts@babbleon.org>, Brian T. | Schellenberger writes | | >I use the FreeBSD "port" of cfs, and I have noticed that it is very | >greedy in using memory. | > | >Now, I'm a little unfriendly to it now in that I have a number of | > cfs file systems set up but even when I only had one or two it | > would behave the same way: | > | >Memory usage is fine for "normal" activities, but if I do something | > that scans lots of files, such as running a "find" command that | > greps over the files in the CFS area or something, memory usage | > will shoot up to astronomical levels (eg, over 300M or more). | > | >And that memory will never be freed. | > | >This will so exhaust memory that the system will frequently crash | > not long afterwards. | > | >Now, it looks like cfs is *meant* to respond to a SIGALRM and clean | > up memory that's no longer needed, and additionally to go through | > this cleanup automatically every 60 seconds: | > | > signal(SIGALRM,grimreap); | > alarm(60); /* every 60 secs */ | > | >(at the end of main). | > | >But it looks like something is preventing this from happening, or | > the grimreap routine just never agrees to clean up anything. | > | >I know that there are parameters I can tune to use less total memory | > but I'm wondering if other people have seen this behavior and what, | > if anything you did to deal with it. | | Just a note to say that I also have this problem, particularly when | using directories with very large numbers of files. I've also | reported it to the mailing list in the past, without joy. | | You've renewed my interest in finding a fix, I might have a look... | | Cheers, -- Brian, the man from Babble-On . . . . bts@babbleon.org (personal) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message