Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-570

ReadAhead Cache Size Limit Comparing Should also Consider Overhead Memory Usage

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hedwig-server
    • Labels:
      None

      Description

      Currently in hedwig, we only use message body size to compare with readahead
      cache size setting to judge whether we need to obsolete old messages. From the
      performance test we found that we need extral memory to store the message, the
      overhead is not small. So the real hedwig memory occupied by these messages is
      approximately can be calculated by :

      RealOccupiedMemory = NumOfMessages * (MessageBodySize + OVERHEADPERMESSAGE)

      If the messag body is small, then maybe the hedwig will run out of memory even
      we have set a small readahead cache size.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lvfangmin Fangmin Lv
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: