hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-8192) Eviction should key off used locked memory instead of ram disk free space
Date Thu, 18 Jun 2015 23:28:04 GMT

     [ https://issues.apache.org/jira/browse/HDFS-8192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Arpit Agarwal updated HDFS-8192:
--------------------------------
    Attachment: HDFS-8192.04.patch

Thanks for the review [~xyao]!

v4 patch adds the following comment.

{code}
@@ -2966,6 +2966,8 @@ public void evictBlocks(long bytesNeeded) throws IOException {
             datanode.getMetrics().incrRamDiskBlocksEvictedWithoutRead();
           }

+          // Delete the block+meta files from RAM disk and release locked
+          // memory.
           removeOldReplica(replicaInfo, newReplicaInfo, blockFile, metaFile,
               blockFileUsed, metaFileUsed, bpid);
{code}

> Eviction should key off used locked memory instead of ram disk free space
> -------------------------------------------------------------------------
>
>                 Key: HDFS-8192
>                 URL: https://issues.apache.org/jira/browse/HDFS-8192
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: HDFS-8192.01.patch, HDFS-8192.02.patch, HDFS-8192.03.patch, HDFS-8192.04.patch
>
>
> Eviction from RAM disk will be triggered when locked memory is insufficient RAM to allocate
a new replica for writing.
> This is a follow up to HDFS-8157. We no longer need the threshold configuration keys
since we won't be evicting based on thresholds any more.



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

Mime
View raw message