Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-348

Should use SpaceUsed and not ByteSize for in-memory sizing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • M4
    • None
    • consensus
    • None

    Description

      Just realized that ByteSize() is the serialized size of an object, whereas SpaceUsed() is a more accurate measure of the in-memory size, which is typically a bit larger. I noticed that the actual memory usage of consensus queues tends to be significantly larger than what we're shooting for, and guessing this is why.

      Attachments

        Activity

          People

            dralves David Alves
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: