[
https://issues.apache.org/jira/browse/HDFS-8157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14544742#comment-14544742
]
Colin Patrick McCabe commented on HDFS-8157:
--------------------------------------------
Thanks for the clarification. If the intention is to release
{{original_reservation_length - round_up(new_reservation_length, page_size)}},
wouldn't it be more straightforward to just do that? I don't think the
overhead of the extra subtraction is significant, and it would be a lot easier
to follow. We would also be able to skip writing all the {{roundDown}} code.
> Writes to RAM DISK reserve locked memory for block files
> --------------------------------------------------------
>
> Key: HDFS-8157
> URL: https://issues.apache.org/jira/browse/HDFS-8157
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: datanode
> Reporter: Arpit Agarwal
> Assignee: Arpit Agarwal
> Attachments: HDFS-8157.01.patch, HDFS-8157.02.patch,
> HDFS-8157.03.patch, HDFS-8157.04.patch
>
>
> Per discussion on HDFS-6919, the first step is that writes to RAM disk will
> reserve locked memory via the FsDatasetCache.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)