From owner-freebsd-arch@FreeBSD.ORG Thu Nov 29 11:35:11 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6F62EA3; Thu, 29 Nov 2012 11:35:11 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2EC598FC14; Thu, 29 Nov 2012 11:35:10 +0000 (UTC) Received: from tom.home (localhost [127.0.0.1]) by kib.kiev.ua (8.14.5/8.14.5) with ESMTP id qATBZ34A054786; Thu, 29 Nov 2012 13:35:03 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.1 kib.kiev.ua qATBZ34A054786 Received: (from kostik@localhost) by tom.home (8.14.5/8.14.5/Submit) id qATBZ3gi054785; Thu, 29 Nov 2012 13:35:03 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 29 Nov 2012 13:35:03 +0200 From: Konstantin Belousov To: Pawel Jakub Dawidek Subject: Re: Print a (rate-limited) warning when UMA zone is full. Message-ID: <20121129113503.GD3013@kib.kiev.ua> References: <20121129090147.GB1370@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OzigliFs3e0dNr73" Content-Disposition: inline In-Reply-To: <20121129090147.GB1370@garage.freebsd.pl> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 11:35:11 -0000 --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--