From owner-freebsd-arch@FreeBSD.ORG Thu Nov 29 09:40:29 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 879831D8; Thu, 29 Nov 2012 09:40:29 +0000 (UTC) (envelope-from bright@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 6A6498FC0C; Thu, 29 Nov 2012 09:40:29 +0000 (UTC) Received: from Alfreds-MacBook-Pro-5.local (c-67-180-208-218.hsd1.ca.comcast.net [67.180.208.218]) by elvis.mu.org (Postfix) with ESMTPSA id D25571A3C2C; Thu, 29 Nov 2012 01:40:28 -0800 (PST) Message-ID: <50B72D8C.7040201@mu.org> Date: Thu, 29 Nov 2012 01:40:28 -0800 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Pawel Jakub Dawidek Subject: Re: Print a (rate-limited) warning when UMA zone is full. References: <20121129090147.GB1370@garage.freebsd.pl> In-Reply-To: <20121129090147.GB1370@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 09:40:29 -0000 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