Date: Wed, 7 Apr 2010 16:45:22 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Petr Salinger <Petr.Salinger@seznam.cz> Cc: freebsd-hackers@freebsd.org Subject: Re: leak of the vnodes Message-ID: <20100407134522.GH2415@deviant.kiev.zoral.com.ua> In-Reply-To: <Pine.LNX.4.62.1004071614550.28109@sci.felk.cvut.cz> References: <20100406092429.GV2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004061700590.25851@sci.felk.cvut.cz> <20100406140308.GY2415@deviant.kiev.zoral.com.ua> <20100406140852.GZ2415@deviant.kiev.zoral.com.ua> <20100406144402.GB2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004062154060.26438@sci.felk.cvut.cz> <20100406210321.GE2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004070838050.27621@sci.felk.cvut.cz> <20100407095928.GG2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004071614550.28109@sci.felk.cvut.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100407134522.GH2415>