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

Xiaoyu Yao commented on HDFS-6930:
----------------------------------

+1

Can you check if capacity > 0? It can be 0 when the RAM_DISK volume is allowed 
to add/remove dynamically, 

{code}
 int percentFree = (int) (free * 100 / capacity);
{code}

> Improve replica eviction from RAM disk
> --------------------------------------
>
>                 Key: HDFS-6930
>                 URL: https://issues.apache.org/jira/browse/HDFS-6930
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode
>    Affects Versions: HDFS-6581
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: HDFS-6930.01.patch
>
>
> The current replica eviction scheme is inefficient since it performs multiple 
> file operations in the context of block allocation.
> A better implementation would be asynchronous eviction when free space on RAM 
> disk falls below a low watermark to make block allocation faster.



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

Reply via email to