<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_RLIMIT_MEMLOCK_is_32768_OFED_Mpirun</id>
	<title>Rocks: RLIMIT MEMLOCK is 32768 OFED Mpirun - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_RLIMIT_MEMLOCK_is_32768_OFED_Mpirun"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_RLIMIT_MEMLOCK_is_32768_OFED_Mpirun&amp;action=history"/>
	<updated>2026-05-04T21:39:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_RLIMIT_MEMLOCK_is_32768_OFED_Mpirun&amp;diff=2495&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;===== Problem =====  * Error when running openmpi: RLIMIT_MEMLOCK is 32768  With OpenFabrics (and therefore the openib BTL component), you need to set the available locked mem...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_RLIMIT_MEMLOCK_is_32768_OFED_Mpirun&amp;diff=2495&amp;oldid=prev"/>
		<updated>2013-05-13T10:01:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;===== Problem =====  * Error when running openmpi: RLIMIT_MEMLOCK is 32768  With OpenFabrics (and therefore the openib BTL component), you need to set the available locked mem...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== Problem =====&lt;br /&gt;
&lt;br /&gt;
* Error when running openmpi: RLIMIT_MEMLOCK is 32768&lt;br /&gt;
&lt;br /&gt;
With OpenFabrics (and therefore the openib BTL component), you need to set the available locked memory to a large number (or better yet, unlimited) -- the defaults with most Linux installations are usually too low for most HPC applications that utilize OpenFabrics. Failure to do so will result in a error message similar to one of the following (the messages have changed throughout the release versions of Open MPI):&lt;br /&gt;
&lt;br /&gt;
===== Resolution =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Soft&amp;lt;/b&amp;gt;: The &amp;quot;soft&amp;quot; value is how much memory is allowed to be locked by user processes by default. Set it by adding a line in /etc/security/limits.conf:&lt;br /&gt;
&lt;br /&gt;
      * soft memlock &amp;lt;number&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hard&amp;lt;/b&amp;gt;: The &amp;quot;hard&amp;quot; value is the maximum amount of memory that a user process can lock. Set it by adding a line in /etc/security/limits.conf:&lt;br /&gt;
&lt;br /&gt;
      * hard memlock &amp;lt;number&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;&amp;lt;number&amp;gt;&amp;quot; is the maximum number of bytes that you want user processes to be allowed to lock (presumably rounded down to an integral number of pages). &amp;quot;&amp;lt;number&amp;gt;&amp;quot; can also be &amp;quot;unlimited&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===== Example Configuration File =====&lt;br /&gt;
* Correct /etc/security/limits.conf&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
* soft memlock unlimited&lt;br /&gt;
* hard memlock unlimited&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;NOTE&amp;lt;/b&amp;gt;&lt;br /&gt;
** Ensure this file is sync&amp;#039;d correctly across the cluster (411 or CFM).&lt;br /&gt;
** You may need to restart schedule process on the compute node&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  service sgeexecd restart (SGE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>