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

mariadb filesystem size increasing for wp_options.ibd files

    XMLWordPrintable

Details

    • Bug
    • Status: Needs Feedback (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6.15, 10.6.16, 10.6.17
    • 10.6
    • None
    • Ubuntu 20.04

    Description

      I'm in a situation with a wordpress site where a table wp_options keeps increasing in filesystem size really fast even though it only has 10000 records and we have to constantly optimize it to reduce the usage.

      It's my understanding that when records are constantly deleted / inserted they are not actually deleted from the ibd file but they're kind of soft-deleted.

      Thus the filesystem size on the file actually increases constantly reaching even 500G within 2 days.

      In order to fix the issue I need to actually see what is being written / deleted from the table constantly to find possible plugins that might be affecting it.

      I can safely assume it's wordpress transients however I can't say with certainty which type of transient is causing this bloat without examining the data.

      So in order to find this out I'm looking for ways to read the soft-deleted data from the bloated ibd file.

      I've tried a couple of tools like undrop-for-innodb but it's not yielding any results.

      Any ideas how I can read the mass of deleted data that's occupying the filesystem space?

      I also think that there should be a limit to the expansion of the table with deleted data. Like, why would a table of 20MBs in size need 500GB of deleted data in the filesystem?

      Attachments

        1. blob.zip
          11 kB
        2. historylenth.zip
          90 kB
        3. historylenth-1.zip
          301 kB
        4. history-list-length.zip
          842 kB
        5. sample.zip
          152 kB

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              ioweb.gr Gabriel Tziotzis
              Votes:
              1 Vote for this issue
              Watchers:
              7 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.