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

Spinning on buf_pool.page_hash is wasting CPU cycles

    XMLWordPrintable

    Details

      Description

      This came up in MDEV-26769 and was also pointed out by Krunal Bauskar.

      When I introduced a new type of rw-lock for buf_pool.page_hash in MDEV-22871, I thought that conflicts would be extremely rare and the critical sections very short. Therefore, only a spinloop was implemented. In 10.6, we could easily use an alternative that was introduced in MDEV-24167.

      Only on systems for which we have not implemented a futex interface (see also MDEV-26476), we’d better keep the spinloop, because small size of the rw-lock is important.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marko Marko Mäkelä
              Reporter:
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration