ARM-software / synchronization-benchmarks

Collection of synchronization micro-benchmarks and traces from infrastructure applications
Other
37 stars 36 forks source link

Lockhammer new -o option with arbitrary pinning order #33

Closed zoybai closed 6 years ago

zoybai commented 6 years ago

From lstopo we found each platform has its own processor topology, even the same x86 platform may have different ordering or topology which mainly depends on server OEM manufactures (Dell, HPE or Lenovo)

Therefore we added another -o option to specify an arbitrary processor order list which can be referred by lockhammer when pinning each threads.

This order may be deduced by "lstopo --no-io --no-caches |grep PU" or any other method outside of lockhammer implementation. We will provide a default method in test_lockhammer.py in another pull request for sweep test only.

geoffreyblake commented 6 years ago

Can one of the admins verify this patch?

zoybai commented 6 years ago

Verified on EPYC 7601 server with -o 0,32,8,40,16,48,24,56,4,36,12,44,20,52,28,60,1,33,9,41,17,49,25,57,5,37,13,45,21,53,29,61,2,34,10,42,18,50,26,58,6,38,14,46,22,54,30,62,3,35,11,43,19,51,27,59,7,39,15,47,23,55,31,63