'lock page in memory'에 해당되는 글 1건

  1. SQL2012 lock page in memory 설정 방법 변경

SQL2012 이전버젼에서는 Lock page memory를 설정하기 몇가지 기능중 T845 플래그를 설정해야 한다. 하지만 SQL2012 버젼부터는 T845  플래그 설정 안 해줘도 되네요.


http://support.microsoft.com/kb/2659143/
http://blogs.msdn.com/b/sqlosteam/archive/2012/03/22/lock-pages-in-memory-not-deprecated-in-denali.aspx


You do not have to use Trace Flag 845 in SQL Server 2012. You can remove this trace flag from the startup parameters after you upgrade your instance to SQL 2012. 


자.. SQL2012 Lock Page In Memory 기능을 설정해볼까여~~


1. SQL 시작계정에 윈도우 사용자 권한 할당

커맨드명령어 : gpedit.msc

컴퓨터 구성>Windows 설정>보안 설정>로컬 정책> 사용자 권한 할당

SQL 시작계정에 "메모리에 페이지 잠금" 할당!! 여기서는 sqlservice 계정으로 설정.


2. 설정 확인하기

 sp_readerrorlog로 시작 메세지를 확인

"Using locked pages in the memory manager"  이렇게 메세지만 있다면 OK~~


Edition에 따라 설정방법 차이가 있네요~


Enterprise Edition,
Data Center Edition
Standard Edition,
Business Intelligence Edition
Other editions
SQL 2012 (32-bit and 64-bit)• Assign LPIM user right to SQL Startup account• Assign LPIM user right to SQL Startup accountNo support for "locked pages"
SQL Server 2005/2008/2008R2 (32-bit)• Assign LPIM user right to SQL Startup account
• Configure 'awe enabled' option to 1
• Assign LPIM user right to SQL Startup account
• Configure 'awe enabled' option to 1
No support for "locked pages"
SQL Server 2005/2008/2008R2 (64-bit)• Assign LPIM user right to SQL Startup account• Assign LPIM user right to SQL Startup account
• Apply SQL Hotfix KBA 970070
• Enable trace flag 845
No support for "locked pages