<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://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>Search results matching tags 'Performance', 'Testing', and 'TPC-C'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=Performance,Testing,TPC-C&amp;orTags=0</link><description>Search results matching tags 'Performance', 'Testing', and 'TPC-C'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Performance impact: hyperthreading for OLTP queries</title><link>http://sqlblog.com/blogs/linchi_shea/archive/2012/01/05/performance-impact-hyperthreading-for-oltp-queries.aspx</link><pubDate>Fri, 06 Jan 2012 04:44:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:40853</guid><dc:creator>Linchi Shea</dc:creator><description>&lt;P&gt;My &lt;A href="http://sqlblog.com/blogs/linchi_shea/archive/2012/01/05/performance-impact-hyperthreading-for-reporting-queries.aspx"&gt;previous post&lt;/A&gt; focuses on the performance impact of enabling hyperthreading (HT) on a machine with four Intel Westmere-EX processors on reporting queries. Let’s turn our attention to OLTP queries.&lt;/P&gt;
&lt;P&gt;To oversimplify it, reporting queries are generally processed by scanning a large number of pages, whereas quick index seeks are the hallmark of OLTP queries.&lt;/P&gt;
&lt;P&gt;The OLTP queries used to check out the hyperthreading impact are the two TPC-C read-only transactions (Order Status and Stock Level), slightly modified to work properly in the test environment. The need to modify these two TPC-C transactions is discussed in an early &lt;A href="http://sqlblog.com/blogs/linchi_shea/archive/2012/01/03/evaluating-server-hardware-a-sign-of-the-times.aspx"&gt;post&lt;/A&gt;. Briefly, it’s because in their original forms they don’t scale properly on this 80-cpu test machine running SQL Server 2008 R2. You can find the modified code of these two transactions in the attachment of this post.&lt;/P&gt;
&lt;P&gt;The benchmark described in the &lt;A href="http://sqlblog.com/blogs/linchi_shea/archive/2012/01/03/evaluating-server-hardware-a-sign-of-the-times.aspx"&gt;same post&lt;/A&gt; is used to drive the tests whose results are reported here. If you want to find out more about the benchmark, please check out that post, so I won’t duplicate its description here.&lt;/P&gt;
&lt;P&gt;Essentially, with this OLTP benchmark (or workload) I want to see how it behaves when I increase the load level by increasing the number of concurrent users, with and without hyperthreading on a DL580 G7 with four E7-4870 processors (10 cores per processor) and 264GB of RAM. The OS is Windows 2008 R2 Enterprise x64 Edition with SP2 and DBMS is SQL Server 2008 R2 Enterprise x64 Edition (10.50.1600). There is no intra-query parallelism; maxdop is set to 1 in all the cases.&lt;/P&gt;
&lt;P&gt;Four test configurations are examined:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;40 core with HT&lt;/STRONG&gt;&lt;/EM&gt;. That is 80 logical cpus. HT is enabled in the BIOS. &lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;40 cores without HT&lt;/STRONG&gt;&lt;/EM&gt;. That is 40 logical cpus. HT is disabled in the BIOS. &lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;20 cores with HT&lt;/STRONG&gt;&lt;/EM&gt;. That is 40 logical cpus. HT is enabled in the BIOS.&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;20 cores without HT&lt;/STRONG&gt;&lt;/EM&gt;. That is 20 logical cpus. HT is disabled in the BIOS.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The following chart shows the results when 200 simulated users are driving the workload concurrently. Note that with 200 users, all the processors on this test system are pushed to ~100%.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sqlblog.com/blogs/linchi_shea/hyperthreding_OLTP_queries_38692D15.png"&gt;&lt;IMG style="BORDER-BOTTOM:0px;BORDER-LEFT:0px;DISPLAY:inline;BORDER-TOP:0px;BORDER-RIGHT:0px;" title=hyperthreding_OLTP_queries border=0 alt=hyperthreding_OLTP_queries src="http://sqlblog.com/blogs/linchi_shea/hyperthreding_OLTP_queries_thumb_3A3982DC.png" width=602 height=438&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Compared with the results for the reporting queries (see &lt;A href="http://sqlblog.com/blogs/linchi_shea/archive/2012/01/05/performance-impact-hyperthreading-for-reporting-queries.aspx"&gt;the previous post&lt;/A&gt;), the performance gain from enabling HT on the 40 cores is very much more marginal with this OLTP benchmark. We see an increase of about 5% from ~7900 batch requests per second to ~8300 batch requests per second. Enabling HT on the 20 cores produces an improvement of similar magnitude (about 7.5%).&lt;/P&gt;
&lt;P&gt;Going from 20 cores with HT to 40 cores without HT, however, gives the OLTP queries a dramatic throughput gain of about 67% from ~4730 batch requests per second to ~7900 batch requests per second. We see similar behavior with the reporting queries. Knowing how HT works, I think it is intuitive we expect a big gain, whether or not it should be 67%.&lt;/P&gt;
&lt;P&gt;So for both the reporting queries and the OLTP queries that I have tested, the hyperthreading results are positive. So far so good!&lt;/P&gt;</description></item></channel></rss>