Date: Tue, 11 May 2010 22:33:33 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Dag-Erling Sm??rgrav <des@des.no> Cc: freebsd-current@freebsd.org, Ivan Voras <ivoras@freebsd.org> Subject: Re: HEADS UP: 64-bit quotas going in to head today Message-ID: <20100511193333.GW83316@deviant.kiev.zoral.com.ua> In-Reply-To: <86d3x24a43.fsf@ds4.des.no> References: <201005070036.o470a3pl044330@chez.mckusick.com> <hs0m1e$ovp$1@dough.gmane.org> <86d3x24a43.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--S5Rg6oz6PtEXgjQf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 11, 2010 at 07:33:00PM +0200, Dag-Erling Sm??rgrav wrote: > Ivan Voras <ivoras@freebsd.org> writes: > > Just wondering - does the quota code have that much impact on the file > > system that it's still today left out of the GENERIC kernel? >=20 > It adds quite a bit of code to pretty much every UFS VOP. I haven't > benchmarked or profiled it, so I have no idea how much it affects > performance, but I suspect it's noticeable for disk-intensive workloads > such as busy databases. No, it does not. Essentially, it adds one or two function calls per vop that allocate or deallocate blocks or inodes, and the function bodies verify two array members and return if those are NULL. My assertion is that this overhead is negligible. I intended to move quota code to kern/vfs_quota.c, because it actually is fs-agnostic, and can be used by any fs that does block and inode-based allocation of some space. In particular, tmpfs could use it. After that, I planned to enable option QUOTA for GENERIC. Also please note that ufs_quota.c is compiled into the kernel unconditionally (or rather, conditional on option UFS), and only hooks are placed under #ifdef QUOTA. --S5Rg6oz6PtEXgjQf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkvpsQwACgkQC3+MBN1Mb4h5jwCfaBfxgtZkDQHhT85sC/KqI4HH mQQAmwR9rCr7wDH1FiZdtIcGRk+UNVw5 =2vKm -----END PGP SIGNATURE----- --S5Rg6oz6PtEXgjQf--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100511193333.GW83316>