[ https://issues.apache.org/jira/browse/HDFS-15452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152423#comment-17152423 ]
Íñigo Goiri commented on HDFS-15452: ------------------------------------ What kind of issues are you seeing? Adding an extra option is not the best but I think is better than having a hardcoded constant. Let's make it configurable. > 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