From owner-svn-src-all@FreeBSD.ORG Sat Dec 8 12:51:08 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 12E85260; Sat, 8 Dec 2012 12:51:08 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D24FE8FC0C; Sat, 8 Dec 2012 12:51:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qB8Cp7xq040803; Sat, 8 Dec 2012 12:51:07 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qB8Cp7Jc040800; Sat, 8 Dec 2012 12:51:07 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201212081251.qB8Cp7Jc040800@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Sat, 8 Dec 2012 12:51:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244031 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Dec 2012 12:51:08 -0000 Author: pjd Date: Sat Dec 8 12:51:06 2012 New Revision: 244031 URL: http://svnweb.freebsd.org/changeset/base/244031 Log: More warnings for zones that depend on the kern.ipc.maxsockets limit. Obtained from: WHEEL Systems Modified: head/sys/netinet/in_pcb.c head/sys/netinet/tcp_subr.c head/sys/netinet/udp_usrreq.c Modified: head/sys/netinet/in_pcb.c ============================================================================== --- head/sys/netinet/in_pcb.c Sat Dec 8 10:28:21 2012 (r244030) +++ head/sys/netinet/in_pcb.c Sat Dec 8 12:51:06 2012 (r244031) @@ -236,6 +236,8 @@ in_pcbinfo_init(struct inpcbinfo *pcbinf NULL, NULL, inpcbzone_init, inpcbzone_fini, UMA_ALIGN_PTR, inpcbzone_flags); uma_zone_set_max(pcbinfo->ipi_zone, maxsockets); + uma_zone_set_warning(pcbinfo->ipi_zone, + "kern.ipc.maxsockets limit reached"); } /* Modified: head/sys/netinet/tcp_subr.c ============================================================================== --- head/sys/netinet/tcp_subr.c Sat Dec 8 10:28:21 2012 (r244030) +++ head/sys/netinet/tcp_subr.c Sat Dec 8 12:51:06 2012 (r244031) @@ -367,6 +367,7 @@ tcp_init(void) V_tcpcb_zone = uma_zcreate("tcpcb", sizeof(struct tcpcb_mem), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); uma_zone_set_max(V_tcpcb_zone, maxsockets); + uma_zone_set_warning(V_tcpcb_zone, "kern.ipc.maxsockets limit reached"); tcp_tw_init(); syncache_init(); Modified: head/sys/netinet/udp_usrreq.c ============================================================================== --- head/sys/netinet/udp_usrreq.c Sat Dec 8 10:28:21 2012 (r244030) +++ head/sys/netinet/udp_usrreq.c Sat Dec 8 12:51:06 2012 (r244031) @@ -191,6 +191,7 @@ udp_init(void) V_udpcb_zone = uma_zcreate("udpcb", sizeof(struct udpcb), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); uma_zone_set_max(V_udpcb_zone, maxsockets); + uma_zone_set_warning(V_udpcb_zone, "kern.ipc.maxsockets limit reached"); EVENTHANDLER_REGISTER(maxsockets_change, udp_zone_change, NULL, EVENTHANDLER_PRI_ANY); }