hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhihai xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11935) Provide optional native implementation of stat syscall.
Date Mon, 15 Jun 2015 06:52:02 GMT

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

zhihai xu commented on HADOOP-11935:
------------------------------------

Since {{java.nio.file}} doesn't support sticky bit and {{NativeIO.POSIX#getFstat}} supports
sticky bit, I compared the performance between NativeIO.POSIX and the current shell-based
implementation. I find it can speed up 3-4x using NativeIO.POSIX with the attached preliminary
patch.

> Provide optional native implementation of stat syscall.
> -------------------------------------------------------
>
>                 Key: HADOOP-11935
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11935
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs, native
>            Reporter: Chris Nauroth
>         Attachments: HADOOP-11935-NativeIO-prelim.patch
>
>
> Currently, {{RawLocalFileSystem.DeprecatedRawLocalFileStatus#loadPermissionInfo}} is
implemented as forking an {{ls}} command and parsing the output.  This was observed to be
a bottleneck in YARN-3491.  This issue proposes an optional native implementation of a {{stat}}
syscall through JNI.  We would maintain the existing code as a fallback for systems where
the native code is not available.



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

Mime
View raw message