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

MTR does not use /dev/shm with a out-of-source build

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5(EOL), 10.0(EOL)
    • 5.5.42, 10.0.16
    • Tests
    • None

    Description

      I have a separate disk where I store all git and bzr trees: /media/DATA/maria-bzr/.

      There is a convenience symlink from home directory:

      cd ~
      ln -s /media/DATA/maria-bzr/  .

      Now I clone a tree:

      cd maria-bzr
      bzr clone bzr+ssh://bazaar.launchpad.net/~maria-captains/maria/10.0/

      And compile an out-of-source build:

      cd 10.0
      mkdir bld
      cd bld
      cmake .. -DCMAKE_BUILD_TYPE=Debug
      make -j8

      Now I run a test:

      cd mysql-test
      ./mtr --mem ctype_utf8

      It ignores the --mem option and creates a real var subdirectory under the current directory, instead of symlinking it to a random sub directory at /dev/shm/.
      As a result, the entire ./mtr runs about 4 hours instead of 20 minutes.

      Note, it works as expected when I use a in-source tree:

      cd ~/maria-bzr/10.0/
      rm -rf bld
      cmake . -DCMAKE_BUILD_TYPE=Debug
      make -j8
      cd mysql-test
      ./mtr  --mem ctype_utf8

      Attachments

        Activity

          bar Alexander Barkov created issue -
          bar Alexander Barkov made changes -
          Field Original Value New Value
          Description I have a disk where I store all git and bzr trees: /media/DATA/maria-bzr/.

          There is a convenience symlink from home directory:
          {code}
          cd ~
          ln -s /media/DATA/maria-bzr/ .
          {code}

          Now I close a tree:
          {code}
          cd maria-bzr
          bzr clone bzr+ssh://bazaar.launchpad.net/~maria-captains/maria/10.0/
          {code}

          And compile an out-of-source build:
          {code}
          cd 10.0
          mkdir bld
          cd bld
          cmake .. -DCMAKE_BUILD_TYPE=Debug
          make -j8
          {code}

          Now I run a test:
          {code}
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}

          It ignores the --mem option and creates a real var subdirectory under the current directory, instead of symlinking it to a random sub directory at /dev/shm/.
          As a result, the entire ./mtr runs about 4 hours instead of 20 minutes.

          Note, it works as expected when I use a in-source tree:
          {code}
          cd ~/maria-bzr/10.0/
          rm -rf bld
          cmake . -DCMAKE_BUILD_TYPE=Debug
          make -j8
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}
          I have a separate disk where I store all git and bzr trees: /media/DATA/maria-bzr/.

          There is a convenience symlink from home directory:
          {code}
          cd ~
          ln -s /media/DATA/maria-bzr/ .
          {code}

          Now I close a tree:
          {code}
          cd maria-bzr
          bzr clone bzr+ssh://bazaar.launchpad.net/~maria-captains/maria/10.0/
          {code}

          And compile an out-of-source build:
          {code}
          cd 10.0
          mkdir bld
          cd bld
          cmake .. -DCMAKE_BUILD_TYPE=Debug
          make -j8
          {code}

          Now I run a test:
          {code}
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}

          It ignores the --mem option and creates a real var subdirectory under the current directory, instead of symlinking it to a random sub directory at /dev/shm/.
          As a result, the entire ./mtr runs about 4 hours instead of 20 minutes.

          Note, it works as expected when I use a in-source tree:
          {code}
          cd ~/maria-bzr/10.0/
          rm -rf bld
          cmake . -DCMAKE_BUILD_TYPE=Debug
          make -j8
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}
          bar Alexander Barkov made changes -
          Description I have a separate disk where I store all git and bzr trees: /media/DATA/maria-bzr/.

          There is a convenience symlink from home directory:
          {code}
          cd ~
          ln -s /media/DATA/maria-bzr/ .
          {code}

          Now I close a tree:
          {code}
          cd maria-bzr
          bzr clone bzr+ssh://bazaar.launchpad.net/~maria-captains/maria/10.0/
          {code}

          And compile an out-of-source build:
          {code}
          cd 10.0
          mkdir bld
          cd bld
          cmake .. -DCMAKE_BUILD_TYPE=Debug
          make -j8
          {code}

          Now I run a test:
          {code}
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}

          It ignores the --mem option and creates a real var subdirectory under the current directory, instead of symlinking it to a random sub directory at /dev/shm/.
          As a result, the entire ./mtr runs about 4 hours instead of 20 minutes.

          Note, it works as expected when I use a in-source tree:
          {code}
          cd ~/maria-bzr/10.0/
          rm -rf bld
          cmake . -DCMAKE_BUILD_TYPE=Debug
          make -j8
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}
          I have a separate disk where I store all git and bzr trees: /media/DATA/maria-bzr/.

          There is a convenience symlink from home directory:
          {code}
          cd ~
          ln -s /media/DATA/maria-bzr/ .
          {code}

          Now I clone a tree:
          {code}
          cd maria-bzr
          bzr clone bzr+ssh://bazaar.launchpad.net/~maria-captains/maria/10.0/
          {code}

          And compile an out-of-source build:
          {code}
          cd 10.0
          mkdir bld
          cd bld
          cmake .. -DCMAKE_BUILD_TYPE=Debug
          make -j8
          {code}

          Now I run a test:
          {code}
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}

          It ignores the --mem option and creates a real var subdirectory under the current directory, instead of symlinking it to a random sub directory at /dev/shm/.
          As a result, the entire ./mtr runs about 4 hours instead of 20 minutes.

          Note, it works as expected when I use a in-source tree:
          {code}
          cd ~/maria-bzr/10.0/
          rm -rf bld
          cmake . -DCMAKE_BUILD_TYPE=Debug
          make -j8
          cd mysql-test
          ./mtr --mem ctype_utf8
          {code}
          serg Sergei Golubchik made changes -
          Fix Version/s 10.0 [ 16000 ]
          serg Sergei Golubchik made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.0.16 [ 17900 ]
          Fix Version/s 5.5.42 [ 18102 ]
          Fix Version/s 10.0 [ 16000 ]
          serg Sergei Golubchik made changes -
          Affects Version/s 5.5 [ 15800 ]
          Affects Version/s 10.1 [ 16100 ]
          serg Sergei Golubchik made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 58914 ] MariaDB v3 [ 65111 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 65111 ] MariaDB v4 [ 148603 ]

          People

            serg Sergei Golubchik
            bar Alexander Barkov
            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.