Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL server and multi core cpu utilization

SQL server and multi core cpu utilization

Scheduled Pinned Locked Moved Database
asp-netdatabasesql-serversysadminquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mehdi Gholam
    wrote on last edited by
    #1

    I have encountered this with several server, the cpu utilization with SQL server on multi core systems is very low i.e. one core does all the work and the others are idle, what is worse is that the queries are queued serially. Anyone encountered this, is there a solution.

    Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist If the final destination is death, then we should enjoy every second of the journey.

    W J 2 Replies Last reply
    0
    • M Mehdi Gholam

      I have encountered this with several server, the cpu utilization with SQL server on multi core systems is very low i.e. one core does all the work and the others are idle, what is worse is that the queries are queued serially. Anyone encountered this, is there a solution.

      Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist If the final destination is death, then we should enjoy every second of the journey.

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Have you checked if processor affinity is defined? It could be that only one core is allowed. Also it could be that the disk subsystem is actually the bottleneck so CPU has to wait for the answers. And what comes to the serial execution, I thing there are at least few possibilities: - again waiting for disk subsystem - serial executions is forced because of locking issues - transactions are ran in serializable isolation level.

      The need to optimize rises from a bad design.My articles[^]

      M 1 Reply Last reply
      0
      • W Wendelius

        Have you checked if processor affinity is defined? It could be that only one core is allowed. Also it could be that the disk subsystem is actually the bottleneck so CPU has to wait for the answers. And what comes to the serial execution, I thing there are at least few possibilities: - again waiting for disk subsystem - serial executions is forced because of locking issues - transactions are ran in serializable isolation level.

        The need to optimize rises from a bad design.My articles[^]

        M Offline
        M Offline
        Mehdi Gholam
        wrote on last edited by
        #3

        Thanks Mika, I will look into it... In the meantime more information: - We have a windows application server service connecting to sql server via integrated security on an internal threadpool of 10 threads. Each thread creates a connection when needed, and closes when finished. - The server is an HP with 2 quad core xeon hyperthreaded (16 processors in windows) with 10k sata raid 5. - Clients connect to the application server via tcp (no direct connection to sql).

        Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist If the final destination is death, then we should enjoy every second of the journey.

        W 1 Reply Last reply
        0
        • M Mehdi Gholam

          Thanks Mika, I will look into it... In the meantime more information: - We have a windows application server service connecting to sql server via integrated security on an internal threadpool of 10 threads. Each thread creates a connection when needed, and closes when finished. - The server is an HP with 2 quad core xeon hyperthreaded (16 processors in windows) with 10k sata raid 5. - Clients connect to the application server via tcp (no direct connection to sql).

          Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist If the final destination is death, then we should enjoy every second of the journey.

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          Ok, that's good background info. If you find anything suspicious or more information regarding the problem, let us know :)

          The need to optimize rises from a bad design.My articles[^]

          1 Reply Last reply
          0
          • M Mehdi Gholam

            I have encountered this with several server, the cpu utilization with SQL server on multi core systems is very low i.e. one core does all the work and the others are idle, what is worse is that the queries are queued serially. Anyone encountered this, is there a solution.

            Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist If the final destination is death, then we should enjoy every second of the journey.

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            How do you know that the application server is not the one that is queuing them serially?

            M 1 Reply Last reply
            0
            • J jschell

              How do you know that the application server is not the one that is queuing them serially?

              M Offline
              M Offline
              Mehdi Gholam
              wrote on last edited by
              #6

              Fair question, I presume when you have parallel threads each with their own connection they query in parallel.

              Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist If the final destination is death, then we should enjoy every second of the journey.

              J 1 Reply Last reply
              0
              • M Mehdi Gholam

                Fair question, I presume when you have parallel threads each with their own connection they query in parallel.

                Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist If the final destination is death, then we should enjoy every second of the journey.

                J Offline
                J Offline
                jschell
                wrote on last edited by
                #7

                Seems reasonable as long as you have verified that. And also verified that it is not in some other way serializing requests.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups