Date: Mon, 10 Nov 2003 23:00:30 +0100 (CET) From: Lukas Ertl <l.ertl@univie.ac.at> To: Don Lewis <truckman@FreeBSD.org> Cc: current@FreeBSD.org Subject: Re: named pipes memory leak? Message-ID: <20031110225950.Y1203@korben.in.tern> In-Reply-To: <200311101957.hAAJvQeF067350@gw.catspoiler.org> References: <200311101957.hAAJvQeF067350@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031110225950.Y1203>