<div dir="ltr"><div>Hi Knox</div><div> ah these problems are dear to my heart :-)    Setting the memory to unlimited is the correct approach (it should be the default on ubuntu), so I'm surprised to hear it's only using 670MB.  If so, it will  be trrashing and perhaps using the swap (but there is enough memory....).   When you use top (or install htop,it sometimes is more helpful debugging these types of problems),  look at how big VIRT and RES are.   Do you see the task "swapd0" appear. I hope not.</div><div><br></div><div>In worst case, is this a problem that can be easily run by me. I have a machine here that has 512GB memory</div><div><br></div><div>- peter</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 17, 2021 at 2:04 PM Knox Long <<a href="mailto:long@stsci.edu">long@stsci.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div style="overflow-wrap: break-word;" lang="EN-US">
<div class="gmail-m_-8579325152344691079WordSection1">
<p class="MsoNormal">I am having a problem getting a program that I have which requires a large amount of memory to run at the speed I think it should a recently installed version of ubuntu.   The same program compiled in exactly the same way under Cygwin runs
 more than 5x faster on the same machine (which has 128 GB of ram).  This program requires a lot of memory due to the fact that it has a set of very large structures (that describe the physical conditions at different points in the wind of quasar).  The result
 is the program requires several GB of memory.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I suspect the reason that the program runs more slowly using Ubuntu is that the amount of physical memory being used is too small.  Even though I have succeeded in using ulimit to set the max locked memory to unlimited, it does not change
 the fact that top says only 670 MB of resident is being used, while the virtual memory is more than a GB.  (Unfortunately, I cannot check in Cygwin that this is the problem, because on Cygwin the top command produces quite different outputs. 
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If anyone has any thoughts about this I would appreciate it.  (Note that I am not an expert in linux or especially ubuntu).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Knox<u></u><u></u></p>
</div>
</div>

-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</blockquote></div>