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

mariadb server consumes 100% of the cpus running in raspberry 64 bits

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • 10.5.15
    • N/A
    • None
    • None

    Description

      I have been running since a week or so a mariadb server in a raspberry 64 bits but very often it starts using all available cores all the time and it does not stop.

      The database is used by 4 different web services. The interesting thing is that I have been running the same database server, with the same load for years without problem using Raspbian 32 bits. I have now migrated to Debian 64 bits (arm64 architecture) and the problems have started. But it s actually the same mariadb version as well as the whole stack, since Raspbian OS is based on the same Debian 11 sources.

      I have not been able to correlate the problem with a given query or a particular database. Sometimes the problem starts to appear within minutes of the database restart and sometimes after a few hours. A restart of the database seems to restore a normal behaviour.

      The system logs do not show anything special. I am attaching the output of journalctl between two restarts where high CPU happened.

      I have also tried to set the global log with SET GLOBAL general_log=1 but apart from a flurry of queries I cannot say anything obvious.

      I have attached gdb and show the stack trace of a couple of threads that were showing high CPU usage in top. The trace does not tell me much, but I attach them here in case they bring some useful info.

      BTW, during the high CPU times, some of the services seem to continue working properly, although at some point it seems that mariadb stops servicing requests, at least for some of the services.

      Attachments

        1. lshw.out
          13 kB
          Enrique
        2. mariadb.gdb_trace
          11 kB
          Enrique
        3. mariadb.journal
          6 kB
          Enrique

        Activity

          People

            Unassigned Unassigned
            cquike Enrique
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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