From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 7 13:45:27 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE7F61065670 for ; Wed, 7 Apr 2010 13:45:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 5917B8FC12 for ; Wed, 7 Apr 2010 13:45:26 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o37DjNpo016648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Apr 2010 16:45:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o37DjMv0013563; Wed, 7 Apr 2010 16:45:22 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o37DjMqK013562; Wed, 7 Apr 2010 16:45:22 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 7 Apr 2010 16:45:22 +0300 From: Kostik Belousov To: Petr Salinger Message-ID: <20100407134522.GH2415@deviant.kiev.zoral.com.ua> References: <20100406092429.GV2415@deviant.kiev.zoral.com.ua> <20100406140308.GY2415@deviant.kiev.zoral.com.ua> <20100406140852.GZ2415@deviant.kiev.zoral.com.ua> <20100406144402.GB2415@deviant.kiev.zoral.com.ua> <20100406210321.GE2415@deviant.kiev.zoral.com.ua> <20100407095928.GG2415@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hf3PDeZ9a40C1ZbL" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: leak of the vnodes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 13:45:27 -0000 --hf3PDeZ9a40C1ZbL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 07, 2010 at 04:25:52PM +0200, Petr Salinger wrote: > >>I used the attached diff, with hackish snooping > >>on allocated/freed memory for vnodes. When the vp pointer have been > >>logged as active1/active2, it is (much) later shown with > >>dead_vnodeops in DUMP_VP(). > >Is there a lot of such /dev/ttyp* vnodes ? This indeed might be > >suspicious. See below for description of how to check that the > >vnodes are leaked or not. >=20 > In VP_DUMP, there have been 90% nodes of this type: >=20 > 40285 active 0xffffff00164855a0 tag devfs type 8 flags 00000080 use coun= t=20 > 1 hold count 1 > 19410 active 0xffffff0024522d20 tag devfs type 8 flags 00000080 use coun= t=20 > 1 hold count 1 > 258526 active 0xffffff000a93b960 tag devfs type 8 flags 00000080 use coun= t=20 > 1 hold count 1 > 257411 active 0xffffff00245d8b40 tag devfs type 8 flags 00000080 use coun= t=20 > 1 hold count 1 > 247494 active 0xffffff0016c7d780 tag devfs type 8 flags 00000080 use coun= t=20 > 1 hold count 1 >=20 > None of other line have VI_DOOMED set. > The tag in my output is devfs, due to commented out vp->v_tag =3D "none"; > I do not know, what the previous name (like ptyp*) have been. You cut off the most interesting question from my followup, are any of these doomed vnodes referenced by struct file from any process in the system. Can you, please, look at it ? --hf3PDeZ9a40C1ZbL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAku8jHIACgkQC3+MBN1Mb4giHQCgmzI2a/RJDezJBv7Few5fvGBv H0IAoImNx1dPE9Ra9jDZkvzbhoHDy2M8 =3sVU -----END PGP SIGNATURE----- --hf3PDeZ9a40C1ZbL--