Haswell Xeon E5 2699 v3

node2x18a

Ryan Yates

Specifications

Frequency2.3–3.6GHz
TDP145 W
Sockets2
Cores18
Threads2
Total72!
http://ark.intel.com/products/81061/Intel-Xeon-Processor-E5-2699-v3-45M-Cache-2_30-GHz

Cache

LevelSizeWaysSharing
1D32K8core
1I32K8core
2256K8core
346080K20socket

Die

http://cdn4.wccftech.com/wp-content/uploads/2014/09/Xeon-E5-2600-V3-Die.jpg

Configuration

http://images.anandtech.com/doci/8730/1%20Die%20Config%2014-18C.png

Measurement

Thread A Thread B

...
// Execute on CPU A
pthread_setaffinity_np(...);
...
START_TIMER(timer);
for (i = 0; i < COUNT; i++) {
    while (lock == 0) PAUSE;
    cas(lock,0,1);
}
END_TIMER(timer);
      

...
// Execute on CPU B
pthread_setaffinity_np(...);
...
START_TIMER(timer);
for (i = 0; i < COUNT; i++) {
    while (lock == 1) PAUSE;
    cas(lock,1,0);
}
END_TIMER(timer);
      

Results

Layout

CPU Location
Even Socket 0
Odd Socket 1
< 36 Thread 0
≥ 36 Thread 1

Haskell TM Benchmarks

Coarse-grain locking

Fine-grain locking

Hardware transactions

Thanks!