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

ASF GitHub Bot commented on HDFS-15452:
---------------------------------------

github-actions[bot] closed pull request #2128: HDFS-15452.Dynamically 
initialize the capacity of BlocksMap.
URL: https://github.com/apache/hadoop/pull/2128




> 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
>              Labels: pull-request-available
>         Attachments: HDFS-15452.001.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.20.10#820010)

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

Reply via email to