Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2015 22:20:34 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278640 - head/sys/netgraph
Message-ID:  <201502122220.t1CMKY8t040498@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Feb 12 22:20:34 2015
New Revision: 278640
URL: https://svnweb.freebsd.org/changeset/base/278640

Log:
  Revise default limit for maximum of netgraph data items.
  With modern internet speeds the limit can be reached even
  on a single L2TP link.

Modified:
  head/sys/netgraph/ng_base.c

Modified: head/sys/netgraph/ng_base.c
==============================================================================
--- head/sys/netgraph/ng_base.c	Thu Feb 12 21:20:28 2015	(r278639)
+++ head/sys/netgraph/ng_base.c	Thu Feb 12 22:20:34 2015	(r278640)
@@ -2952,7 +2952,7 @@ uma_zone_t			ng_qzone;
 uma_zone_t			ng_qdzone;
 static int			numthreads = 0; /* number of queue threads */
 static int			maxalloc = 4096;/* limit the damage of a leak */
-static int			maxdata = 512;	/* limit the damage of a DoS */
+static int			maxdata = 4096;	/* limit the damage of a DoS */
 
 SYSCTL_INT(_net_graph, OID_AUTO, threads, CTLFLAG_RDTUN, &numthreads,
     0, "Number of queue processing threads");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502122220.t1CMKY8t040498>