'cpu'에 해당되는 글 2건

  1. 2021.07.12 Windows CPU 물리/논리 Core count 확인
  2. 2021.06.06 MSSQL CPU 선호도 설정

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 실행

 

-- 1번 NUMA Node CPU 사용하지 않도록 설정
ALTER SERVER CONFIGURATION SET PROCESS AFFINITY NUMANODE = 1
GO

-- CPU 선호도를 Auto로 설정
ALTER SERVER CONFIGURATION  
SET PROCESS AFFINITY CPU=AUTO;  

GUI 설정

참고 자료

https://docs.microsoft.com/ko-kr/sql/t-sql/statements/alter-server-configuration-transact-sql?view=sql-server-ver15#Affinity

 

ALTER SERVER CONFIGURATION(Transact-SQL) - SQL Server

ALTER SERVER CONFIGURATION(Transact-SQL)

docs.microsoft.com

https://www.sqlpassion.at/archive/2017/10/02/setting-a-processor-affinity-in-sql-server-the-unwanted-side-effects/

 

Setting a Processor Affinity in SQL Server – the (unwanted) Side-Effects |

(Be sure to checkout the FREE SQLpassion Performance Tuning Training Plan - you get a weekly email packed with all the essential knowledge you need to know about performance tuning on SQL Server.) Today I want to talk about a very important topic in SQL Se

www.sqlpassion.at

 


to Top