From owner-freebsd-arch@FreeBSD.ORG Thu Nov 29 09:00:26 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 E97C9879 for ; Thu, 29 Nov 2012 09:00:26 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id AB40A8FC16 for ; Thu, 29 Nov 2012 09:00:26 +0000 (UTC) Received: from localhost (58.wheelsystems.com [83.12.187.58]) by mail.dawidek.net (Postfix) with ESMTPSA id 150968A6 for ; Thu, 29 Nov 2012 09:58:35 +0100 (CET) Date: Thu, 29 Nov 2012 10:01:47 +0100 From: Pawel Jakub Dawidek To: freebsd-arch@FreeBSD.org Subject: Print a (rate-limited) warning when UMA zone is full. Message-ID: <20121129090147.GB1370@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) 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 09:00:27 -0000 --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlC3JHoACgkQForvXbEpPzQYdQCeNcKAq2lwpHOz1VXG4Cr3y/nJ axwAoNCcCug/m+13v663UhRhkqB83Gwy =MnFT -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs--