How to limit the number of processor SQL servur uses.

  • Hi,

    Is it possible to tell SQL server to use only 4 processors out of 8 ?

    I would like to dedicate 1 SQL server instance to processor 0 to 3 and a Second SQL server instance to processor 4 to 7, is it possible?

    Can I use affinity mask Option ?

    regards


    Kindest Regards,

    egpotus DBA

  • You can use Affinity mask. From my experience, SQL Server performed better when i left SQL Server to automatically set the affinity...

  • I have one server with 8 CPU (CPU0, CPU1... CPU7) , I am using 2005 Standard Sql version so I am limited to 4 CPU.

    I have 2 instances running on my server, how can I tell one instance, using affinity mask, to only use CPU4 to CPU7?


    Kindest Regards,

    egpotus DBA

  • Just open up the Server Properties in SSMS. On the Processors page you can see how many processors you have available and set them to a particular affinity. I'd suggest reading up in the BOL prior to setting it, just so you get it right.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Those parameters cannot be update using SSMS, do you know why ?


    Kindest Regards,

    egpotus DBA

  • First disable the automatic affinity in the check box below.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • BTW - when they say SQL Server can only use 4 CPU's - they are talking about slots. A single quad core processor is one CPU's as far as licensing and utilization. So, SQL Server Standard can use up to 16 CPU's if you use 4 quad-core processors.

    Jeffrey Williams
    “We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”

    ― Charles R. Swindoll

    How to post questions to get better answers faster
    Managing Transaction Logs

  • thank you for this help


    Kindest Regards,

    egpotus DBA

  • Since moving two Databases and several SSIS Packages I'm having issues with the AS400 iSeries and I'm getting Communication errors.

    Several task fail. It seems that the task complete much faster and as if the AS400 can't keep up with it.

    Should I limit the number of processors?

    If I limit the number of parallel loads, SSIS Tasks, I have been able to avoid the error.

    I have 1 64 bit Windows Server 2008 R2 running SQL Server 2008 R2.

    I looked it up on BOL but I have never had to mess with changing the number of processors.

    Any ideas would be greatly appreciated.

    For better, quicker answers on T-SQL questions, click on the following...
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply