svn commit: r189901 - projects/pnet/sys/net

Robert Watson rwatson at FreeBSD.org
Mon Mar 16 16:08:38 PDT 2009


Author: rwatson
Date: Mon Mar 16 23:08:38 2009
New Revision: 189901
URL: http://svn.freebsd.org/changeset/base/189901

Log:
  Force 64-byte alignment of workstreams so that sequential arrays, indexed
  by CPU ID, are less likely to cause cache line thrashing.

Modified:
  projects/pnet/sys/net/netisr2.c

Modified: projects/pnet/sys/net/netisr2.c
==============================================================================
--- projects/pnet/sys/net/netisr2.c	Mon Mar 16 19:31:08 2009	(r189900)
+++ projects/pnet/sys/net/netisr2.c	Mon Mar 16 23:08:38 2009	(r189901)
@@ -225,7 +225,7 @@ struct netisr_workstream {
 	 * Each protocol has per-workstream data.
 	 */
 	struct netisr_work	nws_work[NETISR_MAXPROT];
-};
+} __aligned(64);
 
 /*
  * Kernel process associated with worker threads.


More information about the svn-src-projects mailing list