<div dir="ltr">Hi Junxiao,<div>I executed the following code:<br></div><div><br></div><div> <font face="tahoma, sans-serif"> ndn::StackHelper ndnHelper;<br> ndnHelper.setCsSize(1000);<br> <b>ndnHelper.setPolicy ("nfd::cs::lfu");</b><br> ndnHelper.InstallAll();</font><br></div><div><font face="tahoma, sans-serif"><br></font></div><div>but the following error occurred:<font face="tahoma, sans-serif"><br></font></div><div><br></div><div><div style="text-align:center"><span style="color:rgb(56,118,29)">Waf: Entering directory `/home/asim/ndnSIM/ns-3/build'</span></div><font color="#38761d"><div style="text-align:center">Waf: Leaving directory `/home/asim/ndnSIM/ns-3/build'</div><div style="text-align:center">Build commands will be stored in build/compile_commands.json</div><div style="text-align:center">'build' finished successfully (1.048s)</div></font><font color="#000000"><div style="text-align:center"><b>msg="Cache replacement policy nfd::cs::lfu not found", file=../src/ndnSIM/helper/ndn-stack-helper.cpp, line=168</b></div><b><div style="text-align:center"><b>terminate called without an active exception</b></div></b></font><font color="#ff0000"><div style="text-align:center">Command ['/home/asim/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-tree-tracers-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</div></font><div style="text-align:center">asim@asim-VirtualBox:~/ndnSIM/ns-3$ </div></div><div><br></div><div>How can I solve this problem so I can use LFU cache replacement policy?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 29, 2023 at 7:57 PM Asim ALHIMSYA <<a href="mailto:asim.alhimsya@gmail.com">asim.alhimsya@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Actually, I didn't find LFU in NFD ContentStore. There is only LRU and Priority_Fifo as cache replacement policy in the following directory:<div><i>ndnSIM/ns-3/src/ndnSIM/NFD/daemon/table.</i><div>How can I use LFU, pure FIFO, and Random, please?</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 29, 2023 at 6:46 PM Junxiao Shi <<a href="mailto:shijunxiao@arizona.edu" target="_blank">shijunxiao@arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Hi Asim<div dir="auto"><br></div><div dir="auto">SetOldContentStore feature is removed since ndnSIM 2.8.</div><div dir="auto">Use the NFD ContentStore instead.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao </div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 29, 2023, 11:42 Asim ALHIMSYA via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr">Dear Colleagues,<div>When I run the following line of code:</div><div>ndnHelper.SetOldContentStore("ns3::ndn::cs::Lfu");<br></div><div><br></div><div>I get the following error message:</div><div><br></div><div><div style="text-align:center"><span style="color:rgb(56,118,29)">Waf: Entering directory `/home/asim/ndnSIM/ns-3/build'</span></div><font color="#38761d"><div style="text-align:center">[2826/3276] Compiling src/ndnSIM/examples/ndn-tree-tracers.cpp</div><div style="text-align:center">[3234/3276] Linking build/src/ndnSIM/examples/ns3-dev-ndn-tree-tracers-debug</div><div style="text-align:center">Waf: Leaving directory `/home/asim/ndnSIM/ns-3/build'</div><div style="text-align:center">Build commands will be stored in build/compile_commands.json</div><div style="text-align:center">'build' finished successfully (9.395s)</div></font><b><div style="text-align:center"><b>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::ndn::cs::Lfu not found", file=../src/core/model/type-id.cc, line=828</b></div><div style="text-align:center"><b>terminate called without an active exception</b></div></b><font color="#ff0000"><div style="text-align:center">Command ['/home/asim/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-tree-tracers-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</div></font></div><div><font color="#ff0000"><br></font></div><div><font color="#000000">How can I solve this problem?</font></div><div><font color="#000000">Best regards</font></div><div><font color="#ff0000"><br></font></div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div></div></div>
</blockquote></div>
</blockquote></div>