Announcement

Announcement Module
Collapse
No announcement yet.

Taking advantage of multiple CPU cores

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Taking advantage of multiple CPU cores

    Peter and/or gallery,

    What is the best way to make use of all the cores of a multi-core machine running NDB?

    My current set up is the following :
    2 x Dual Quad Core for MySQL Heads raid 10, 15k RPM SAS drives 8G memory
    6 x Dual Quad Core for Data Nodes raid 10, 15k RPM SAS drives 16G memory

    The problem I see is that the ndbd and mysqld processes SEEM to only use one core on each of the machines. Am I correct?

    Do I need to start up a new NDBD process for each core on each machine to take full advantage of the processing power of these machines?

    Has anyone worked with this that might be able to advise?

    Tyler

  • #2
    How many connections do you have ?

    NDB is single threaded if you would like to use multiple cores you've got to have multiple NDB processes running.

    MySQL Process has thread per connection so you need to have many connections to run load in parallel.

    Comment


    • #3
      Great! Thanks for the info!!

      Regarding the connections - most of the tests have been with a single connection. Load testing with multiple connections will be coming up in the next few weeks. I've been pretty impressed with the performance of MySQL Clustering, especially with large joins.

      Besides making sure that similar nodegroups are not on the same machine, are there any other major gotchas that I should be aware of in running 2 ndbd threads on the same machine? It'll double my data nodes from 6 to 12 - is that going to cause network problems on the data node dedicated high end, layer 2, gigabit switch or individual machines?

      Tyler

      Comment


      • #4
        So, has there been any indication from MySQL as to when/if they will be adding multi-threading to NDB? It seems like such a large thing to worry about given the current state of CPU advancement.

        Tyler

        Comment


        • #5
          Looks like I finally got a reply about this!!! Here it is.. Not a whole lot of info, but enough to keep me happy.

          Posted by: Stewart Smith (IP Logged)
          Date: March 22, 2007 02:32AM

          It's coming.

          Jonas has been gradually working on it - both design and implementation. The design is pretty cool actually and should be incredibly efficient.

          Currently it's at a kind of pre-alpha stage - works for a little while with a bunch of limitations (e.g. create table doesn't yet work ) - so progress is being made.

          Can't say which version it will appear in yet though.

          Stewart Smith, Software Engineer - MySQL Cluster
          MySQL AB, www.mysql.com

          Jumpstart your cluster:
          [www.mysql.com]

          Comment

          Working...
          X