AUTO Affinity

  • Comments posted to this topic are about the item AUTO Affinity

  • Nice question, thanks Steve.
    Have only ever had to change this once, where a server was running multiple instances of SQL (and being used as a web server) - definitely not best practice, though...

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    β€œlibera tute vulgaris ex”

  • Just to be pedantic, the thread doesn't randomly pick a CPU, the operating system moves the threads based on workload - but hey, I knew what you meant.

  • sipas - Tuesday, June 13, 2017 2:58 AM

    Just to be pedantic, the thread doesn't randomly pick a CPU, the operating system moves the threads based on workload - but hey, I knew what you meant.

    I'll take your pedantic and raise you punctilious, the thread has to on a CPU before it can be moved πŸ˜› :laugh:

    Far away is close at hand in the images of elsewhere.
    Anon.

  • David Burrows - Tuesday, June 13, 2017 5:45 AM

    I'll take your pedantic and raise you punctilious, the thread has to on a CPU before it can be moved πŸ˜› :laugh:

    One cannot be punctilious if one misses out a word in one's sentence. :rolleyes:

  • sipas - Tuesday, June 13, 2017 5:56 AM

    David Burrows - Tuesday, June 13, 2017 5:45 AM

    I'll take your pedantic and raise you punctilious, the thread has to on a CPU before it can be moved πŸ˜› :laugh:

    One cannot be punctilious if one misses out a word in one's sentence. :rolleyes:

    To be or not to be........

    LOL :hehe:

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 70 percent correct confirms that this was an easy one. Thanks, Steve!

  • Actually the correct answer is incorrect.  The only correct thing in it is that it mentions
     server workload.  The thread can't pick a CPU, the OS assigns a CPU to the thread and that changes when the OS (not the thread) decides to assign a different CPU to that thread.

    the strange thing is that the correct explanation is given when the "correct" answer is so obviously wrong.  Or is it the BOL page referenced in teh explanation that's wrong?  The URL referenced in the explanation redirects to https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-server-configuration-transact-sql which clearly states that the OS assigns threads when teh setting is AUTO.

    As there is only one answer that says both that a thread is assigned to the CPU and it can change to a different thread later (which is acually correct if the antecededent to "it" is the assigned hread) that answer is the only one which can be interpreted as describing what actually happens.   And that's not the answer claimed to be correct, but one of those claimed to be wrong.

    Tom

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

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