From owner-svn-src-head@FreeBSD.ORG Mon Oct 21 17:06:02 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 81E47E2B; Mon, 21 Oct 2013 17:06:02 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CB3152620; Mon, 21 Oct 2013 17:06:01 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r9LH5oi2025004; Mon, 21 Oct 2013 20:05:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r9LH5oi2025004 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r9LH5oTa025002; Mon, 21 Oct 2013 20:05:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 21 Oct 2013 20:05:50 +0300 From: Konstantin Belousov To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r256850 - in head: bin/sh etc lib/libc/sys lib/libutil usr.bin/limits usr.bin/procstat Message-ID: <20131021170550.GT3865@kib.kiev.ua> References: <201310211646.r9LGkDl5012906@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O/1O6NUaCrlCPhw5" Content-Disposition: inline In-Reply-To: <201310211646.r9LGkDl5012906@svn.freebsd.org> 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 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Oct 2013 17:06:02 -0000 --O/1O6NUaCrlCPhw5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 21, 2013 at 04:46:13PM +0000, Konstantin Belousov wrote: > Author: kib > Date: Mon Oct 21 16:46:12 2013 > New Revision: 256850 > URL: http://svnweb.freebsd.org/changeset/base/256850 >=20 > Log: > Add a resource limit for the total number of kqueues available to the > user. Kqueue now saves the ucred of the allocating thread, to > correctly decrement the counter on close. > =20 > Under some specific and not real-world use scenario for kqueue, it is > possible for the kqueues to consume memory proportional to the square > of the number of the filedescriptors available to the process. Limit > allows administrator to prevent the abuse. > =20 > This is kernel-mode side of the change, with the user-mode enabling > commit following. This is obviously user-mode part of the change. --O/1O6NUaCrlCPhw5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSZV7tAAoJEJDCuSvBvK1BL0cP/1IQ+/LMa+5fT5C8I4Yek/yS r3hg+UE1zWe5irJPOJvk3QGbbtRyTTWREZmnk5OZAx+M3Er0xEzs9tRpPnPaWhgV CbIUFobnOhkxPm5r3iWQIx6pY937qH9LMfumMiVJvZXB9ZPo5sQTpu7fCX0TyF2R sZZHsJcJao6SRwm3jJsfjKn5V1xph5vwALGNV4WMDUUTe/8LWsrPUC8eobRYumD7 g9yyPWlsZ7PtmKscj75hawxl+QKSHwMNNJQR7pwUM25Yr/osYXULnLL0/ZPnYwxp xoqlAtYf5eFFWDutqwo2dQMuvse3p1qlg3vFF0wD7SOUL2PNZ71iWVxwYCTzioKO GcpoFJRKJJRrVnnHkPa7CLgHIr1IohZR5TiZ76nH2/3HZQZRy33y5XLxomckwdQY a2/qVMRPq4WNmXKynVldefiHqGXVdMuKElVVyt2Vo4hSELBR+MiUf4ZLF7niP4VC pH7nQELZqT21/ek2qTchBnQ14+D76xhc1VBkJKMoDUwzPzZUJA/RKSqpb1PaPzqT oNW1olwUKzyNP+2D2Qb4J0fA+LBQCsf3aZREDe4uw3Jx5JX2oaaEHsfqjMo44xZh U8P1pk/W3cw9rlE/zOOP1KVbgzDn5bCf09kEJJ3IK9wenNRu84CI2/KH5Cj07EXV vSk+u27mz6zkxGDDZFRn =e4VK -----END PGP SIGNATURE----- --O/1O6NUaCrlCPhw5--