Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5897

prePut coprocessor hook causing substantial CPU usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.92.0
    • 0.92.2, 0.94.0, 0.95.0
    • None
    • None
    • Reviewed

    Description

      I was running an insert workload against trunk under oprofile and saw that a significant portion of CPU usage was going to calling the "prePut" coprocessor hook inside doMiniBatchPut, even though I don't have any coprocessors installed. I ran a million-row insert and collected CPU time spent in the RS after commenting out the preput hook, and found CPU usage reduced by 33%.

      Attachments

        1. 5897-v3-0.92.txt
          3 kB
          Lars Hofhansl
        2. 5897-v3-0.94.txt
          4 kB
          Lars Hofhansl
        3. 5897-v3.txt
          4 kB
          Lars Hofhansl
        4. 5897-v2.txt
          4 kB
          Ted Yu
        5. testRegionServerCoprocessorExceptionWithRemove.stack
          84 kB
          Ted Yu
        6. 5897-simple.txt
          0.8 kB
          Lars Hofhansl
        7. hbase-5897.txt
          4 kB
          Todd Lipcon

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: