Date: Sun, 6 Apr 2008 08:34:44 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Mark Bucciarelli <mark@crosscutmedia.com> Cc: freebsd-questions@freebsd.org Subject: Re: filesystem full after many mmap/munmap cycles Message-ID: <20080406083416.O79714@wojtek.tensor.gdynia.pl> In-Reply-To: <baefbe020804052004o598d0177h74e09e7d4f2caf71@mail.gmail.com> References: <baefbe020804052004o598d0177h74e09e7d4f2caf71@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080406083416.O79714>