<div dir="ltr"><div>Hi Soma, Rick, list</div><div><br></div><div>I don't know if this applies to NCL, but in the past I had trouble running Fortran and C programs</div><div>when either the stacksize or the max number of open files was too small, as it seems to be <br></div><div>in the case of Soma's computer.</div><div><br></div><div>Actually, I never saw a Linux box with the max number of open files less than 1024 (I would suggest 4x this or more).</div><div>The stacksize also seems too small (~2MB), why not make it a more sizeable fraction of the total memory in your computer?</div><div>If NCL passes arrays to subroutines/functions through the stack (not the heap), a small stacksize may be the limiting factor.</div><div>[Rick: Does NCL use the stack to pass arrays to subroutines?]<br></div><div><br></div><div>Anyway, those numbers appear to be low.</div><div>Is this a virtual machine, perhaps?<br></div><div><br></div><div>Error messages can also be misleading red-herrings, and an error reported as out of memory may be caused by something else sometimes.</div><div><br></div><div>I hope this helps,</div><div>Gus Correa<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 24, 2020 at 8:59 AM Rick Brownrigg via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.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 dir="ltr"><div>So your system is reporting wmMaximumSize as 100MB, which is the default, and should be more than sufficient for the dataset in question. I tried limiting my system to 100MB (I generally have it set to 500MB), and the script ran just fine.</div><div><br></div><div>So I'm not sure what to advise you at this point. You can try to increase the wsMaximumSize, but I'm skeptical that's going to make a difference. You can do that programmatically by placing the following lines at the top of your script:</div><div><br></div><div><b>setvalues</b> NhlGetWorkspaceObjectId() <br> "wsMaximumSize" : 500000000<br> <b>end setvalues</b></div><div><b><br></b></div><div>More commonly, people override the default by setting wsMaximumSize in the so-called ".hluresfile"; see:</div><div><br></div><div> <a href="http://ncl.ucar.edu/Document/Graphics/hlures.shtml" target="_blank">http://ncl.ucar.edu/Document/Graphics/hlures.shtml</a></div><div><br></div><div>Good luck!</div><div>Rick<br></div><div><b></b></div><div><b><br></b></div><div><b><br></b></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 24, 2020 at 1:41 AM Soma Roy <<a href="mailto:somaroy892@gmail.com" target="_blank">somaroy892@gmail.com</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 dir="ltr"><div>Output is coming like below;</div>ncl 0> getvalues NhlGetWorkspaceObjectId()<br>ncl 1> "wsMaximumSize" : maxMem<br>ncl 2> end getvalues<br>ncl 3> print(maxMem)<br><br><br>Variable: maxMem<br>Type: long<br>Total Size: 4 bytes<br> 1 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [1]<br>Coordinates:<br>(0) 100000000<br><br><div><b>And result for ulimit -a is below</b>;</div><div><br></div><div>$ ulimit -a<br>core file size (blocks, -c) unlimited<br>data seg size (kbytes, -d) unlimited<br>file size (blocks, -f) unlimited<br>open files (-n) 256<br>pipe size (512 bytes, -p) 8<br>stack size (kbytes, -s) 2036<br>cpu time (seconds, -t) unlimited<br>max user processes (-u) 256<br>virtual memory (kbytes, -v) unlimited<br></div><div><br></div><div>Soma</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 24, 2020 at 8:28 AM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.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 dir="ltr"><div>Hi,</div><div><br></div><div>The script and that dataset work fine on my system, and barely make a mark in the amount of memory consumed. That message is coming from NCL itself, not from your system. Please try running this little scriptlet from within NCL, and report back to the group:</div><div><br></div><div>getvalues NhlGetWorkspaceObjectId()</div><div> "wsMaximumSize" : maxMem</div><div>end getvalues</div><div>print(maxMem)</div><div><br></div><div>Also, please report the results of "ulimit -a", as Gus advised.</div><div><br></div><div>Finally, do you have a file named ".hluresfile" (note the leading period) in your home directory? If so, is there a line that begins "*wsMaximumSize: xxxxx", and what is the value for xxxxx? Perhaps bump it up to 500000000. <br></div><div><br></div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 22, 2020 at 12:29 PM Soma Roy via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.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 dir="auto">Thank you..<div dir="auto"><br></div><div dir="auto">But I am getting the error " dynamical memory allocation error".</div><div dir="auto"><br></div><div dir="auto">How much disk space is required approximately to plot this data?</div><div dir="auto"><br></div><div dir="auto">Thanks & Regards,</div><div dir="auto">Soma</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 23, 2020, 00:24 Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.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 dir="ltr">Attached<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 22, 2020 at 11:26 AM Soma Roy via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" rel="noreferrer" target="_blank">ncl-talk@ucar.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 dir="auto">Hello,<div dir="auto">I am trying to run the script vegland_1.ncl and for that I required sample input file.</div><div dir="auto"><br></div><div dir="auto">Input file name: <a href="http://IGBPa_1198.map.nc" rel="noreferrer" target="_blank">IGBPa_1198.map.nc</a></div><div dir="auto"><br></div><div dir="auto">Please kindly send me the input file.</div><div dir="auto"><br></div><div dir="auto">Thanking you,</div><div dir="auto">Soma</div><div dir="auto"><br></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" rel="noreferrer" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div></div>