SQL Server 未使用服务器硬件上的所有 CPU 核心/线程

发布于 2024-12-17 18:31:32 字数 1456 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

稀香 2024-12-24 18:31:33

您的亲和力桅杆设置为多少?您可以通过查询找到答案:

exec sp_configure 'show advanced options', 1
go
reconfigure
go
exec sp_configure 'affinity mask'
go

我的猜测是您没有利用一半的 CPU,向您显示这些结果。

如果您有四个处理器,则可以通过将关联掩码设置为 15 来利用所有处理器,如下所示:

exec sp_configure 'affinity i/o mask', 0
go
reconfigure with override
go

exec sp_configure 'affinity mask', 15
go
reconfigure with override
go

值 15(二进制 00001111)允许 SQL Server 线程在所有四个处理器上运行。


参考

What is your affinity mast set to? You can find out by querying:

exec sp_configure 'show advanced options', 1
go
reconfigure
go
exec sp_configure 'affinity mask'
go

My guess is that you're not utilizing half of your CPUs, showing you those results.

If you have four processors, you can utilize all of them by setting affinity mask to 15, like so:

exec sp_configure 'affinity i/o mask', 0
go
reconfigure with override
go

exec sp_configure 'affinity mask', 15
go
reconfigure with override
go

The value 15 (binary 00001111) allows SQL Server threads on all four of your processors.


Reference

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文