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

haosdent commented on HDFS-6108:
--------------------------------

Do you mean this method in NativeIO?
{code}
public static void syncFileRangeIfPossible(FileDescriptor fd,
                                           long offset,
                                           long nbytes,
                                           int flags)
                                    throws NativeIOException
{code}

> make the length of the range in sync_file_range() configurable
> --------------------------------------------------------------
>
>                 Key: HDFS-6108
>                 URL: https://issues.apache.org/jira/browse/HDFS-6108
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: datanode
>    Affects Versions: 3.0.0, 2.3.0
>            Reporter: Liang Xie
>            Assignee: Liang Xie
>         Attachments: HDFS-6108.txt
>
>
> Current codebase has a hard code value for sync_file_range system call, we'd 
> better to make it configurable, since different scenario probably has a 
> different/better value for it. (ps: i found it's 1 * 1024 * 1024 in fb-20 
> branch)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to