반응형

/********************************************************************************************
-- Title : [2k] 동적/고정 메모리 변경시 Working Set 설정
-- Reference : dbrang.tistory.com
-- Key word : sp_configure set working set size 메모리 memory
********************************************************************************************/
-- 고정 설정시(5GB로)
EXEC master.dbo.sp_configure N'set working set size', N'1'
GO
EXEC master.dbo.sp_configure N'min server memory (MB)', N'5120'
GO
EXEC master.dbo.sp_configure N'max server memory (MB)', N'5120'
GO
RECONFIGURE WITH OVERRIDE
GO

-- 동적 설정시
EXEC master.dbo.sp_configure N'set working set size', N'0'
GO
EXEC master.dbo.sp_configure N'min server memory (MB)', N'0'
GO
EXEC master.dbo.sp_configure N'max server memory (MB)', N'6144'
GO
RECONFIGURE WITH OVERRIDE

-- set working set size는 물리적 메모리 공간을 서버 메모리 설정과 똑같이 예약하는 기능.
-- 고정 메모리 일때만 설정하고 동적 메모리 일때는 설정하지 않는다.
-- 오히려 성능이 나빠질 수 있다는 MS의 말쌈..!!
-- 변경 후에는 SQL Server를 Restart해야 한돠~!!
-- 왜 적었냐구? set working set size가 변경해도 반영이 안되어서..ㅡㅡ;; Restart!! 밥튕~!!

반응형

+ Recent posts