<div dir="ltr">Good to know. Very relevant discussion to my questions. Well, I will work things out by adding some log statements.<div><br>On the same note, how do I measure PIT lookup time?<br><br>Let's say, in pit-entry.cpp following code change makes sense? Or am I looking at the wrong file/wrong logic itself?<br><br><br><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC38" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">bool</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-L39" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC39" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"><span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">Entry::canMatch</span>(<span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">const</span> Interest& interest, <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">size_t</span> nEqualNameComps) <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">const</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-L40" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC40" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">{</td></tr><tr style="box-sizing:border-box"><td id="gmail-L41" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC41" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">  <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">BOOST_ASSERT</span>(m_interest-><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">getName</span>().<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">compare</span>(<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">0</span>, nEqualNameComps,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L42" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC42" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">                                             interest.<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">getName</span>(), <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">0</span>, nEqualNameComps) == <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">0</span>);</td></tr><tr style="box-sizing:border-box"><td id="gmail-L43" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">  </td><td id="gmail-LC43" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">  //declare boolean = result
  // capture time t1</td></tr><tr style="box-sizing:border-box"><td id="gmail-L44" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC44" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">  <font color="#d73a49">result = </font>m_interest-><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">getName</span>().<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">compare</span>(nEqualNameComps, Name::npos,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L45" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC45" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">                                       interest.<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">getName</span>(), nEqualNameComps) == <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">0</span> &&</td></tr><tr style="box-sizing:border-box"><td id="gmail-L46" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC46" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">         m_interest-><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">getSelectors</span>() == interest.<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">getSelectors</span>();</td></tr><tr style="box-sizing:border-box"><td id="gmail-L47" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC47" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">// capture time t2
// calculate diff (this is PIT lookup time)
// return result;  
<span class="gmail-pl-c" style="box-sizing:border-box;color:rgb(106,115,125)"><span class="gmail-pl-c" style="box-sizing:border-box">//</span>/ \todo #3162 match Link field</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-L48" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC48" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">}</td></tr></tbody></table><br><br>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 27, 2017 at 6:03 PM, Ashlesh Gawande (agawande) <span dir="ltr"><<a href="mailto:agawande@memphis.edu" target="_blank">agawande@memphis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-9043458575339098073divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0">nfd-status can give you the number of entries, something like:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>           nFibEntries=4<br>
           nPitEntries=7<br>
</div>
<div><br>
</div>
<div>But there is no other logging for PIT or FIB.</div>
<div>Some discussion here:</div>
<div><a href="http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-August/001969.html" class="m_-9043458575339098073OWAAutoLink" id="m_-9043458575339098073LPlnk614069" target="_blank">http://www.lists.cs.ucla.edu/<wbr>pipermail/nfd-dev/2016-August/<wbr>001969.html</a><br>
</div>
<div><br>
</div>
<div>Ashlesh<br>
</div>
<p></p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-9043458575339098073divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mini-NDN <<a href="mailto:mini-ndn-bounces@lists.cs.ucla.edu" target="_blank">mini-ndn-bounces@lists.cs.<wbr>ucla.edu</a>> on behalf of Aman Maldar <<a href="mailto:amanmaldar@gmail.com" target="_blank">amanmaldar@gmail.com</a>><br>
<b>Sent:</b> Monday, November 27, 2017 4:55:20 PM<br>
<b>To:</b> <a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank">mini-ndn@lists.cs.ucla.edu</a><br>
<b>Subject:</b> [Mini-NDN] Logging module for PIT and FIB</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">I read pretty interesting discussion on NFD mail archive regarding measuring/improving performance for PIT and FIB.
<div><br>
</div>
<div>I am trying to test performance of PIT, FIB in terms of time response for variety of interests and large number of entries in PIT and FIB.</div>
<div>I decided to print hit/miss scenario log for both. I just want to double check if NFD already have logging module available for this?</div>
<div><br>
</div>
<div>Are below 2 files that I can add my logs to, to see them in execution? Correct me.These 2 files doesn't have any logging module added.</div>
<div><br>
</div>
<div>
<div><a href="https://github.com/named-data/NFD/blob/master/daemon/table/pit-entry.cpp" target="_blank">https://github.com/named-data/<wbr>NFD/blob/master/daemon/table/<wbr>pit-entry.cpp</a></div>
<div><br>
</div>
<div><a href="https://github.com/named-data/NFD/blob/master/daemon/table/fib-entry.cpp" target="_blank">https://github.com/named-data/<wbr>NFD/blob/master/daemon/table/<wbr>fib-entry.cpp</a></div>
<div> </div>
<div><br>
</div>
<div>Which nfd modules should be used to during tracing? <br>
<br>
</div>
<div>
<div>Available logging modules: </div>
<div>AccessStrategy, AsfMeasurements, AsfStrategy, AutoPrefixPropagator, BestRouteStrategy2, ClientControlStrategy, CommandAuthenticator, ContentStore, CsPolicy, DeadNonceList, EthernetFactory, EthernetTransport,FaceManager , FaceSystem .FaceTable ,FibManager
 ,FibUpdater Forwarder, GeneralConfigSection, GenericLinkService, InternalClientTransport, InternalForwarderTransport, LinkService</div>
<div>LoggerFactory LpFragmenter LpReassembler MulticastEthernetTransport MulticastStrategy MulticastUdpTransport NFD NameTree NameTreeHashtable  NameTreeIterator  NetworkInterfaceInfo Nfd</div>
<div>NfdRibReadvertiseDestination PrivilegeHelper ProcessNackTraits  Readvertise ReadvertiseDestination Rib RibEntry RibManager  Strategy  StrategyChoice StrategyChoiceManager TcpChannel</div>
<div>TcpFactory TcpTransport Transport UdpChannel UdpFactory UnicastEthernetTransport UnicastUdpTransport UnixStreamChannel UnixStreamFactory UnixStreamTransport</div>
</div>
<div><br>
</div>
<div>Thanks in advance.<br>
<br>
</div>
-- <br>
<div class="m_-9043458575339098073x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br>
</i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br>
<b>University of Massachusetts, Lowell</b><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br></i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br><b>University of Massachusetts, Lowell</b><br></div></div></div></div>
</div>