[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

Processor and I/O affinity

In SQL Server 2005, when does manually assigning processor or I/O affinity (in SSMS, server properties) actually improve performance?
0
vanya1967
Asked:
vanya1967
  • 3
1 Solution
 
Aneesh RetnakaranDatabase AdministratorCommented:
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


0
 
vanya1967Author Commented:
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?
0
 
Aneesh RetnakaranDatabase AdministratorCommented:
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.
0
 
Aneesh RetnakaranDatabase AdministratorCommented:
Hope i answered it correctly.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now