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

zhouyingchao commented on HDFS-13693:
-------------------------------------

Test the patch against a fsimage of a 70PB 2.4 cluster (200million files and 
300million blocks), the image loading time be reduced from 1210 seconds to 1138 
seconds.

> Remove unnecessary search in INodeDirectory.addChild during image loading
> -------------------------------------------------------------------------
>
>                 Key: HDFS-13693
>                 URL: https://issues.apache.org/jira/browse/HDFS-13693
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>            Reporter: zhouyingchao
>            Priority: Major
>         Attachments: HDFS-13693-001.patch
>
>
> InĀ FSImageFormatPBINode.loadINodeDirectorySection, all child INodes are added 
> to their parent INode's map one by one. The adding procedure will search a 
> position in the parent's map and then insert the child to the position. 
> However, during image loading, the search is unnecessary sinceĀ the insert 
> position should always be at the end of the map given the sequence they are 
> serialized on disk.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to