svn commit: r255202 - head/sys/netgraph/netflow

Gleb Smirnoff glebius at FreeBSD.org
Wed Sep 4 10:17:50 UTC 2013


Author: glebius
Date: Wed Sep  4 10:17:50 2013
New Revision: 255202
URL: http://svnweb.freebsd.org/changeset/base/255202

Log:
  Make default cache size more modern.
  
  Requested by:	Slawa Olhovchenkov <slw zxy.spb.ru>

Modified:
  head/sys/netgraph/netflow/ng_netflow.h

Modified: head/sys/netgraph/netflow/ng_netflow.h
==============================================================================
--- head/sys/netgraph/netflow/ng_netflow.h	Wed Sep  4 08:01:11 2013	(r255201)
+++ head/sys/netgraph/netflow/ng_netflow.h	Wed Sep  4 10:17:50 2013	(r255202)
@@ -416,7 +416,7 @@ struct netflow {
 	 * indexed by hash hash. Each hash element consist of tailqueue
 	 * head and mutex to protect this element.
 	 */
-#define	CACHESIZE			(65536*4)
+#define	CACHESIZE			(65536*16)
 #define	CACHELOWAT			(CACHESIZE * 3/4)
 #define	CACHEHIGHWAT			(CACHESIZE * 9/10)
 	uma_zone_t		zone;


More information about the svn-src-all mailing list