<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Another way to control ROSS’s excessive memory consumption is the max-opt-lookahead option:<div class=""><br class=""></div><div class=""><a href="https://github.com/carothersc/ROSS/commit/53b7fcabcb9b8c015b1f17e3ce1a94298b06920d" class="">https://github.com/carothersc/ROSS/commit/53b7fcabcb9b8c015b1f17e3ce1a94298b06920d</a></div><div class=""><br class=""></div><div class="">I use it often and this helps avoid running out of memory.</div><div class=""><br class=""></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">---</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Nikhil Jain<br class="">Postdoctoral Fellow, Lawrence Livermore National Laboratory<br class=""><a href="mailto:nikhil.jain@acm.org" class="">nikhil.jain@acm.org</a>, <a href="http://nikhil-jain.github.io/" class="">http://nikhil-jain.github.io/</a></div></div></div></div>
</div>

<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 5, 2017, at 13:34, Jian Peng <<a href="mailto:jpeng10@hawk.iit.edu" class="">jpeng10@hawk.iit.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks for the explanation! I'll try it out. <br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Apr 5, 2017 at 11:18 AM, Mubarak, Misbah <span dir="ltr" class=""><<a href="mailto:mmubarak@anl.gov" target="_blank" class="">mmubarak@anl.gov</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap: break-word; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">Hi Jian,</div>
<div class=""><br class="">
</div>
<div class="">The ROSS simulations start up with a certain number of events statically allocated per PE (The message-size parameter in the CODES config files tell ROSS how big an event is in bytes). At some point during the simulation, if the events being processed
 by a PE exceed the number of events that were allocated at the simulation start up, this error is thrown and the simulation terminates.</div>
<div class=""><br class="">
</div>
<div class="">To handle this issue, you could do a —extramem that you already tried. This will allocate an extra number of events per PE. You could try increasing extramem till the point where the event memory is sufficient. However, when this error pops up, it is usually
 better to double check the model behavior I.e. If the model is issuing a reasonable number of events, it isn't running into an infinite loop of event generation or if the workload is reasonable (it could be that the workload is injecting a very large number
 of events in a short amount of time). </div>
<div class=""><br class="">
</div>
<div class="">Also, if you are running in optimistic mode and you are getting too many rollbacks, that could be another reason of the event memory running out. So it will help to run the simulation in sequential mode first and see if the error is still there. </div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Misbah</div>
<div class=""><br class="">
</div>
<span id="m_7902039432484408382OLK_SRC_BODY_SECTION" class="">
<div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class="">
<span style="font-weight:bold" class="">From: </span><<a href="mailto:codes-ross-users-bounces@lists.mcs.anl.gov" target="_blank" class="">codes-ross-users-bounces@<wbr class="">lists.mcs.anl.gov</a>> on behalf of Jian Peng <<a href="mailto:jpeng10@hawk.iit.edu" target="_blank" class="">jpeng10@hawk.iit.edu</a>><br class="">
<span style="font-weight:bold" class="">Date: </span>Wednesday, April 5, 2017 at 12:48 PM<br class="">
<span style="font-weight:bold" class="">To: </span>"<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank" class="">codes-ross-users@lists.mcs.<wbr class="">anl.gov</a>" <<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank" class="">codes-ross-users@lists.mcs.<wbr class="">anl.gov</a>><br class="">
<span style="font-weight:bold" class="">Subject: </span>[codes-ross-users] "No free event buffers" error<br class="">
</div><span class="">
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">Hi,<br class="">
<br class="">
</div>
    I get a "No free event buffers.Try increasing via g_tw_events_per_pe or --extramem" error in tw_event_new when running some not too large scale simulation, say 12840 LPs. I add option "--extramem=8192" and it doesn't help. And there is still 90GB of memory
 left.<br class="">
<br class="">
</div>
    So, any general suggestion of avoiding this error? Thanks.<br class="">
</div>
</div>
</div>
</span></span>
</div>

</blockquote></div><br class=""></div>
_______________________________________________<br class="">codes-ross-users mailing list<br class=""><a href="mailto:codes-ross-users@lists.mcs.anl.gov" class="">codes-ross-users@lists.mcs.anl.gov</a><br class="">https://lists.mcs.anl.gov/mailman/listinfo/codes-ross-users<br class=""></div></blockquote></div><br class=""></div></body></html>