[ndnSIM] ndnSIM Performance

Hisham Farahat hishamfarahat at gmail.com
Thu Jun 11 11:07:23 PDT 2015


Hi,
My program is in C++.
Is there another method to run my program?  Is it more efficient?
On Jun 11, 2015 2:02 PM, "Alex Afanasyev" <alexander.afanasyev at ucla.edu>
wrote:

> Hi Hisham,
>
> 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.
>
> ---
> Alex
>
> On Jun 3, 2015, at 8:28 PM, Hisham Farahat <hishamfarahat at gmail.com>
> wrote:
>
> One more thing.
> Why python2.7 is taking ~20%?
>
>
> On Wed, Jun 3, 2015 at 10:28 PM, Hisham Farahat <hishamfarahat at gmail.com>
> wrote:
>
>> Hi,
>> Yeah, I run my code in optimized mode.
>>
>> On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev <
>> alexander.afanasyev at ucla.edu> wrote:
>>
>>> Hi Hisham,
>>>
>>> I hope you’re compiling and running code in optimized mode (./waf
>>> configure -d optimized).
>>>
>>> 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.
>>>
>>>>>> Alex
>>>
>>> > On May 2, 2015, at 6:59 PM, Hisham Farahat <hishamfarahat at gmail.com>
>>> wrote:
>>> >
>>> > Hi,
>>> > I'm trying to profile ndnSIM 1.0, because My simulation scenarios are
>>> taking too long to finish. This was the results:
>>> > CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated)
>>> > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a
>>> unit mask of 0x00 (No unit mask) count 100000
>>> > samples  %        app name                 symbol name
>>> > 610808   49.4017  ndn         ns3::Ptr<ns3::ndn::Face>::~Ptr()
>>> > 268401   21.7081  python2.7                /usr/bin/python2.7
>>> > 107633    8.7053  ndn        ns3::Ptr<ns3::Packet>::~Ptr()
>>> > 76617     6.1967  ndn         ns3::Ptr<ns3::Packet const>::~Ptr()
>>> > 23462     1.8976  ndn         ns3::Ptr<ns3::ndn::Interest
>>> const>::~Ptr()
>>> > .....
>>> >
>>> > is this normal? 50% on ~Ptr() ?
>>> > Am i doing something wrong?
>>> >
>>> > Regards,
>>>
>>>
>>
>>
>> --
>> Hisham Farahat
>>
>
>
>
> --
> Hisham Farahat
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150611/474dd3c6/attachment.html>


More information about the ndnSIM mailing list