Author: jhibbits
Date: Sun Aug 19 19:00:44 2018
New Revision: 338071
URL: https://svnweb.freebsd.org/changeset/base/338071

Log:
  powerpc64: Align frequently used/exclusive data on cacheline boundaries
  
  This is effectively a merge from amd64 of r312888, r323235, and r333486.
  
  I've been running this on my POWER9 Talos for some time now with no ill
  effects.
  
  Suggested by: mjg

Modified:
  head/sys/conf/ldscript.powerpc64

Modified: head/sys/conf/ldscript.powerpc64
==============================================================================
--- head/sys/conf/ldscript.powerpc64    Sun Aug 19 18:55:33 2018        
(r338070)
+++ head/sys/conf/ldscript.powerpc64    Sun Aug 19 19:00:44 2018        
(r338071)
@@ -69,6 +69,20 @@ SECTIONS
   .sbss2     : { *(.sbss2)   }
   /* Adjust the address for the data segment to the next page up. */
   . = ALIGN(4096);
+  .data.read_frequently :
+  {
+    *(SORT_BY_ALIGNMENT(.data.read_frequently))
+  }
+  .data.read_mostly :
+  {
+    *(.data.read_mostly)
+  }
+  . = ALIGN(128);
+  .data.exclusive_cache_line :
+  {
+    *(.data.exclusive_cache_line)
+  }
+  . = ALIGN(128);
   .data    :
   {
     *(.data)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to