[
https://issues.apache.org/jira/browse/HDFS-8157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14544956#comment-14544956
]
Arpit Agarwal commented on HDFS-8157:
-------------------------------------
bq. 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.
Agreed the extra arithmetic is a non-issue. I coded it up both ways and found
round down simpler. The other way requires moving rounding logic out or making
two calls to the cache manager, neither approach felt cleaner.
> 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)