From owner-freebsd-questions@freebsd.org Thu Jan 5 04:57:37 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 E8B30C9E70B for ; Thu, 5 Jan 2017 04:57:37 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [150.101.137.143]) by mx1.freebsd.org (Postfix) with ESMTP id 889AA16AA for ; Thu, 5 Jan 2017 04:57:36 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-147-181.bras1.adl6.internode.on.net (HELO leader.local) ([118.210.147.181]) by ipmail05.adl6.internode.on.net with ESMTP; 05 Jan 2017 15:27:29 +1030 Subject: Re: vfs.numvnodes constantly growing To: Julien Cigar , freebsd-questions@freebsd.org References: <20170104151322.GZ15696@mordor.lan> From: Shane Ambler Message-ID: Date: Thu, 5 Jan 2017 15:27:27 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170104151322.GZ15696@mordor.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 04:57:38 -0000 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 ? A system that is running. ;) 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. So higher vnode counts means a busier machine, more open files... constant growth without any drop could be failure to close files. fstat will list open files. so you can find what process has the most open. -- FreeBSD - the place to B...Software Developing Shane Ambler