DPDK usage discussions
 help / color / mirror / Atom feed
From: Hari Haran <info2hariharan@gmail.com>
To: users@dpdk.org
Subject: rte_rdtsc() - what is the performance impact of using rte_rdtsc() time
Date: Tue, 29 Aug 2023 20:25:54 +0530	[thread overview]
Message-ID: <CAPbxCtrRqXHU772U7eZFoDcKL2pRiE39vgBifWYC96kC04MhiQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

Hi All,

Subject: rte_rdtsc() - what is the performance impact of using rte_rdtsc()
time under lcore thread while(1)

Requirement:

   1. Store the packet received timestamp - based on it packets will be
   removed from buffer if it exceeds the threshold timer of buffer
   2. 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


Query:

   1. 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?
   2. 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.


Thanks in advance.

Regards,
Hariharan

[-- Attachment #2: Type: text/html, Size: 2474 bytes --]

             reply	other threads:[~2023-08-29 14:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29 14:55 Hari Haran [this message]
2023-09-05 23:29 ` Stephen Hemminger
2023-10-03 10:19   ` Hari Haran
2023-10-03 17:17     ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPbxCtrRqXHU772U7eZFoDcKL2pRiE39vgBifWYC96kC04MhiQ@mail.gmail.com \
    --to=info2hariharan@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).