From owner-freebsd-questions@freebsd.org Thu Jan 5 09:23:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11C87C9E1D9 for ; Thu, 5 Jan 2017 09:23:07 +0000 (UTC) (envelope-from julien@perdition.city) Received: from relay-b02.edpnet.be (relay-b02.edpnet.be [212.71.1.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "edpnet.email", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A077418EC for ; Thu, 5 Jan 2017 09:23:06 +0000 (UTC) (envelope-from julien@perdition.city) X-ASG-Debug-ID: 1483608174-0a7b8d488ebe310001-jLrpzn Received: from mordor.lan ([213.219.148.14]) by relay-b02.edpnet.be with ESMTP id GMUewXEHDLBxPAfS (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 05 Jan 2017 10:22:55 +0100 (CET) X-Barracuda-Envelope-From: julien@perdition.city X-Barracuda-Effective-Source-IP: UNKNOWN[213.219.148.14] X-Barracuda-Apparent-Source-IP: 213.219.148.14 Date: Thu, 5 Jan 2017 10:22:54 +0100 From: Julien Cigar To: Shane Ambler Cc: freebsd-questions@freebsd.org Subject: Re: vfs.numvnodes constantly growing Message-ID: <20170105092254.GB15696@mordor.lan> X-ASG-Orig-Subj: Re: vfs.numvnodes constantly growing References: <20170104151322.GZ15696@mordor.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t8N2qprAjL+0GVly" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-Barracuda-Connect: UNKNOWN[213.219.148.14] X-Barracuda-Start-Time: 1483608174 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://212.71.1.222:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1663 X-Virus-Scanned: by bsmtpd at edpnet.be X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5000 1.0000 0.0100 X-Barracuda-Spam-Score: 0.01 X-Barracuda-Spam-Status: No, SCORE=0.01 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.35600 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2017 09:23:07 -0000 --t8N2qprAjL+0GVly Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 05, 2017 at 03:27:27PM +1030, Shane Ambler wrote: > On 05/01/2017 01:43, Julien Cigar wrote: > > Hello, > > > > I've upgraded a bunch of Proliant DL160 Gen8 machines from 10.0-RELEASE > > to 10.3-RELEASE-p15. They have 64GB of RAM, running UFS, jails, and > > have some NFS mounts: > > https://gist.github.com/silenius/4a3005684b998e648ea93c72c3dc7714 > > > > I'm observing a constant increase (~5/sec) of vfs.numvnodes, getting > > closer to kern.maxvnodes: > > > > jcigar@orval:~/ > sysctl -a|grep -i 'vnodes'|sort > > kern.maxvnodes: 1165332 > > kern.minvnodes: 291333 > > vfs.freevnodes: 289726 > > vfs.numvnodes: 1008361 > > vfs.vnodes_created: 98017296 > > vfs.wantfreevnodes: 291333 > > > > any idea what could be the cause of this ? >=20 > A system that is running. ;) That's what I thought :) I was confused by the fact that numvnodes means "in use + free", and not only "in use" >=20 > From man vnode - > There is a unique vnode allocated for each active file, each current > directory, each mounted-on file, text file, and the root. >=20 > So higher vnode counts means a busier machine, more open files... > constant growth without any drop could be failure to close files. >=20 > fstat will list open files. so you can find what process has the most ope= n. >=20 >=20 > --=20 > FreeBSD - the place to B...Software Developing >=20 > Shane Ambler >=20 --=20 Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. --t8N2qprAjL+0GVly Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE7vn2l0to0nV7EWolsrs3EKIEI8AFAlhuEGoACgkQsrs3EKIE I8DnjxAAjJT6G3xSCwB8rNJsl0KUCwCCYuJM9egFzT+U5dHyd7Rrr+2+spmkaepR YrRHh8EhBDiwCRQ9TFKYzk9Omvjugn4QNYrnMxv4fgC92yox+ERLVMG18CBixOUy vm3WW/muGwuBZSDcJF/KeVBwRFa3qcb+JyZ2k0c9FotMhH/hxa6Iwv9NsIIRsrBi VCZTZAjoAQ0U8Y6SDP8Oisu8gKzW/r5GQlFHK0RCfVuHHK5F1MiDp7ecCxaU7EMy 8foiMUaccUx7odwdbd85FcLQlxRj7hUAM9dtdmygRsTiR17MLkZRJKf81UMDMUXg v0RS5FGIOLiCgOF9yriAYT12+fXasSnjlZ4F7x/xCAS30dMi/zWl2CWZdc2lPUZd 4AtqK1Kv/bGtuS9CIFxmToy2ai8JTmHW/qpvvqaoxDFxylK3NSe2ZVe1hUqd2rCs ohpj4omRbLRuI5n3evziCDXBx/qsLIEMrcv2aYwVJmOu3pLwL7Z1SSiMY32THJ5x 7aHewy87YFBUWZ/aiNppxulA2YTmSdoLLJkiSriVBoXUFOSPIJBo/w2RxLHxTGqS vvmUzpUZdFI3Q4MzUPXJXCh+2ZncT1euaSFHN3J8Ji2Zxy/6TgbSd6eiLY69SGCa O9qyTlJLE0BZKF/7Eea+iofDjUvPuYUrpkBLFI2RDAtK4ltUYAo= =vns8 -----END PGP SIGNATURE----- --t8N2qprAjL+0GVly--