From owner-freebsd-current@FreeBSD.ORG Mon Nov 10 14:00:55 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37BC516A4CE; Mon, 10 Nov 2003 14:00:55 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FCC744001; Mon, 10 Nov 2003 14:00:54 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) hAAM0jau247376; Mon, 10 Nov 2003 23:00:47 +0100 Date: Mon, 10 Nov 2003 23:00:30 +0100 (CET) From: Lukas Ertl To: Don Lewis In-Reply-To: <200311101957.hAAJvQeF067350@gw.catspoiler.org> Message-ID: <20031110225950.Y1203@korben.in.tern> References: <200311101957.hAAJvQeF067350@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: imap 4245; Body=0 Fuz1=0 Fuz2=0 cc: current@FreeBSD.org Subject: Re: named pipes memory leak? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2003 22:00:55 -0000 On Mon, 10 Nov 2003, Don Lewis wrote: > On 10 Nov, Lukas Ertl wrote: > > > > The following shell script freezes a machine in several minutes and needs > > a power cycle. You can see the increasing memory in vmstat -z (unpcb) and > > netstat -u. The kernel is FreeBSD 5.1-CURRENT Tue Nov 4 14:08:23 CET 2003. > > > > ---8<--- > > #/bin/sh > > > > FIFO=/tmp/foo > > > > for i in `jot 50000 1`; do > > mkfifo ${FIFO} > > echo blubb > ${FIFO} & > > kill $! > > rm ${FIFO} > > done > > ---8<--- > > If fifo_open() is interrupted, fifo_close() never gets called, and the > resources are not recovered. I wish doing the resource recovery in > fifo_inactive() would have worked ... > > Try this patch: Thanks, your patch seems so solve this problem effectively. regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/