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

Ravi Prakash commented on HDFS-11540:
-------------------------------------

Thanks for your contribution Ravikumar! :-)

Could you please elaborate more on what prompted you to optimize this code? 
Were you seeing this bottleneck in your cluster perhaps? Under what 
circumstances?

> PeerCache sync overhead
> -----------------------
>
>                 Key: HDFS-11540
>                 URL: https://issues.apache.org/jira/browse/HDFS-11540
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs-client
>    Affects Versions: 2.7.1
>            Reporter: Ravikumar
>            Priority: Minor
>         Attachments: PeerCache.diff
>
>
> PeerCache has a fair amount sync over-head. In addition to class level 
> locking, expired sockets & eldest socket are closed in critical section 
> during gets & puts respectively..
> A ConcurrentLinkedHashMap with appropriate fencing using DatanodeID could 
> speed it up?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to