[
https://issues.apache.org/jira/browse/HDFS-15452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17151327#comment-17151327
]
jianghua zhu edited comment on HDFS-15452 at 7/4/20, 1:25 PM:
--------------------------------------------------------------
We can use a variable configuration in hdfs-default.xml to optimize this work
item.
At the same time, we should also add a default constructor to the BlocksMap
class.
[~elgoiri] , do you have any other suggestions?
was (Author: jianghuazhu):
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: [email protected]
For additional commands, e-mail: [email protected]