LPIM on SQL2012R2

Hi Experts,

How to enable LPIM on SQL server 2012R2 ?
Or how to check if its on or off ?
Eprs_AdminSystem ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
See How to enable the "locked pages" feature in SQL Server 2012.

You need to assign the LPIM user right to the SQL Server account.
Eprs_AdminSystem ArchitectAuthor Commented:
Thanks but this link is just info.
Where to configure it and how ?
ste5anSenior DeveloperCommented:
At the default place for service accounts:

How to: Enable the Lock Pages in Memory Option (Windows)
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Eprs_AdminSystem ArchitectAuthor Commented:
ok this is done.
But how to check if its really on and working ?
ste5anSenior DeveloperCommented:
In SSMS, e.g.

DBCC MemoryStatus;

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eprs_AdminSystem ArchitectAuthor Commented:
ok and which value ?
ste5anSenior DeveloperCommented:
Locked Pages Allocated
Eprs_AdminSystem ArchitectAuthor Commented:
ok, on my DB, this value is always 0.
Is it ok ?
Vitor MontalvãoMSSQL Senior EngineerCommented:
0 means it's disabled. If you want to enable it then set it to 1.
By the way, why you need to enable it?
Eprs_AdminSystem ArchitectAuthor Commented:
we had performance issues and we changed something
Eprs_AdminSystem ArchitectAuthor Commented:
first I did:

Read Committed Snapshot:
Eprs_AdminSystem ArchitectAuthor Commented:
second I did:

Locked Pages in Memory

But I am still not sure if locked pages are active
Vitor MontalvãoMSSQL Senior EngineerCommented:
LPIM is a permission that you need to give to an user. In this case to SQL Server account.

Anyway, if you're facing performance issues how do you know that giving this permission will solve it?
Eprs_AdminSystem ArchitectAuthor Commented:
I messured it and now the average wait time is much more shorter, nearly factor 100.

from 200ms in busiy hours to 2 ms
Vitor MontalvãoMSSQL Senior EngineerCommented:
You got those values after enabling LPIM?
Eprs_AdminSystem ArchitectAuthor Commented:
Yes LPIM and Commited Snapshots like the TSQL commands before.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.