<div dir="ltr"><br><div>Hi All,</div><div><br></div><div>Subject: <span style="font-family:Calibri;font-size:11pt">rte_rdtsc()
- what is the performance impact of using rte_rdtsc() time under lcore thread
while(1)</span></div><div><span style="font-family:Calibri;font-size:11pt"><br></span></div><div><p style="margin:0in;font-family:Calibri;font-size:11pt">Requirement:</p>

<ol type="1" style="margin-left:0.375in;direction:ltr;unicode-bidi:embed;margin-top:0in;margin-bottom:0in;font-family:Calibri;font-size:11pt">
 <li value="1" style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">Store the packet received
     timestamp - based on it packets will be removed from buffer if it exceeds
     the threshold timer of buffer</span></li>
 <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">Two threads are available,
     One is lcore(dedicated core) and another is pthread(not a dedicated core.
     In pthread, have to get the timestamp of last received packet timestamp</span></li>
</ol>

<p style="margin:0in;font-family:Calibri;font-size:11pt"><br></p>

<p style="margin:0in;font-family:Calibri;font-size:11pt">Query:</p>

<ol type="1" style="margin-left:0.375in;direction:ltr;unicode-bidi:embed;margin-top:0in;margin-bottom:0in;font-family:Calibri;font-size:11pt">
 <li value="1" style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">For every packet reception in
     lcore thread under while(1), will get the packet received timestamp
     using  rte_rdtsc() function. Whether
     usage of rte_rdtsc() function adds more delay in packet processing?</span></li>
 <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">Is there any way to convert
     rte_rdtsc() timestamp value to current system time in pthread()? In
     pthread, the last packet received time needed in the form of system time. </span></li>
</ol><div><font face="Calibri"><span style="font-size:14.6667px"><br></span></font></div></div><div><font face="Calibri"><span style="font-size:14.6667px">Thanks in advance.</span></font></div><div><font face="Calibri"><span style="font-size:14.6667px"><br></span></font></div><div><font face="Calibri"><span style="font-size:14.6667px">Regards,</span></font></div><div><font face="Calibri"><span style="font-size:14.6667px">Hariharan</span></font></div></div>