<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx</link><description>Welcome to Parallelism Week at SQL University . My name is Adam Machanic, and I'm your professor. Imagine having 8 brains, or 16, or 32. Imagine being able to break up complex thoughts and distribute them across your many brains, so that you could solve</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25463</link><pubDate>Mon, 24 May 2010 12:27:56 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25463</guid><dc:creator>Jimmy May, Aspiring Geek </dc:creator><description>&lt;p&gt;This community could benefit from some thoughtful prose on parallelism. &amp;nbsp;Great intro. &amp;nbsp;Look forward to the rest of the series. &amp;nbsp;The graphic is a nice touch, BTW.&lt;/p&gt;
&lt;p&gt;Jimmy&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25468</link><pubDate>Mon, 24 May 2010 13:43:11 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25468</guid><dc:creator>Erin Stellato</dc:creator><description>&lt;p&gt;Great article, especially the Background section. One of the most clear explanations I have read about &amp;quot;how it works&amp;quot;. &amp;nbsp;Thanks!&lt;/p&gt;
&lt;p&gt;Erin&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25469</link><pubDate>Mon, 24 May 2010 14:07:44 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25469</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Thank you, Jimmy and Erin, for the kind words!&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25471</link><pubDate>Mon, 24 May 2010 14:31:21 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25471</guid><dc:creator>Mike A</dc:creator><description>&lt;p&gt;Hey Adam,&lt;/p&gt;
&lt;p&gt;Great write up~ &amp;nbsp;I have a couple of questions about applying this knowlege to my environment and I wish I could find more information on this in the form of best practices. &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;How should DBAs manage their parellelism settings in an environment where they have multiple instances of SQL Server running on the same physical server? &amp;nbsp;As far as I know each SQL Server instance is blind to the schedulers of the other instances so my assumption is that turning on parallelism would cause a big increase in context switches and CX related waits. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any good documentation on how to set the cost threshold of parallelism? &amp;nbsp;The cost threshold of parallelism is like a microsoft mystery knob to me. &amp;nbsp;All I've read about it is that when the optimizer is looking to generate a plan if I turn that knob up the optimizer will prefer non parallel plans over parallel ones. &amp;nbsp;I haven't come across documentation to tell me if I should be turning it up by 1's by 10's or by 100's or anywhere to say look at this statistic and turn it up until that goes below a threshold. &amp;nbsp;All we know about the cost threshold for parallelism option is that it can be set to any value from 0 through 32767. The default value is 5. and cryptically the cost refers to an estimated elapsed time in seconds required to run the serial plan on a specific hardware configuration. &amp;nbsp;That last part sounds like the estimated cost of execution when looking at an execution plan but the documentation doesn't explicitly state that. &amp;nbsp;How would someone set the CTOP to an optimal value?&lt;/p&gt;
&lt;p&gt;Thanks for your contributions to the SQL Community Adam! &amp;nbsp;Keep up the great work!&lt;/p&gt;
&lt;p&gt;-Mike&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25472</link><pubDate>Mon, 24 May 2010 14:35:47 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25472</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Great questions! But answering them would require a big chunk of a blog post and... There is one on those very topics (and related issues) scheduled for Friday. So hold those thoughts, and let me know if Friday's post doesn't get you where you need to be.&lt;/p&gt;
</description></item><item><title>Adam Machanic : SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25479</link><pubDate>Mon, 24 May 2010 19:29:48 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25479</guid><dc:creator>Adam Machanic : SQL University: Parallelism Week - Introduction</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx"&gt;http://sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25480</link><pubDate>Mon, 24 May 2010 19:36:12 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25480</guid><dc:creator>Robert L Davis</dc:creator><description>&lt;p&gt;Seems like you should have posted all 3 parts at the same time?&lt;/p&gt;
&lt;p&gt;When we had Conor Cunningham talking to us in our MCM class, he stated that the optimizer always creates a parallel plan and a non-parallel plan. But then the subject of cost threshold never came up, so perhaps he was giving us a simplified description.&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25481</link><pubDate>Mon, 24 May 2010 19:44:40 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25481</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Robert,&lt;/p&gt;
&lt;p&gt;SQL University topics are supposed to span a week. Had I posted all three at once, it would have only spanned a single day. &lt;/p&gt;
&lt;p&gt;What I understood from Conor is not that the optimizer always creates both plans but rather that it -considers- both plans. Which makes a lot of sense, and from what I can see in my server's plan cache it's correct. But I'll ping Conor for the decisive answer.&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25542</link><pubDate>Wed, 26 May 2010 07:03:59 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25542</guid><dc:creator>RichB</dc:creator><description>&lt;p&gt;Really good article, succinct and informative, thanks.&lt;/p&gt;
&lt;p&gt;I have found that on my OLTP systems, the best way is just to set maxdop to 1. &amp;nbsp;Even with a high threshold it often - 2008 more than 2000 - seems to choose parallelism when the equivalent non parallel query is both dramatically faster, and 10's or 100's times less intensive on the CPU.&lt;/p&gt;
&lt;p&gt;Might not be the most efficient at all times, but it sure is safest on a high throuput OLTP system!&lt;/p&gt;
&lt;p&gt;Rich&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25559</link><pubDate>Wed, 26 May 2010 13:46:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25559</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Rich: I tend to agree with you that for most OLTP workloads a MAXDOP of 1 is appropriate. But we'll get into that just a bit more in Friday's post :-)&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25563</link><pubDate>Wed, 26 May 2010 16:07:29 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25563</guid><dc:creator>AdamP</dc:creator><description>&lt;p&gt;Great article, made a complex subject make sense to someone with little experience in the topic.&lt;/p&gt;
&lt;p&gt;A quick note on the parallelism of the brain though... The human brain has tons of parallelism. When you look at an image different parts of the brain will identify movement, color and contrast, then combine them into one image. Different parts of the brain run different 'processes' independently all the time. Your analogy makes sense in that we don't consciously assign different parts of a math problem to different parts of our brain, but when doing a math problem, another part of our brain is keeping our heart pumping and another part is managing your digestive system and another part of your conscious brain can be writing the problem down all while not interfering significantly with the conscious math problem.&lt;/p&gt;
&lt;p&gt;The parallelism of the brain and our ability to make us run hundreds or even thousands of 'processes' simultaneously is part of what allows us to excel over a computer in certain tasks, such as image recognition, and picking out the important part of an image instantly; while a computer may struggle to analyze the meaning and individual parts of an image.&lt;/p&gt;
&lt;p&gt;Again, I know you were just using an analogy and it makes sense in how we don't consciously divide tasks, but I just thought this would be interesting information for a few of your readers.&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25572</link><pubDate>Wed, 26 May 2010 16:56:58 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25572</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;AdamP: A very good point indeed. I guess we can extend the analogy by aligning with SQL Server system vs user processes. We could say that keeping the heart beating, etc, is much like a system process, and that our brains can do lots of these in parallel. But something like a math problem is more of a user process, and although our brains can perhaps turn on a form of intra-query parallelism to help solve the math problem, we can't really multi-task and do many math problems concurrently. At least, most of us can't. I've met a few people along the way who break the mold. Proving once again that nature is a lot more powerful than technology in many ways.&lt;/p&gt;
</description></item><item><title>SQL University: Parallelism Week - Part 2, Query Processing</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25584</link><pubDate>Wed, 26 May 2010 20:31:08 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25584</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Welcome back for the second part of Parallelism Week here at SQL University . Get your pencils ready,&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25663</link><pubDate>Fri, 28 May 2010 07:29:52 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25663</guid><dc:creator>Mark Broadbent</dc:creator><description>&lt;p&gt;Great article, concise descriptive and a good entry point even for those that haven't had an exposure to parallelism.&lt;/p&gt;
</description></item><item><title>SQL University: Parallelism Week - Part 3, Settings and Options</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#25676</link><pubDate>Fri, 28 May 2010 13:33:52 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25676</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Congratulations! You've made it back for the the third and final installment of Parallelism Week here&lt;/p&gt;
</description></item><item><title>re: SQL University: Parallelism Week - Introduction</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#26476</link><pubDate>Sun, 27 Jun 2010 02:00:37 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:26476</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Great article. Indeed, we are only beginning to understand the parallel processing capabilities of the human brain. However, at this time, it is generally acknowledged that uniprocessing is a limitation peculiar to the male brain.&lt;/p&gt;
</description></item><item><title>How Queries Are Processed (A Month of Activity Monitoring, Part 13 of 30)</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2010/05/24/sql-university-parallelism-week-introduction.aspx#34852</link><pubDate>Wed, 13 Apr 2011 14:44:22 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:34852</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;This post is part 13 of a 30-part series about the Who is Active stored procedure. A new post will run&lt;/p&gt;
</description></item></channel></rss>