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

Yi Liu commented on HDFS-5714:
------------------------------

Thanks [~jingzhao].
I think this is good, can you rebase the patch?

> Use byte array to represent UnderConstruction feature and Snapshot feature 
> for INodeFile
> ----------------------------------------------------------------------------------------
>
>                 Key: HDFS-5714
>                 URL: https://issues.apache.org/jira/browse/HDFS-5714
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>         Attachments: HDFS-5714.000.patch
>
>
> Currently we define specific classes to represent different INode features, 
> such as FileUnderConstructionFeature and FileWithSnapshotFeature. While 
> recording these feature information in memory, the internal information and 
> object references can still cost a lot of memory. For example, for 
> FileWithSnapshotFeature, not considering the INode's local name, the whole 
> FileDiff list (with size n) can cost around 120n bytes.
> In order to decrease the memory usage, we plan to use byte array to record 
> the UnderConstruction feature and Snapshot feature for INodeFile. 
> Specifically, if we use protobuf's encoding, the memory usage for a 
> FileWithSnapshotFeature can be less than 56n bytes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to