Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

Cannot set ulimit memlock for users - MPSS 3.2.3

bgeek
Beginner
847 Views

Hi all,

I'm not sure if I have made a mistake, but I cannot seem to set the ulimit memlock for users on the MICs.

Firstly, I am running the MPSS release 3.2.3 with the firmware upgrades that come with it, on RHEL 6.3.

If I login to a MIC, I can see the ulimit settings by issuing: ulimit -a

The max locked memory by default is 64.  I can set this, as root, to unlimited by issuing: ulimit -l unlimited.  Then, if I logout the change is lost.

So, I looked for the ulimits.conf file.  I extracted the base file: /usr/share/mpss/boot/initramfs-2.6.38+mpss3.2.3-knightscorner.cpio.gz to a new location using zcat and cpio.  I then noticed two files.  In the base directory there are:

/etc/security/limits.conf

/etc/security/limits.d/95-memlock.conf

The file limits.conf contains only examples.  However, the 95-memlock.conf file contains:

*   -    memlock   unlimited

I have tried different permutations, but none, as of yet, seem to work.

I created a new file: /var/mpss/common/etc/security/limits.conf that contains:

*   -    memlock   unlimited

but that seems to be ignored.

I did notice the following post regarding a similar problem, but the software architecture of the MICs appears to have changed and this is no longer valid:

https://software.intel.com/forums/topic/404071

I acknowledge that I may have made a trivial mistake :)

Any help and/or examples is much appreciated.

Cheers,

Gerald

0 Kudos
2 Replies
bgeek
Beginner
847 Views

Hi all,

Fixed.  It was something obvious after all.

The line 'UsePam yes' had not been uncommented in the base directory, so I made a copy in:

/var/mpss/common/etc/ssh/sshd_config

Never mind.  Sorry to trouble anyone that bothered looking! :)

Cheers,

0 Kudos
TaylorIoTKidd
New Contributor I
847 Views

Gerald,

Thanks for letting us know.

Regards
--
Taylor
 

0 Kudos
Reply