简体   繁体   English

升级sql server 2008r2到2016性能问题

[英]upgrade sql server 2008r2 to 2016 performance issues

Does anyone have experience upgrading from SQL Server 2008R2 to 2016? 有没有人有从SQL Server 2008R2升级到2016的经验?

Our system was running fine on 2008R2 but after upgrading to 2016 we are experiencing high tempdb contention. 我们的系统在2008R2上运行良好,但是升级到2016年后,我们遇到了较高的tempdb争用。

We see a large amount of blocking on PAGELATCH_SH waits for tempdb objects. 我们看到PAGELATCH_SH等待tempdb对象时发生大量阻塞。 PLE is 99.98%. PLE为99.98%。 MAXDOP is 6 (machine has 8 cores/NUMA). MAXDOP为6(机器具有8核/ NUMA)。 MAXDOP threshold is 50. MAXDOP阈值为50。

Random queries are taking upwards of 30 seconds to run but when I try running the same queries from SSMS they run sub-second, which verifies blocking as the issue. 随机查询最多需要30秒才能运行,但是当我尝试从SSMS运行相同的查询时,它们会运行不到一秒,这证明阻塞是问题所在。 We are currently using 16 temp file and increasing to 34 tonight. 我们目前正在使用16临时文件,今晚将增加到34。

We discover today that tempdb log has an io_stall_write_ms over 200,000 ms, we are moving it to a SAN tonight, but I do not believe it explains the long waits for page latches. 今天我们发现tempdb日志的io_stall_write_ms超过200,000毫秒,我们今晚将其移至SAN,但我不认为这解释了等待页面锁的漫长等待。

I've reached the end of my ideas. 我的想法已经结束。 Does anyone have any suggestions? 有没有人有什么建议?

We had a similar issue and it turned out to be the new cardinal estimator. 我们遇到了类似的问题,结果证明它是新的主要估计量。 Try changing the compatibility mode for the DB back to 2008 and compare. 尝试将数据库的兼容模式更改回2008,然后进行比较。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM