-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-36029: Shard Timings::interval_counters by core.
Cache contention was observed when many threads attempt to update the same interval_counters elements at the same time. Shard this by core to reduce the contention. False sharing was also observed with Bucket::response_counters. Cacheline pad the Timings object to prevent this. Perf stats (Triton 2 Node 80/20 R/W test): Before: 3,511,611 (Average of 24 runs) After: 3,563,007 (Average of 5 runs) Change-Id: I854bc654072f6789c82296a6e10cb54e8d5cdd13 Reviewed-on: http://review.couchbase.org/111868 Reviewed-by: Dave Rigby <[email protected]> Tested-by: Build Bot <[email protected]>
- Loading branch information
1 parent
0dd246f
commit 3c221fd
Showing
2 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters