[SERVER-24219] Make AlignedLockStats alignment respect platform specific cache lines Created: 19/May/16  Updated: 06/Dec/17  Resolved: 29/Jun/17

Status: Closed
Project: Core Server
Component/s: Portability
Affects Version/s: 3.3.6
Fix Version/s: 3.5.10

Type: Improvement Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: platforms-re-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-29712 Polyfill std::hardware_{con,de}struct... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-07-10
Participants:

 Description   

Cache line sizes vary by platform, and specific processors.

Processor Family Cache Line Size
x64 64
PowerPC64 128
s390x 256

For PowerPC64, I am considering POWER8 instead of older processors.

An case where we try to align to cache line size: https://github.com/mongodb/mongo/blob/master/src/mongo/db/concurrency/lock_state.cpp#L90



 Comments   
Comment by Githook User [ 29/Jun/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-24219 Make AlignedLockStats respect cache line size
Branch: master
https://github.com/mongodb/mongo/commit/943ede3296b190c97fe6ae53f7b718de22cd074d

Generated at Thu Feb 08 04:05:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.