Print a (rate-limited) warning when UMA zone is full.

Konstantin Belousov kostikbel at gmail.com
Thu Nov 29 11:35:11 UTC 2012


On Thu, Nov 29, 2012 at 10:01:47AM +0100, Pawel Jakub Dawidek wrote:
> 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.
I cannot comment on the addition of the fields to struct uma_zone.
But please, can you drop the silly 'see tuning(7)' bytes ?
-------------- 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/79c66a40/attachment.sig>


More information about the freebsd-arch mailing list