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

Add common optimized CRC32 function interface

Details

    • 10.2.1-1, 10.2.1-2, 10.2.2-1

    Description

      patch as per https://github.com/MariaDB/server/pull/170 adds optimized Power8 implemention for CRC32-IEEE to complement existing CRC32C.

      While I haven't included an implementation of an optimized CRC32-(IEEE) for intel, there is the following links that would enable this:

      Note the documentation mentions patents on CRC32 folding (which I haven't done).

      Attachments

        Issue Links

          Activity

            danblack Daniel Black created issue -
            svoj Sergey Vojtovich made changes -
            Field Original Value New Value
            Fix Version/s 10.1 [ 16100 ]
            Fix Version/s 10.1.14 [ 21804 ]
            svoj Sergey Vojtovich made changes -
            Labels contribution patch contribution foundation patch
            svoj Sergey Vojtovich made changes -
            Assignee Sergey Vojtovich [ svoj ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.1.14 [ 51 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Rank Ranked lower
            svoj Sergey Vojtovich made changes -
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 10.1 [ 16100 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.1.14 [ 51 ] 10.2.1-1 [ 56 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Rank Ranked higher
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.2.1-1 [ 56 ] 10.2.1-1, 10.2.1-2 [ 56, 63 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.2.1-1, 10.2.1-2 [ 56, 63 ] 10.2.1-1, 10.2.1-2, 10.2.2-1 [ 56, 63, 77 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Rank Ranked lower

            serg, please review patch for this task (b6d7d5878eecc7f0cb76f8f99a9989686ff9715c).

            svoj Sergey Vojtovich added a comment - serg , please review patch for this task (b6d7d5878eecc7f0cb76f8f99a9989686ff9715c).
            svoj Sergey Vojtovich made changes -
            Assignee Sergey Vojtovich [ svoj ] Sergei Golubchik [ serg ]
            Status Open [ 1 ] In Review [ 10002 ]

            upd: e252dae86392a2b50d647a380db36fb8b01bf405

            svoj Sergey Vojtovich added a comment - upd: e252dae86392a2b50d647a380db36fb8b01bf405
            danblack Daniel Black added a comment -

            svoj thanks, sorry I didn't get back to this sooner. If you need a hand let me know.

            danblack Daniel Black added a comment - svoj thanks, sorry I didn't get back to this sooner. If you need a hand let me know.

            danblack, no problem. It'd be nice if you could review this patch and let me know if I missed something.

            svoj Sergey Vojtovich added a comment - danblack , no problem. It'd be nice if you could review this patch and let me know if I missed something.
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Sergey Vojtovich [ svoj ]
            Status In Review [ 10002 ] Stalled [ 10000 ]

            Waiting for feedback.

            svoj Sergey Vojtovich added a comment - Waiting for feedback.
            svoj Sergey Vojtovich made changes -
            Assignee Sergey Vojtovich [ svoj ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]

            ok to push

            serg Sergei Golubchik added a comment - ok to push
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Sergey Vojtovich [ svoj ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            svoj Sergey Vojtovich made changes -
            Fix Version/s 10.2.2 [ 22013 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]

            danblack, we're now getting failures like this:
            http://buildbot.askmonty.org/buildbot/builders/p8-xenial-bintar/builds/88/steps/test/logs/stdio

            I noticed that crc32-vpmsum sources differ in your PR. Did you also see these failures? Could you elaborate the difference?

            svoj Sergey Vojtovich added a comment - danblack , we're now getting failures like this: http://buildbot.askmonty.org/buildbot/builders/p8-xenial-bintar/builds/88/steps/test/logs/stdio I noticed that crc32-vpmsum sources differ in your PR. Did you also see these failures? Could you elaborate the difference?
            danblack Daniel Black added a comment -

            The crux of it is innodb uses CRC32C and the rest of MySQL (my_checksum) uses CRC32-IEEE.

            I'll patch in both implementations into the crc32-vpmsum library and then get my_checksum to point to the vpmsum crc32-ieee implementation

            danblack Daniel Black added a comment - The crux of it is innodb uses CRC32C and the rest of MySQL (my_checksum) uses CRC32-IEEE. I'll patch in both implementations into the crc32-vpmsum library and then get my_checksum to point to the vpmsum crc32-ieee implementation
            danblack Daniel Black added a comment -

            https://github.com/MariaDB/server/pull/211 - test case for SQL CRC32 function

            https://github.com/MariaDB/server/pull/210 - Add both versions of the CRC32 and adjust my_checksum to use the optimized version.

            danblack Daniel Black added a comment - https://github.com/MariaDB/server/pull/211 - test case for SQL CRC32 function https://github.com/MariaDB/server/pull/210 - Add both versions of the CRC32 and adjust my_checksum to use the optimized version.
            marko Marko Mäkelä made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 74762 ] MariaDB v4 [ 132833 ]

            People

              svoj Sergey Vojtovich
              danblack Daniel Black
              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.