Date: Sat, 14 Feb 2015 21:18:03 +0300 From: Gleb Smirnoff <glebius@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r278760 - head/sys/kern Message-ID: <20150214181803.GM15484@FreeBSD.org> In-Reply-To: <201502141702.t1EH2pVa059259@svn.freebsd.org> References: <201502141702.t1EH2pVa059259@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 14, 2015 at 05:02:51PM +0000, John Baldwin wrote: J> Author: jhb J> Date: Sat Feb 14 17:02:51 2015 J> New Revision: 278760 J> URL: https://svnweb.freebsd.org/changeset/base/278760 J> J> Log: J> Add two new counters for vnode life cycle events: J> - vfs.recycles counts the number of vnodes forcefully recycled to avoid J> exceeding kern.maxvnodes. J> - vfs.vnodes_created counts the number of vnodes created by successful J> calls to getnewvnode(). J> J> Differential Revision: https://reviews.freebsd.org/D1671 J> Reviewed by: kib J> MFC after: 1 week Why don't use counter(9) for that? Would avoid atomics. -- Totus tuus, Glebius.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150214181803.GM15484>