[ 
https://issues.apache.org/jira/browse/HDFS-9551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059469#comment-15059469
 ] 

BELUGA BEHR commented on HDFS-9551:
-----------------------------------

I do not mean this as a block-buster optimization, but the less thread 
contention the better.  I've wrote some unit tests on my local system that 
demonstrate some small, but observable, improvements with four or more threads.

> Random VolumeChoosingPolicy
> ---------------------------
>
>                 Key: HDFS-9551
>                 URL: https://issues.apache.org/jira/browse/HDFS-9551
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: datanode
>    Affects Versions: 2.7.1
>            Reporter: BELUGA BEHR
>            Priority: Minor
>         Attachments: RandomVolumeChoosingPolicy.java, 
> TestRandomVolumeChoosingPolicy.java
>
>
> Please find attached a new implementation of VolumeChoosingPolicy.  This 
> implementation chooses volumes at random to place blocks.  It is thread-safe 
> and un-synchronized so there is less thread contention.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to