Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-16740

server memory stats as reported by "mysqladmin debug" are incorrect when server memory is large

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.2.14
    • 10.4
    • Server
    • None

    Description

      When issuing "mysqladmin debug" on servers with large amounts of memory (eg 128G) the memory counters are incorrect. There are negative numbers, which seem to suggest that some counters are wrapping around.

      Eg:

      Memory status:
      Non-mmapped space allocated from system: -824467456
      Number of free chunks:                   970783
      Number of fastbin blocks:                628
      Number of mmapped regions:               76
      Space in mmapped regions:                -485408768
      Maximum total allocated space:           0
      Space available in freed fastbin blocks: 30304
      Total allocated space:                   879918896
      Total free space:                        -1704386352
      Top-most, releasable space:              10123968
      Estimated memory (with thread stack):    -1265025024
      Global memory allocated by server:       8696831768
      Memory allocated by threads:             52050928
      

      Attachments

        1. debug.prt
          11 kB
        2. fast.prt
          10 kB
        3. MDEV-16740.tgz
          1 kB

        Activity

          People

            sanja Oleksandr Byelkin
            rpizzi Rick Pizzi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.