Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2003 19:32:39 +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:  <20031111192944.K678@korben.in.tern>
In-Reply-To: <20031111130545.H53345@pcle2.cc.univie.ac.at>
References:  <200311102232.hAAMW2eF067714@gw.catspoiler.org> <20031111130545.H53345@pcle2.cc.univie.ac.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Nov 2003, Lukas Ertl wrote:

> Unfortunately, we are still seeing a problem here: we are running uvscan
> (virus scanner), and while running it we are still seeing increasing unpcb
> usage and orphaned unix domain sockets.
>
> We added some debug printfs to the fifo routines and found out that
> fifo_cleanup is called from fifo_close with a vnode which has v_usecount
> == 2 so the socket close calls aren't reached.

Sorry, I probably missed an important part: we're creating the FIFOs on
nullfs mounts - the test script works great on plain UFS mounts, but the
null layer seems to VREF the vnode once again, so v_usecount is 2, thus it
is missong the check in fifo_cleanup().

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?20031111192944.K678>