From owner-freebsd-questions@FreeBSD.ORG Sun Apr 6 06:35:38 2008 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 3F623106566C for ; Sun, 6 Apr 2008 06:35:38 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6148FC16 for ; Sun, 6 Apr 2008 06:35:31 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.13.8) with ESMTP id m366YlcQ079824; Sun, 6 Apr 2008 08:34:48 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.13.8/Submit) with ESMTP id m366Yipg079812; Sun, 6 Apr 2008 08:34:46 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 6 Apr 2008 08:34:44 +0200 (CEST) From: Wojciech Puchar To: Mark Bucciarelli In-Reply-To: Message-ID: <20080406083416.O79714@wojtek.tensor.gdynia.pl> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: filesystem full after many mmap/munmap cycles 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: Sun, 06 Apr 2008 06:35:38 -0000 > I have an app server that uses mmap a lot. After running a long batch > (four hours, 5,100+ transactions), I got the message filesystem full > (/usr--ufs, local, soft-updates). df -i says plenty of space. > > I restarted the batch process, and watched app server process > carefully with fstat -p, and it looks to be behaving responsibly. The > open file list is short, and when I looked up the file names by inum, > they were correct. > > Each transaction does a mmap/munap cycle with a (big ?) file (79M), > then copies another smaller file, using mmap to do the copy. fwrite > failed on the copy operation; FreeBSD said no space. (When fwrite > failed, I called abort, so I have a core and can see where it > happened.) probably the program doesn't unmap/close files that it deletes.