ARM-software / synchronization-benchmarks

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

Add new thread pinning order option -o and lstopo parser to sweep test #35

Closed zoybai closed 6 years ago

zoybai commented 6 years ago

Different platforms have very different cluster / numa topologies. Therefore we have to add a generic option which accepts any core order or sequence for lockhammer to refer.

We add -o option with comma separated string as core order input. Then add another lstopo parser to test_lockhammer.py which can automatically generate the default order.

In future, we can easily extend test_lockhammer.py and add more complex algorithms to deduce the "best" core pinning order for each platform without modifying lockhammer.c

geoffreyblake commented 6 years ago

Can one of the admins verify this patch?

zoybai commented 6 years ago

Code has been cleaned up and verified on EPYC server.