CPU usage comparison for MS SQL Server 2000

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kim

    CPU usage comparison for MS SQL Server 2000

    Hi All,

    I had two Window NT 4.0 Server, say A and B... We recently upgraded
    from MS SQL Server 6.5 to MS SQL Server 2000 on Computer A, and for
    Computer B, I installed SQL Server 2000 from scratch. These two have a
    same RAM(512MB) and CPU speed...so the setup for hardware is almost
    identical...

    For server A, there are around 10 connection to this SQL Server...
    For server B, there are also around 10 connection to this SQL
    Server...

    The database for SQL Server B is a copy from SQL Server A.... I
    restored the database on SQL Server B from the backup dump of Server
    A...

    We have a store procedure called usp_GetMemo(ID Interger) ... we feed
    ID number to this store procedure and return its return Description...
    this table has ID column and it's Non-Cluster index, allow the
    duplicate row... there are 1.7 million records for this table...

    Here is problem... whenever i execute more than 100 times for this
    store procedure(usp_G etMemo(ID)) continuously, the CPU usage of
    Computer A is 3 times bigger than computer B....

    I did run the command "DBCC DBReindex" , "Update Statistics" for this
    table on computer A, but did not make any difference...

    Keep in mind that Computer A has been upgraded to SQL server 2000
    while Computer B installed from scratch... would that make difference
    somehow?? Before the upgrading, the CPU usage of computer A is the
    same as Computer B...

    Any help will be really appreciated,
    Thanks alot,
    Kim,
  • Simon Hayes

    #2
    Re: CPU usage comparison for MS SQL Server 2000

    kct@emia.com.au (kim) wrote in message news:<5c2c58b.0 402011554.3fc49 d41@posting.goo gle.com>...[color=blue]
    > Hi All,
    >
    > I had two Window NT 4.0 Server, say A and B... We recently upgraded
    > from MS SQL Server 6.5 to MS SQL Server 2000 on Computer A, and for
    > Computer B, I installed SQL Server 2000 from scratch. These two have a
    > same RAM(512MB) and CPU speed...so the setup for hardware is almost
    > identical...
    >
    > For server A, there are around 10 connection to this SQL Server...
    > For server B, there are also around 10 connection to this SQL
    > Server...
    >
    > The database for SQL Server B is a copy from SQL Server A.... I
    > restored the database on SQL Server B from the backup dump of Server
    > A...
    >
    > We have a store procedure called usp_GetMemo(ID Interger) ... we feed
    > ID number to this store procedure and return its return Description...
    > this table has ID column and it's Non-Cluster index, allow the
    > duplicate row... there are 1.7 million records for this table...
    >
    > Here is problem... whenever i execute more than 100 times for this
    > store procedure(usp_G etMemo(ID)) continuously, the CPU usage of
    > Computer A is 3 times bigger than computer B....
    >
    > I did run the command "DBCC DBReindex" , "Update Statistics" for this
    > table on computer A, but did not make any difference...
    >
    > Keep in mind that Computer A has been upgraded to SQL server 2000
    > while Computer B installed from scratch... would that make difference
    > somehow?? Before the upgrading, the CPU usage of computer A is the
    > same as Computer B...
    >
    > Any help will be really appreciated,
    > Thanks alot,
    > Kim,[/color]

    Have you checked that the database compatibility level of the upgraded
    database is set to 80, not 65? See sp_dbcmptlvl in Books Online.

    Simon

    Comment

    • Leythos

      #3
      Re: CPU usage comparison for MS SQL Server 2000

      In article <60cd0137.04020 20716.1800e419@ posting.google. com>,
      sql@hayes.ch says...[color=blue]
      > kct@emia.com.au (kim) wrote in message news:<5c2c58b.0 402011554.3fc49 d41@posting.goo gle.com>...[color=green]
      > > Hi All,
      > >
      > > I had two Window NT 4.0 Server, say A and B... We recently upgraded
      > > from MS SQL Server 6.5 to MS SQL Server 2000 on Computer A, and for
      > > Computer B, I installed SQL Server 2000 from scratch. These two have a
      > > same RAM(512MB) and CPU speed...so the setup for hardware is almost
      > > identical...
      > >
      > > For server A, there are around 10 connection to this SQL Server...
      > > For server B, there are also around 10 connection to this SQL
      > > Server...
      > >
      > > The database for SQL Server B is a copy from SQL Server A.... I
      > > restored the database on SQL Server B from the backup dump of Server
      > > A...
      > >
      > > We have a store procedure called usp_GetMemo(ID Interger) ... we feed
      > > ID number to this store procedure and return its return Description...
      > > this table has ID column and it's Non-Cluster index, allow the
      > > duplicate row... there are 1.7 million records for this table...
      > >
      > > Here is problem... whenever i execute more than 100 times for this
      > > store procedure(usp_G etMemo(ID)) continuously, the CPU usage of
      > > Computer A is 3 times bigger than computer B....
      > >
      > > I did run the command "DBCC DBReindex" , "Update Statistics" for this
      > > table on computer A, but did not make any difference...
      > >
      > > Keep in mind that Computer A has been upgraded to SQL server 2000
      > > while Computer B installed from scratch... would that make difference
      > > somehow?? Before the upgrading, the CPU usage of computer A is the
      > > same as Computer B...
      > >
      > > Any help will be really appreciated,
      > > Thanks alot,
      > > Kim,[/color]
      >
      > Have you checked that the database compatibility level of the upgraded
      > database is set to 80, not 65? See sp_dbcmptlvl in Books Online.[/color]

      On top of that, never do an in-place upgrade, you leave sooo many things
      behind when you do that.

      There are many things to consider -

      Hard drive arrays and cache - Are they the same?

      Drive fragmentation? Did you defrag both servers?

      Users, not just DB users, but total users on both systems - are they the
      same?

      Did you set the SQL memory at 400MB fixed or did you allow it to use as
      much as it wants? Never allow it to do it on it's own, make sure that
      you leave 128MB for the OS to use.

      Did you run the maintenance plan on both systems?

      --
      --
      spamfree999@rro hio.com
      (Remove 999 to reply to me)

      Comment

      • Chuck Conover

        #4
        Re: CPU usage comparison for MS SQL Server 2000

        Kim,
        I don't think the upgrade is the problem. I think the problem is the
        drives in server A. If they are identical drives, configured in the same
        format as server B, then try defragging the drive(s) on server A. They have
        probably been in use for a while and are probably very fragmented. Make
        sure you bring down the database before defragging. Also, recommend you use
        a 3rd party defragger like Norton speed disk as the defragger that comes
        with Windows doesn't do as good a job.
        Hope this helps,
        Best regards,
        Chuck Conover




        "kim" <kct@emia.com.a u> wrote in message
        news:5c2c58b.04 02011554.3fc49d 41@posting.goog le.com...[color=blue]
        > Hi All,
        >
        > I had two Window NT 4.0 Server, say A and B... We recently upgraded
        > from MS SQL Server 6.5 to MS SQL Server 2000 on Computer A, and for
        > Computer B, I installed SQL Server 2000 from scratch. These two have a
        > same RAM(512MB) and CPU speed...so the setup for hardware is almost
        > identical...
        >
        > For server A, there are around 10 connection to this SQL Server...
        > For server B, there are also around 10 connection to this SQL
        > Server...
        >
        > The database for SQL Server B is a copy from SQL Server A.... I
        > restored the database on SQL Server B from the backup dump of Server
        > A...
        >
        > We have a store procedure called usp_GetMemo(ID Interger) ... we feed
        > ID number to this store procedure and return its return Description...
        > this table has ID column and it's Non-Cluster index, allow the
        > duplicate row... there are 1.7 million records for this table...
        >
        > Here is problem... whenever i execute more than 100 times for this
        > store procedure(usp_G etMemo(ID)) continuously, the CPU usage of
        > Computer A is 3 times bigger than computer B....
        >
        > I did run the command "DBCC DBReindex" , "Update Statistics" for this
        > table on computer A, but did not make any difference...
        >
        > Keep in mind that Computer A has been upgraded to SQL server 2000
        > while Computer B installed from scratch... would that make difference
        > somehow?? Before the upgrading, the CPU usage of computer A is the
        > same as Computer B...
        >
        > Any help will be really appreciated,
        > Thanks alot,
        > Kim,[/color]


        Comment

        • Kim Chi

          #5
          Re: CPU usage comparison for MS SQL Server 2000

          Hi simon,

          Thanks alot for your respond....
          The database compatibility level for both server is 80...

          Thanks again




          *** Sent via Developersdex http://www.developersdex.com ***
          Don't just participate in USENET...get rewarded for it!

          Comment

          • Kim Chi

            #6
            Re: CPU usage comparison for MS SQL Server 2000

            Hi,

            Thanks a lot for your respond....

            For the Hard drive arrays and cache,How can i check it.. i'm no expert
            in hardware stub..

            Yeah, for Server A has not been defrag for a while.. Yes, I should do
            fragmentation on it....

            Thanks a lot
            Kim,



            *** Sent via Developersdex http://www.developersdex.com ***
            Don't just participate in USENET...get rewarded for it!

            Comment

            • Kim Chi

              #7
              Re: CPU usage comparison for MS SQL Server 2000

              about the defragmentation , which software is good to degrag Windows NT
              4.0 server?

              Thanks alot,



              *** Sent via Developersdex http://www.developersdex.com ***
              Don't just participate in USENET...get rewarded for it!

              Comment

              • Leythos

                #8
                Re: CPU usage comparison for MS SQL Server 2000

                In article <401edd39$0$703 02$75868355@new s.frii.net>, kct@emia.com.au
                says...[color=blue]
                > about the defragmentation , which software is good to degrag Windows NT
                > 4.0 server?
                >[/color]
                Diskeeper Server version


                --
                --
                spamfree999@rro hio.com
                (Remove 999 to reply to me)

                Comment

                Working...