<div dir="ltr"><div dir="ltr">Hi Aman<div><br></div><div>nfdc cs erase command currently maps to <a href="https://redmine.named-data.net/projects/nfd/wiki/CsMgmt/17">cs/erase</a> command.</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div><span style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">A forwarder MAY impose a non-zero upper bound on<span> </span></span><em style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Count</em><span style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">. If<span> </span></span><em style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Count</em><span style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>in a request exceeds the upper bound (including when it is omitted, i.e. "no limit"), the forwarder acts as if<span> </span></span><em style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Count</em><span style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>was set to the upper bound.</span>

</div></div></blockquote><div dir="ltr"><div>This is why you can only erase 256 entries each time.</div><div><br></div><div><a href="https://redmine.named-data.net/issues/4744">https://redmine.named-data.net/issues/4744</a> is to add a loop within nfdc cs erase command, so that you can erase as many entries as you want without blocking the forwarder.</div><div>You are welcomed to contribute this feature.</div><div><br></div><div>Yours, Junxiao<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 24, 2018 at 11:52 PM, Aman Maldar <span dir="ltr"><<a href="mailto:amanmaldar@gmail.com" target="_blank">amanmaldar@gmail.com</a>></span> wrote:<br><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"><div dir="ltr"><div>Hello All,<br>I am running <br>> nfdc cs erase <prefix_name> count <number><br><br>I see maximum number of entries that are deleted in single command are restricted to 256.<br>I have apprx. 65000 entries in CS and I wanted to delete big chunk at once. I can do this by using a loop, but just want to check if this feature has been built with count = max 256.<br><br>See the steps below<br><br>lenovo@lenovo-VirtualBox:~$ nfdc cs info</div><div>CS information:</div><div>  capacity=65536</div><div>     admit=on</div><div>     serve=on</div><div><b>  nEntries=63708</b></div><div>     nHits=80000</div><div>   nMisses=80134</div><div>lenovo@lenovo-VirtualBox:~$ nfdc cs erase /ndn/d-site count 200              (works well for count = 200)</div><div>cs-erased prefix=/ndn/d-site count=200 has-more=no</div><div>lenovo@lenovo-VirtualBox:~$ nfdc cs erase /ndn/d-site count 400                    (Note - Even if I put 400 as count, only 256 entries are deleted)</div><div>cs-erased prefix=/ndn/d-site count=256 has-more=yes</div><div>lenovo@lenovo-VirtualBox:~$ nfdc cs erase /ndn/d-site count 10000           </div><div>cs-erased prefix=/ndn/d-site count=256 has-more=yes</div><div>lenovo@lenovo-VirtualBox:~$ nfdc cs info</div><div>CS information:</div><div>  capacity=65536</div><div>     admit=on</div><div>     serve=on</div><div>  nEntries=62999</div><div>     nHits=80000</div><div>   nMisses=80146</div><div><br></div><div>Thanks in Advance.<span class="gmail-HOEnZb"><font color="#888888"><br>- Aman</font></span></div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div><div><br></div></font></span></div></div></blockquote></div></div></div></div></div>