<div dir="ltr"><div dir="ltr"><div>Hi Junxiao, </div><div><br></div><div>Thank you for your reply, it is very helpful. I will definitely try the CPU and parallelize solutions in my next step. </div><div><br></div><div>I’m still curious about how come ConsumerZipf increases disproportionally the execution time as the number of consumers increases, while ConsumerCbr remains almost constant.</div><div><br></div>Once again, thank you for sharing! </div><div dir="ltr"><br></div><div>Best regards, </div><div dir="ltr">Stéfani Pires<br><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em seg., 29 de jun. de 2020 às 12:32, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div dir="auto">Hi Stéfani</div></div><div dir="auto"><br></div><div dir="auto">It is normal for a simulation to take much longer wall clock time than simulated time. ns-3 needs to simulate many nodes in one CPU core, so it naturally takes a long time.</div><div dir="auto">While ns-3 supports using multiple CPU cores via MPI, it’s limited to point to point links.</div><div dir="auto"><br></div><div dir="auto">I’d advice against setting a negative nice value. It’ll lead to unstable system overall. You can instead use CPU isolation (cpuset), if your system has other usages. Also, disable HyperThreading will improve single core performance.</div><div dir="auto"><br></div><div dir="auto">You eventually will need to simulate the same scenario with many different parameters. Look at most publications involving ndnSIM, you’ll notice the evaluation has plots whose X axis is some kind of parameter such as CS capacity or link delay. This is your opportunity to speed up the simulations. </div><div dir="auto"><br></div><div dir="auto"><div><a href="https://yoursunny.com/t/2016/parallelize/" target="_blank">https://yoursunny.com/t/2016/parallelize/</a></div></div><div dir="auto">I have this script that allows you to run as many simulations as you have CPU cores. Suppose your X axis has 16 parameters, you can complete all the stimulations in 10 hours on a 16-core machine, instead of 160 hours.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 29, 2020 at 10:18 Stéfani Pires via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><p style="text-align:center"><font style="color:rgb(255,0,0)"><strong>External Email</strong><br></font></p><div dir="ltr"><div dir="ltr"><div><div style="color:rgb(0,0,0)">Hello everyone,</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">I’m having some performance issues in a project using ndnSIM, and I am investigating and having difficulty to understand the scalability of the simulator, in particular of the application <i>ConsumerZipfMandelbrot</i>. </div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">I’m running pure ndnSIM2.8 in a dedicated machine with the optimized mode (./waf configure -d optimized). I also explicitly configured the priority of the process with the linux ‘nice’ command, like this: nohup nice -20 ../waf —run ’simple_test —simTime=100’ &. </div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">I'm showing the results of a simple scenario, the one provided at the website (ndn-simple.cpp, with 1 router, 1 producer), in which I modified the type and number of consumers, CS size, and the simulation time (simTime). Sending the base file as an attachment.</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">In the following tables, I present the execution time (in hours) of some of the variations I tested. Those are not deterministic times, and they naturally vary when executed again, but I believe they can illustrate my question in this email.</div><div style="color:rgb(0,0,0)">> Is that the expected behavior in terms of increase of the execution time, when the number of <i>consumersZipf</i> increases? </div><div style="color:rgb(0,0,0)">> Is my scenario configured correctly? </div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">In my final project, I will need to configure even higher simulation times, with more nodes/ConsumersZipf, but it is being prohibitive. I intend to configure wireless links, instead of point-to-point.</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">_______simTime = 50.000 s ______</div><div style="color:rgb(0,0,0)">n  |  ConsumerCbr | ConsumerZipf</div><div style="color:rgb(0,0,0)">1  |      <span style="font-size:10pt;font-family:Arial">2.365 h         |      </span><span style="font-size:10pt;font-family:Arial">2.218 h</span></div><div style="color:rgb(0,0,0)">2  |      <span style="font-size:10pt;font-family:Arial">1.832 h</span><span style="font-size:10pt;font-family:Arial"> </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial">  </span><span style="font-size:10pt;font-family:Arial">  | </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial"> </span><span style="font-size:10pt;font-family:Arial">4.618 h</span></div><div style="color:rgb(0,0,0)">3  |      <span style="font-size:10pt;font-family:Arial">1.849</span><span style="font-size:10pt;font-family:Arial"> h</span><span style="font-size:10pt;font-family:Arial"> </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial">  </span><span style="font-size:10pt;font-family:Arial">  | </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial"> </span><span style="font-size:10pt;font-family:Arial">7.431 h</span></div><div style="color:rgb(0,0,0)">4  |      <span style="font-size:10pt;font-family:Arial">1.790 h </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial">  </span><span style="font-size:10pt;font-family:Arial">  | </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial"> </span><span style="font-size:10pt;font-family:Arial">10.391 h</span></div><div style="color:rgb(0,0,0)"><span style="font-size:10pt"><br></span></div><div style="color:rgb(0,0,0)">_______simTime = 100.000 s ______</div><div style="color:rgb(0,0,0)">n  |  ConsumerCbr | ConsumerZipf</div><div style="color:rgb(0,0,0)">1  |      9.960<span style="font-size:10pt;font-family:Arial"> h </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial">  </span><span style="font-size:10pt;font-family:Arial">| </span><span style="font-size:10pt;font-family:Arial">    </span><span style="font-size:10pt;font-family:Arial"> 9.751 h</span></div><div style="color:rgb(0,0,0)"><span style="font-size:10pt;font-family:Arial">2  |       7.448 h       |      20.007 h</span></div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">Can anyone help me to understand this behavior? I really appreciate your considerations. </div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">Best regards ,</div></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Stéfani Pires</div><div><br></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div></div>
</blockquote></div>