Print a (rate-limited) warning when UMA zone is full.
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Nov 29 09:00:27 UTC 2012
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.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://tupytaj.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20121129/87aec7de/attachment.sig>
More information about the freebsd-arch
mailing list