You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Haohui Mai (JIRA)" <ji...@apache.org> on 2014/01/16 23:33:19 UTC

[jira] [Commented] (HDFS-5793) Optimize the serialization of PermissionStatus

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

Haohui Mai commented on HDFS-5793:
----------------------------------

I've tested the impact of this patch using a 512M fsimage on my machine. This patch reduces the loading time from 14s to 12s. It also reduces the size of the fsimage by 7%, from 508M to 469M.

> Optimize the serialization of PermissionStatus
> ----------------------------------------------
>
>                 Key: HDFS-5793
>                 URL: https://issues.apache.org/jira/browse/HDFS-5793
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>         Attachments: HDFS-5793.000.patch
>
>
> {{PermissionStatus}} contains the user name, the group name and the permission. It is serialized into two strings and a short.
> Note that the size of unique user / groups names are relatively small, thus this format has some performance penalties. The names are stored multiple times, increasing both the storage size and the overhead of reconstructing the names.
> This jira proposes to serialize {{PermissionStatus}} similar to its in-memory layout. The code can record a mapping between user / group names and ids, and pack user / group / permission into a single 64-bit long.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)