<?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=Linux%3A_Memory_Limits_on_Mellonox_OFED</id>
	<title>Linux: Memory Limits on Mellonox OFED - 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=Linux%3A_Memory_Limits_on_Mellonox_OFED"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Linux:_Memory_Limits_on_Mellonox_OFED&amp;action=history"/>
	<updated>2026-05-04T22:53:33Z</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=Linux:_Memory_Limits_on_Mellonox_OFED&amp;diff=2850&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;== The Problem==  By default OFED only allows a small amount of memory to be used.  This can result in warnings when running MPI programs  &lt;syntaxhighlight&gt; &gt;&gt;&gt;&gt; WARNING: It appears that...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Linux:_Memory_Limits_on_Mellonox_OFED&amp;diff=2850&amp;oldid=prev"/>
		<updated>2013-07-16T09:09:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== The Problem==  By default OFED only allows a small amount of memory to be used.  This can result in warnings when running MPI programs  &amp;lt;syntaxhighlight&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; WARNING: It appears that...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== The Problem==&lt;br /&gt;
&lt;br /&gt;
By default OFED only allows a small amount of memory to be used.  This can result in warnings when running MPI programs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; WARNING: It appears that your OpenFabrics subsystem is configured to only allow registering part of your physical memory.  This can cause MPI jobs to run with erratic performance, hang, and/or crash.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; This may be caused by your OpenFabrics vendor limiting the amount of physical memory that can be registered.  You should investigate the relevant Linux kernel module parameters that control how much physical memory can be registered, and increase them to allow registering all physical memory on your machine.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; See this Open MPI FAQ item for more information on these Linux &lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; kernel module&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; parameters:&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; http://www.open-mpi.org/faq/?category=openfabrics#ib-locked-pages&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;        Local host:              compute022&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;        Registerable memory:     4096 MiB&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;        Total memory:            65503 MiB&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Your MPI job will continue, but may be behave poorly and/or hang.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; -------------------------------------------------------------------&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==The Solution==&lt;br /&gt;
The solution is to change the parameters as shown in this FAQ:&lt;br /&gt;
&lt;br /&gt;
http://www.open-mpi.org/faq/?category=openfabrics#ib-low-reg-mem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To change the mlx4_core parameters modify /etc/modprobe.d/mlx4_en.conf:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
options mlx4_core pfctx=0 pfcrx=0 log_mtts_per_seg=5&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>