greenwich commented on PR #11838:
URL: https://github.com/apache/ozone/pull/11838#issuecomment-7304175175

   > [@greenwich](https://github.com/greenwich) , thanks for this improvement. 
Can we have some micro-benchmark to measure the lock free effect?
   
   @ChenSammi here is a micro-benchmark of `sortByDistanceCost`.
   Benchmark setup (JDK 21):
   - Topology: 1,000 datanodes in 50 racks, default schema.
   - One operation = sortByDistanceCost of a 3-datanode pipeline for a 
non-datanode client.
   - Cases:
     - linked: the datanodes are the cluster map's own instances, with parent 
pointers;
     - unlinked: the datanodes come from protobuf and have no parent
     - linked, changing: as linked, while another thread adds or removes a 
datanode every millisecond.
   - Threads: 1, 8, 32, 100; best of 3 rounds (500 ms warm-up, 1,000 ms 
measured).
   
   Machine under test: VM running on 2 × AMD EPYC 7713 64-Core, 128 cores, 256 
hardware threads | Rocky Linux 9.5,
   
   Throughput, sorts/ms:
   
   | Threads | Linked, master | Linked, PR | Unlinked, master | Unlinked, PR | 
Changing, master | Changing, PR |
   |---:|---:|---:|---:|---:|---:|---:|
   | 1 | 1,020 | 1,525 | 1,466 | 1,630 | 960 | 1,602 |
   | 8 | 859 | 6,592 | 1,100 | 6,812 | 79 | 5,520 |
   | 32 | 760 | 5,227 | 946 | 5,326 | 45 | 5,411 |
   | 100 | 768 | 4,948 | 885 | 5,180 | 169 | 5,318 |
   
   The machine was shared and busy, so single figures are rough; the gaps 
between variants are far larger than the noise. I can add the benchmark class 
under src/test (tagged, not run by default) if useful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to