Processor and I/O affinity

Posted on 2006-03-21
Last Modified: 2008-02-26
In SQL Server 2005, when does manually assigning processor or I/O affinity (in SSMS, server properties) actually improve performance?
Question by:vanya1967
    LVL 75

    Accepted Solution

    Use the affinity mask option when multiple SQL Server instances run on consolidated hardware like multiple instances of SQL Server run on a single server.
    The affinity mask option is represented as a binary pattern that is expressed by a decimal number. The affinity mask option settings are given below .

    First processor only                      1
    Second processor only      2
    First and second processor only      3
    First four processors                     15
    First eight processors                     255


    Author Comment

    I'm increasing the question value. I don't understand why using the affinity mask option would be useful when consolidating instances of SQL Server onto one server. Why would that help performance?
    LVL 75

    Expert Comment

    by:Aneesh Retnakaran
    To carry out multitasking, Microsoft Windows 2000 and Windows Server 2003 sometimes move process threads among different processors. Although efficient from an operating system point of view, this activity can reduce Microsoft SQL Server performance under heavy system loads, as each processor cache is repeatedly reloaded with data. Assigning processors to specific threads can improve performance under these conditions by eliminating processor reloads; such an association between a thread and a processor is called processor affinity.
    LVL 75

    Expert Comment

    by:Aneesh Retnakaran
    Hope i answered it correctly.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
    Introduced in Microsoft SQL Server 2005, the Copy Database Wizard ( is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
    Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
    Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now