[SQL] [效能] Hyper-Threading 與 SQL License限制core數

[SQL] [效能] Hyper-Threading 與 SQL License限制core數

Hyper-Threading對SQL的影響

https://support.microsoft.com/en-us/kb/322385

重點:若實體Processors已經用到飽和,超執行緒環境下的SQL Service會降低Performance
           另外發現同版本、同名SQL ISO會被License限制最多可使用Processors數!! 問題是檔名是一樣的!!
           所以問題是出在SQL License限制了Processors數,loading大時又因為開超執行續,performance變得更差

Performance

The performance of hyper-threaded environments varies. Conservative testing has shown 10 to 20 percent gains for SQL Server workloads, but the application patterns have a significant affect. You might find that some applications do not receive an increase in performance by taking advantage of hyper-threading. If the physical processors are already saturated, using logical processors can actually reduce the workload achieved. 

For example, applications that cause high levels of contention can cause decreased performance in a hyper-threaded environment. We recommend that you test your application thoroughly to make sure that a hyper-threaded environment provides you the performance gain that you want versus the purchase of equivalent physical CPUs. Hyper-threading can be very helpful but hyper-threading cannot replace the full power of an additional physical CPU.

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

 

 20160715更新

          It's depends. 因為 Workload 每個環境都不同,要經過測試與觀察,來判斷開啟或是關閉 HyperThreading

         對您的執行環境是否較佳

         

         What's HyperThreading?

         http://www.unixwiz.net/evo/evo-hyperthreading.html

 

         Hyperthreading, Turbo Boost, SQL Server and You

        https://blogs.msdn.microsoft.com/sqladventurer/2012/07/11/hyperthreading-turbo-boost-sql-server-and-you/

 

        Be aware: To Hyper or not to Hyper

       https://blogs.msdn.microsoft.com/slavao/2005/11/12/be-aware-to-hyper-or-not-to-hyper/

 

       Windows, SQL Server and Multi-Core / Hyper-Threading

      https://blogs.msdn.microsoft.com/arvindsh/2008/12/19/windows-sql-server-and-multi-core-hyper-threading/