<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>Stephen,<br>I cheked my old anottations. In that time I used :<br>grads -m 1600000 -lc 'run <somescript.gs>'<br><br>because my problem occured during the "display" command. That is, the number is really in Mb, not in Gb.<br><br>My guess, now, is that your problem is a limit in the Windows memory configuration, not a Grads buffer limitation, so that the -m option will not work.<br><br>However, now I remember that, in LINUX, we used to SET a Environmetal Variable to allocate more than 2 GB memory in the .bashrc file. Unfortunatelly, I don't kow how to do it in Windows. Maybe someone else in the gradslist could help with this question: how to amplify the available memory for running programs in Windows?<br><br>Thanks,<br>Ricardo <br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"Stephen McMillan" <smcmillan@planalytics.com><br><b>Para: </b>"GrADS Users Forum" <gradsusr@gradsusr.org><br><b>Enviadas: </b>Sexta-feira, 8 de Agosto de 2014 14:27:28<br><b>Assunto: </b>Re: [gradsusr] Unable to allocate memory error<br><br><div dir="ltr">Mark,<div>According to the documentation (<a href="http://www.iges.org/grads/gadoc/gradcomdgrads.html" target="_blank">http://www.iges.org/grads/gadoc/gradcomdgrads.html</a>), the -m option is supplied at launch, for example, grads -m NNN.</div>
<div>Stephen</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 1:22 PM, Mark Sponsler <span dir="ltr"><<a href="mailto:msponsler@comcast.net" target="_blank">msponsler@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I've have the same question. How or where in grads does one actually invoke the -m option when grads runs on MS Windows? <br>
<br>
<br><br><div class="gmail_quote"><div class="">On August 8, 2014 9:42:38 AM PDT, Ricardo Hallak <<a href="mailto:ricardo.hallak@iag.usp.br" target="_blank">ricardo.hallak@iag.usp.br</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div class="">Hi Stephen,<br>I remember i've already used the option -m with a very large additional memory allocation for a high resolution (x,y) field, and it solved the problem.<br>
Your try was -m 3000000 (3 Mb) or 3 Gb (3.000.000.000)?<br><br>Regards,<br>Ricardo<br><br><hr></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt">
<div class=""><b>De: </b>"Stephen McMillan" <<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>><br><b>Para: </b>"GrADS Users Forum" <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
<b>Enviadas: </b>Sexta-feira, 8 de Agosto de 2014 12:17:08<br><b>Assunto: </b>[gradsusr] Unable to allocate memory error<br><br></div><div dir="ltr">I've been running a script that uses high resolution data, but after a point it generates an "unable!
to
allocate memory" error and stackdump, if I use too large an x-y domain. Looking at my Task Manager, this appears to happen when it hits a 2GB memory ceiling for the GrADS process. Total laptop memory used at point of stackdump is under 5GB (I have 8GB RAM on my Windows7 laptop).<div class="">
<div>
<br></div><div>Is there any way within GrADS to increase the 2GB limit? I tried using the -m switch (-m 3000000, for example) when launching GrADS prior to running my script. By the way, the script works fine as long as it doesn't hit the 2GB ceiling. Is there something else I can do to overcome this? I've already iincluded code to undefine previously-defined variables as soon as no longer needed.</div>
<div><br></div><div>I'm using version 2.0.1.oga.1</div><div><br></div><div>Thanks</div><div>Stephen McMillan</div></div></div><div class="">
<pre>***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************
<br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</pre></div></blockquote><br></div><div class=""><p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000"></p><pre><hr><br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></pre></div></blockquote></div><br>
Thanks,<br>
Mark<br>
<br>
Sent from my 4G LTE Samsung Galaxy Note</div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<pre>***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************
<br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></pre></blockquote><br></div></body></html>