[ET Trac] #2832: possible race condition in LoopControl

Roland Haas trac-noreply at einsteintoolkit.org
Tue Nov 5 11:26:30 CST 2024


#2832: possible race condition in LoopControl

 Reporter: Roland Haas
   Status: new
Milestone: 
  Version: 
     Type: bug
 Priority: major
Component: 

Comment (by Roland Haas):

Minor point: Padding size wise I think just adding and _extra_ 128 bytes \(or whatever the cache line size is\) instead of padding to 256 \(twice the cache line size\) should be sufficient to ensure that there are no shared cache lines since even in the worst case scenario where the first structure member is a the very end of a cache line padding by a full cache line size skips into the next cache line for the next array member \(which will start somewhere near the beginning of its cache line of then\).  
  
`posix_memalign` might be more efficient. Would still need a comment like right now since we do not want alignment but separation.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2832/possible-race-condition-in-loopcontrol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20241105/b21e9ef1/attachment.htm>


More information about the Trac mailing list