[ndnSIM] High memory usage

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Tue Nov 7 09:48:29 PST 2017


this is the trade-off of simulating real-code (NFD and ndn-cxx). High simulation fidelity comes at the cost of higher memory consumption.

We have extensively discussed our design choices and trade-offs, and we have evaluated various ndnSIM versions in our recently published paper:

https://ccronline.sigcomm.org/wp-content/uploads/2017/08/sigcomm-ccr-final112-full-letter.pdf <https://ccronline.sigcomm.org/wp-content/uploads/2017/08/sigcomm-ccr-final112-full-letter.pdf>

Also, the memory consumption of your screenshot refers to virtual rather than physical memory. I would suggest that you search for the difference between those 2 types of memory to better understand what they mean.

To get a better estimation of the physical memory consumption, I would suggest that you use this API:

https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/mem-usage.hpp <https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/mem-usage.hpp>


Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department

> On Nov 7, 2017, at 5:18 AM, 呂建德 <v0918732669 at gmail.com> wrote:
> Dear ndnsim developers & users
> I try to run a scenario with ndnsim 2.2
> There are 20 routers, 16 consumers, and 2 producers. 
> Each consumer receives 90000 data packets, each router follows lru,fifo cache algorithm.
> Then, it happened thrashing.
> https://imgur.com/gallery/U5ah5 <https://imgur.com/gallery/U5ah5>
> Does anyone know how to reduce the usage of memory? 
> Thank you!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171107/507647e5/attachment.html>

More information about the ndnSIM mailing list