Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4423

Improve RCFile::sync(long) 10x

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • None
    • Ubuntu LXC (1 SSD, 1 disk, 32 gigs of RAM)

    • Speed up RCFile::sync() by searching with a larger buffer window

    Description

      RCFile::sync(long) takes approx ~1 second everytime it gets called because of the inner loops in the function.

      From what was observed with HDFS-4710, single byte reads are an order of magnitude slower than larger 512 byte buffer reads.

      Even when disk I/O is buffered to this size, there is overhead due to the synchronized read() methods in BlockReaderLocal & RemoteBlockReader classes.

      Removing the readByte() calls in RCFile.sync(long) with a readFully(512 byte) call will speed this function >10x.

      Attachments

        1. HIVE-4423.patch
          2 kB
          Gopal Vijayaraghavan

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gopalv Gopal Vijayaraghavan Assign to me
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment