Intel Acceleration Stack Quick Start Guide for Intel® Programmable Acceleration Card with Intel® Arria® 10 GX FPGA

ID 683633
Date 12/04/2020
Public
Download
Document Table of Contents

D. Memlock Limit

Depending on the requirements of your application, you may also want to increase the maximum amount of memory that a user process can lock. The exact method may vary with your Linux distribution.

Use ulimit -l to check the current memlock setting:
 ulimit -l

To permanently remove the locked memory limit for a regular user, add the following lines to /etc/security/limits.conf:

user1    hard   memlock           unlimited
user1    soft   memlock           unlimited

The previous commands remove the limit on locked memory for user1. To remove memory locks for all users, replace user1 with *:

*    hard   memlock           unlimited
*    soft   memlock           unlimited
Note:

Settings in the /etc/security/limits.conf file do not apply to services. To increase the locked memory limit for a service, modify the application’s systemd service file to add the following line:

[Service]
LimitMEMLOCK=infinity