현재 max worker threads 카운트 확인 및 수정

USE AdventureWorks2012 ;  
GO  
EXEC sp_configure 'show advanced options', 1;  
GO  
RECONFIGURE ;  
GO

-- 정보 확인
EXEC sp_configure 'max worker threads'

-- max worker threads를 900으로 변경
EXEC sp_configure 'max worker threads', 900 ;  
GO  
RECONFIGURE;  
GO

CPU Core별 사용 가능 카운트

CPU 수 32비트 컴퓨터(최대 SQL Server 2014(12.x)) 64비트 컴퓨터(최대 SQL Server 2016(13.x) SP1) 64비트 컴퓨터(SQL Server 2016(13.x) SP2 및 SQL Server 2017(14.x)부터)
< = 4 256 512 512
8 288 576 576
16 352 704 704
32 480 960 960
64 736 1472 1472
128 1248 2496 4480
256 2272 4544 8576

참고

https://docs.microsoft.com/ko-kr/sql/database-engine/configure-windows/configure-the-max-worker-threads-server-configuration-option?view=sql-server-ver15

 

max worker threads 서버 구성 옵션 구성 - SQL Server

최대 작업자 스레드 옵션을 사용하여 SQL Server에서 특정 요청을 처리하는 데 사용할 수 있는 작업자 스레드 수를 구성하는 방법을 알아봅니다.

docs.microsoft.com

CPU Core를 효율적으로 사용하기 위해, hyperthread 기법을 사용하여 물리 코어의 2배로 논리 코어를 할당하여 사용 하는 경우가 있음.

 

wmic 명령어로 물리 및 논리 코어 카운트 확인

  numberofcores : 물리코어

  numberoflogicalprocessors : 논리코어

-- 아래는 소켓이 2개이며 하이퍼 스레딩을 사용하여 물리 CPU는 16개, 논리 CPU는 32개
C:W>wmic cpu get numberofcores,numberoflogicalprocessors
numberofcores	numberoflogicalprocessors
8		16
8		16

MSINFO32

시작 - 실행 - MSINFO32 실행

 


to Top