<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="">Hi,<div class=""><br class=""></div><div class="">this is the trade-off of simulating real-code (NFD and ndn-cxx). High simulation fidelity comes at the cost of higher memory consumption.</div><div class=""><br class=""></div><div class="">We have extensively discussed our design choices and trade-offs, and we have evaluated various ndnSIM versions in our recently published paper:</div><div class=""><br class=""></div><div class=""><a href="https://ccronline.sigcomm.org/wp-content/uploads/2017/08/sigcomm-ccr-final112-full-letter.pdf" class="">https://ccronline.sigcomm.org/wp-content/uploads/2017/08/sigcomm-ccr-final112-full-letter.pdf</a></div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">To get a better estimation of the physical memory consumption, I would suggest that you use this API:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/mem-usage.hpp" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/mem-usage.hpp</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Nov 7, 2017, at 5:18 AM, 呂建德 <<a href="mailto:v0918732669@gmail.com" class="">v0918732669@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div dir="auto" class="">Dear ndnsim developers & users</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">I try to run a scenario with ndnsim 2.2</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">There are 20 routers, 16 consumers, and 2 producers. </div></div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Each consumer receives 90000 data packets, each router follows lru,fifo cache algorithm.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Then, it happened thrashing.</div><div dir="auto" class=""><a href="https://imgur.com/gallery/U5ah5" class="">https://imgur.com/gallery/U5ah5</a><br class=""></div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Does anyone know how to reduce the usage of memory? </div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Thank you!</div></div></blockquote></div><br class=""></div></body></html>