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

jianghua zhu commented on HDFS-15452:
-------------------------------------

[~elgoiri], [~hexiaoqiao] , I submitted a patch file (HDFS-15452.001.patch), 
can you help me review it?
Thanks a lot.

 

> Dynamically initialize the capacity of BlocksMap
> ------------------------------------------------
>
>                 Key: HDFS-15452
>                 URL: https://issues.apache.org/jira/browse/HDFS-15452
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.0.3
>            Reporter: jianghua zhu
>            Assignee: jianghua zhu
>            Priority: Major
>         Attachments: HDFS-15452.001.patch
>
>
> The default value for initializing BlocksMap in the BlockManager class is 2. 
> This can be set to a dynamic value.
> BlockManager#BlockManager() {
> ......
> // Compute the map capacity by allocating 2% of total memory
> blocksMap = new BlocksMap(
>  LightWeightGSet.computeCapacity(2.0, "BlocksMap"));
> ......
> }
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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