Date: Thu, 29 Nov 2012 10:01:47 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: freebsd-arch@FreeBSD.org Subject: Print a (rate-limited) warning when UMA zone is full. Message-ID: <20121129090147.GB1370@garage.freebsd.pl>
next in thread | raw e-mail | index | archive | help
--5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I'd like to propose the following patch: http://people.freebsd.org/~pjd/patches/uma_warning.patch When UMA zone is created, one can add configure a warning that should be printed when UMA zone is full by calling: uma_zone_set_warning(socket_zone, "kern.ipc.maxsockets limit exceeded, please see tuning(7)."); It was very easy to find and fix the problem when I saw messages on the console that kern.maxfiles limit is reached, but when I hit kern.ipc.maxsockets limit and started to get ENOBUFS errors it took me a while to figure out what to tune. This patch allows to configure advice for the use and give him some details in a very easy way. The warning printed on the console is rate-limited to one per second. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlC3JHoACgkQForvXbEpPzQYdQCeNcKAq2lwpHOz1VXG4Cr3y/nJ axwAoNCcCug/m+13v663UhRhkqB83Gwy =MnFT -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121129090147.GB1370>