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

MySQL Bug#72718 - CACHE_LINE_SIZE in innodb should be 128 on POWER

    XMLWordPrintable

Details

    Description

      The following patch is suggested by Stewart Smith:

      Define CACHE_LINE_SIZE in ut0counter.h to 128 on POWER
       
      Index: mysql-5.6.17/storage/innobase/include/ut0counter.h
      ===================================================================
      --- mysql-5.6.17.orig/storage/innobase/include/ut0counter.h
      +++ mysql-5.6.17/storage/innobase/include/ut0counter.h
      @@ -32,7 +32,11 @@ Created 2012/04/12 by Sunny Bains
       #include "os0thread.h"
       
       /** CPU cache line size */
      +#ifdef __powerpc__
      +#define CACHE_LINE_SIZE                128
      +#else
       #define CACHE_LINE_SIZE                64
      +#endif
       
       /** Default number of slots to use in ib_counter_t */
       #define IB_N_SLOTS             64

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.