You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2018/07/25 21:19:00 UTC
[jira] [Commented] (HDDS-293) Reduce memory usage in KeyData
[ https://issues.apache.org/jira/browse/HDDS-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16556283#comment-16556283 ]
Tsz Wo Nicholas Sze commented on HDDS-293:
------------------------------------------
In order to reduce memory usage, chunkList (renamed from chunks) is declared as an Object.
* When #elements == 0, chunkList is null.
* When #elements == 1, chunkList refers to the only element.
* When #elements > 1, chunkList refers to the list.
> Reduce memory usage in KeyData
> ------------------------------
>
> Key: HDDS-293
> URL: https://issues.apache.org/jira/browse/HDDS-293
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Priority: Major
>
> Currently, the field chunks is declared as a List<ChunkInfo> in KeyData as shown below.
> {code}
> //KeyData.java
> private List<ContainerProtos.ChunkInfo> chunks;
> {code}
> It is expected that many KeyData objects only have a single chunk. We could reduce the memory usage.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org