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

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

We can use a variable configuration in hdfs-default.xml to optimize this work 
item.
[~elgoiri] , do you have any other suggestions?

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