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

MariaDB does not start if more than 128 cpu's are available

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.33a
    • Fix Version/s: 5.5.34
    • Component/s: None
    • Labels:
      None
    • Environment:
      IBM systemx with 8 cpus with 10 cores with 2 threads = 160 available cpu's

      Description

      MAX_THREAD_GROUPS 128 setting prevents MariaDB from starting. No configuration is read at the time this check is made. Solution: make allocating the structure dynamic, make default to be always less than MAX_THREAD_GROUPS, or make MAX_THREAD_GROUPS bigger.

      ./sql/threadpool_unix.cc:static thread_group_t all_groups[MAX_THREAD_GROUPS];
      ./sql/threadpool.h:#define MAX_THREAD_GROUPS 128
      ./sql/sys_vars.cc: VALID_RANGE(1, MAX_THREAD_GROUPS), DEFAULT(my_getncpus()), BLOCK_SIZE(1),

      Server does not start if my_getncpus() > MAX_THREAD_GROUPS and there is no configuration option around that.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            svoj Sergey Vojtovich added a comment -

            Sergei, please review fix for this bug. It makes all_groups dynamic, though I can't judge if there is much sense setting it to high values even on computers with huge amount of cores.

            Show
            svoj Sergey Vojtovich added a comment - Sergei, please review fix for this bug. It makes all_groups dynamic, though I can't judge if there is much sense setting it to high values even on computers with huge amount of cores.
            Hide
            serg Sergei Golubchik added a comment -

            look ok, see the comment in the email

            Show
            serg Sergei Golubchik added a comment - look ok, see the comment in the email
            Hide
            svoj Sergey Vojtovich added a comment -

            Fixed in 5.5.34, revision-id: svoj@mariadb.org-20131105051859-pytrunre7wtyfcls

            Show
            svoj Sergey Vojtovich added a comment - Fixed in 5.5.34, revision-id: svoj@mariadb.org-20131105051859-pytrunre7wtyfcls

              People

              • Assignee:
                svoj Sergey Vojtovich
                Reporter:
                hyvatti Jaakko Hyvätti
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified