Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 01:40:28 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-arch@FreeBSD.org
Subject:   Re: Print a (rate-limited) warning when UMA zone is full.
Message-ID:  <50B72D8C.7040201@mu.org>
In-Reply-To: <20121129090147.GB1370@garage.freebsd.pl>
References:  <20121129090147.GB1370@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/29/12 1:01 AM, 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.
>
This is great.

Please commit this as soon as you can.  An MFC would be awesome.

-Alfred



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50B72D8C.7040201>