Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large pages can be used on Windows without elevated privleges. #57

Open
Infini-PLEX opened this issue Oct 20, 2024 · 2 comments
Open

Large pages can be used on Windows without elevated privleges. #57

Infini-PLEX opened this issue Oct 20, 2024 · 2 comments

Comments

@Infini-PLEX
Copy link

Enabling large page support on windows only requires the "Lock pages in memory" user right, which can be granted on a per user basis in the Local Security Policy settings.

See the java docs (It says only Windows Server 2003, but I can confirm that it does work on modern Windows Server, not sure about desktop):
https://www.oracle.com/java/technologies/javase/largememory-pages.html

@Elektrus
Copy link

Elektrus commented Nov 1, 2024

Can confirm this works on Windows 10 Pro. Just add your username to the Lock pages in memory policy. No need for admin privileges.

Before the change I'd see an error that JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.

@Mukul1127
Copy link

I also found this a couple weeks ago, it's in my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants