Date: Wed, 13 Aug 2008 13:31:42 -0700 From: Christopher Cowart <ccowart@rescomp.berkeley.edu> To: Dan Nelson <dnelson@allantgroup.com> Cc: freebsd-questions@freebsd.org Subject: Re: Lots of accounting data Message-ID: <20080813203142.GB25990@hal.rescomp.berkeley.edu> In-Reply-To: <20080813191118.GA42972@dan.emsphone.com> References: <20080813184603.GA25990@hal.rescomp.berkeley.edu> <20080813191118.GA42972@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--SkvwRMAIpAhPCcCJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dan Nelson wrote: >> I only really see two options, neither of which I particularly like: >> * Throw more disk at the problem (but given what I've seen, I don't >> like the odds that within a month or two, I'll realize I didn't give >> it enough). >> * Turn off accounting on these boxes. >=20 > * edit /etc/periodic/daily/310.accounting to keep less historical > copies of acct. >=20 > * edit /sys/kern/kern_acct.c to not write accounting records for the > squid userid. >=20 > * Mount a ZFS filessytem on /var/account/ with compression enabled.=20 > Even lzjb compression will get you 3:1 compression on the acct > files; gzip-1 should get you even more. Thank you for the extra suggestions.=20 I've uncovered the root cause of the problem. It's documented in bin/120293: [patch] sa(8) fails to summarize/truncate accounting data. It appears that the daily execution of `sa -s -q' is *not* actually sumarizing the data, and thus not truncating the file. As such, /var/account/acct is growing without bound -- not being restored to a size of 0 after the periodic run. This is a bug in sa(8). Will this patch be MFCd to 7.0 as an errata? Should somebody submit a request to re@? --=20 Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley --SkvwRMAIpAhPCcCJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iQIcBAEBAwAGBQJIo0StAAoJEIGh6j3cHUNP83wQAKA+RuEraFLLPSkt4m/ZeqDj cImNLH1ibQeFBkNbRRHCyJZOfI2FXT1cwExu8vXG/jo+KWj+1OXifqMAntIsvvhd sTOblaF2LI6JUp9zrv7gqUTYNgfcg1LxS+c5ViPwzKf3HjLjAisrT72H7w/72Dqy qCuC90+t91dJzRcwfxZGRWkENw35DtAt5QjKEJZNcYCUwrR9ksH4A5th9Vmm/yvt 6zN+tSeqWHZfxNrrkf9Xz8EmyZewXmPC96H9wjaglQwDiDNrGXY5YdcNJzCs3O2f ILZ2wyYmoFuG1dCs8VWfQKt/h0MG3E6dDaA0TJSADAPE/ZeNiJPzd26Bp175vBZa qjWuCcgu7P1e/uPv+mtH+4Zl64inB1uY2jxEN3hijXJGJfZ412o13EHHjLg3m+nz ndYYA3OPjjb/CfmvJHuhb3lMf3HoXGR09HCCCj8tVdGfeFFTgEJNaUdN2IlUeZwn aWw15pwjhcOgci4kQ3FisNG+BDEUwVpULTCl8EXb8/CBbRcVDcqYm3MuHKCaAHvd WSXG+hAdEJHHYQdMaJTno5B7nnSyaDVed/EtKGfaOz8M1n966heli1mpAb3iCI9W goyoqdqUFD9k1IwTZRV8W4Pso/ZRaKVk/l3CvcS38P5HIkziHbMUwKVzIkwkQOy3 zWyuYQuJISa9A2psGl6X =Cigc -----END PGP SIGNATURE----- --SkvwRMAIpAhPCcCJ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080813203142.GB25990>