Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 13:35:03 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
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:  <20121129113503.GD3013@kib.kiev.ua>
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

--OzigliFs3e0dNr73
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 29, 2012 at 10:01:47AM +0100, Pawel Jakub Dawidek wrote:
> Hi.
>=20
> I'd like to propose the following patch:
>=20
> 	http://people.freebsd.org/~pjd/patches/uma_warning.patch
>=20
> When UMA zone is created, one can add configure a warning that should be
> printed when UMA zone is full by calling:
>=20
> 	uma_zone_set_warning(socket_zone,
> 	    "kern.ipc.maxsockets limit exceeded, please see tuning(7).");
>=20
> 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.
>=20
> 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 ?

--OzigliFs3e0dNr73
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlC3SGcACgkQC3+MBN1Mb4i51QCfcDBoJmETtivxWM+bNCk7SI/t
7vwAoKI7GUumAXtTxSmrkHm/y+XwLdIa
=kScx
-----END PGP SIGNATURE-----

--OzigliFs3e0dNr73--



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