Hi Alex and everyone,<div><br></div><div>Sorry for the late reply.</div><div><br></div><div><div>In my simulation, there are 100 nodes.</div><div>The capacity of the CS of each node is 5,000.</div><div>There are 1,000,000 different content objects.</div>
</div><div><br></div><div>According to your guide, the required memory should be 702 bytes*5000*100 = 351 MB.</div><div>I don't know why it takes more than 8 GB.</div><div>In addition, the required memory increases as a function of the simulation time.</div>
<div><br></div><div>I have tried your suggested example.</div><div>I had no luck, the column of MemUsage consistently shows "-9.53674e-07."</div><div>I will try to see what I can do.</div><div><br></div><div>Oh, I have a suggestion for additional function in ndnSIM.</div>
<div>In the current version of ndnSIM, I understand that every content is cached in every node it traverses.</div><div>It may be good if we can randomly cache a content object at a certain probability for each node.</div>
<div>Please feel free to let me know what you think.</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Regards,</div><div>Saran Tarnoi</div><div><br></div><div><br></div><div><br><div class="gmail_quote">
2013/2/20 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Hi Saran,</div><div><br></div><div>How many nodes are in your simulation?  I just checked memory overhead for different replacement policies and they are about the same (with Lfu taking a little bit more).    As for numbers, one CS entry in the current implementation corresponds to about 708 bytes memory footprint with Lfu policy (with freshness) and about 650 bytes with Lru policy.  (I haven't yet had time to investigate why so much, as I was expecting about 10 times smaller footprint.)   </div>
<div><br></div><div>You can get commit 41684ab625b165, which gives an example of how to evaluate memory footprint (ndn-simple-with-cs-lfu.cc)</div><div><br></div><div>---</div><div>Alex</div><div><div class="h5"><br><div>
<div>On Feb 19, 2013, at 5:02 AM, Saran Tarnoi <<a href="mailto:sarantarnoi@gmail.com" target="_blank">sarantarnoi@gmail.com</a>> wrote:</div><br><blockquote type="cite">To Alex and everyone,<div><br></div><div>I conducted a simulation to see how <b>Lfu</b> performs.</div>
<div>Content number is set as "100,000."</div><div>It appeared that the simulator consumed memory more than that my laptop can provide (RAM 4GB), then my laptop stopped working. </div>
<div>The problem did not appear when I used the other replacement policies (Lru, Random) for Content Store.</div><div><div>Would you kindly give me some ideas?</div><div><br></div><div>Thanks,</div><div>Saran</div></div>
</blockquote></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<div>Saran Tarnoi</div><div>Graduate Student</div><div>Department of Informatics</div><div>The Graduate University for Advanced Studies (Sokendai)</div>
<div>Tokyo, Japan</div><div><a href="http://sarantarnoi.blogspot.jp/2012/11/my-profile.html" target="_blank">http://sarantarnoi.blogspot.jp</a><br></div>
</div>