<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 11, 2015, at 11:07 AM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" class="">hishamfarahat@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Hi, <br class="">
My program is in C++. <br class="">
Is there another method to run my program?  Is it more efficient? </p></div></blockquote><div>It is not question of efficiency.  Either way it would be the same (the other way is directly running scenario binary from ./build folder).  Running with ./waf --run just has overhead in the beginning of the simulation, as it checks that the latest code is compiled.  It has no effect on later simulation.</div><div><br class=""></div><div>---</div><div>Alex</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class="">
<div class="gmail_quote">On Jun 11, 2015 2:02 PM, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu" class="">alexander.afanasyev@ucla.edu</a>> wrote:<br type="attribution" 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" class="">Hi Hisham,<div class=""><br class=""></div><div class="">Sorry for the delayed reply.  Is your simulation scenario written in c++ or python?  Also, how do you run the simulation?  If with ./waf --run, then the python you see is probably related to this part.</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 3, 2015, at 8:28 PM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" target="_blank" class="">hishamfarahat@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" style="font-family:Menlo-Regular;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">One more thing.<div class="">Why python2.7 is taking ~20%?</div><div class=""><br class=""></div></div><div class="gmail_extra" style="font-family:Menlo-Regular;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class=""><div class="gmail_quote">On Wed, Jun 3, 2015 at 10:28 PM, Hisham Farahat<span class=""> </span><span dir="ltr" class=""><<a href="mailto:hishamfarahat@gmail.com" target="_blank" class="">hishamfarahat@gmail.com</a>></span><span class=""> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class="">Hi,<div class="">Yeah, I run my code in optimized mode. </div></div><div class="gmail_extra"><div class=""><div class=""><br class=""><div class="gmail_quote">On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev<span class=""> </span><span dir="ltr" class=""><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank" class="">alexander.afanasyev@ucla.edu</a>></span><span class=""> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Hisham,<br class=""><br class="">I hope you’re compiling and running code in optimized mode (./waf configure -d optimized).<br class=""><br class="">In optimized mode, ~Ptr() should just decrement a counter, in debug mode there could be more complex things happening, though I’m not sure why would it take 50% of time.<br class=""><br class="">—<br class=""><span class=""><font color="#888888" class="">Alex<br class=""></font></span><div class=""><div class=""><br class="">> On May 2, 2015, at 6:59 PM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" target="_blank" class="">hishamfarahat@gmail.com</a>> wrote:<br class="">><br class="">> Hi,<br class="">> I'm trying to profile ndnSIM 1.0, because My simulation scenarios are taking too long to finish. This was the results:<br class="">> CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated)<br class="">> Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000<br class="">> samples  %        app name                 symbol name<br class="">> 610808   49.4017  ndn         ns3::Ptr<ns3::ndn::Face>::~Ptr()<br class="">> 268401   21.7081  python2.7                /usr/bin/python2.7<br class="">> 107633    8.7053  ndn        ns3::Ptr<ns3::Packet>::~Ptr()<br class="">> 76617     6.1967  ndn         ns3::Ptr<ns3::Packet const>::~Ptr()<br class="">> 23462     1.8976  ndn         ns3::Ptr<ns3::ndn::Interest const>::~Ptr()<br class="">> .....<br class="">><br class="">> is this normal? 50% on ~Ptr() ?<br class="">> Am i doing something wrong?<br class="">><br class="">> Regards,<br class=""><br class=""></div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div></div></div><span class=""><font color="#888888" class="">--<span class=""> </span><br class=""><div class="">Hisham Farahat</div></font></span></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class=""> </span><br class=""><div class="">Hisham Farahat</div></div></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></body></html>