Skip to content

Add a memlock sanity check for Linux - #367

Merged
ngdxzy merged 3 commits into
ROCm:mainfrom
superm1:memlock
Feb 24, 2026
Merged

Add a memlock sanity check for Linux#367
ngdxzy merged 3 commits into
ROCm:mainfrom
superm1:memlock

Conversation

@superm1

@superm1 superm1 commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@superm1

superm1 commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

This is the expected experience if the limit is too low from the process that calls flm validate:

╰─❮ flm validate
[Linux]  Kernel Version: 7.0.0-rc1-00050-g30cc1f9c6f79
[Linux]  Found AMD NPU at /dev/accel/accel0
[Linux]  NPU FW Version: 1.1.2.64
[ERROR]  Memlock limit is too low (8MB). Please raise the limit or set to infinity.
╰─❮ echo $status
1

This is if the limit is set to infinity:

╰─❮ flm validate
[Linux]  Kernel Version: 7.0.0-rc1-00050-g30cc1f9c6f79
[Linux]  Found AMD NPU at /dev/accel/accel0
[Linux]  NPU FW Version: 1.1.2.64
[Linux]  Memlock Limit: infinity
╰─❮ echo $status
0

@ngdxzy
ngdxzy merged commit 583d060 into ROCm:main Feb 24, 2026
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants