From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1A54841F5F for ; Tue, 29 Aug 2023 16:56:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E366A40293; Tue, 29 Aug 2023 16:56:07 +0200 (CEST) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) by mails.dpdk.org (Postfix) with ESMTP id 64C1440279 for ; Tue, 29 Aug 2023 16:56:06 +0200 (CEST) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-d7801f1f608so4238593276.0 for ; Tue, 29 Aug 2023 07:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693320965; x=1693925765; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=xKJFIuY7MJq9af6DL7NfjeSH4CpCl7EL1zboX4DqNuU=; b=Dw/5UAYzaaTw5GA3y924lCeG5v5LxS/SLzLu8XVLEJtZOc+HQVP+dfOqb6MJtzmuQy cANJWIdCwsWzTVahF6mrOEJ7d4gpAyII70CdRXQOVUhHfPURK6Abh2vqQ13jSX9KTxH5 JNOvwA8uux+4dwc/Lt7P3AFNHNEd35hgNs9TzYUVpDkfxdcW6hzdVKf9RaPk3K7ZhYAT oDYZPoFM8sI4pCEfuaKc9/wVcV07fZhIJOci41+mJZZ85xrbIJ8Pka2Oo6b4LCtBve1T IM8f2bqpjtyPMLEGuEAuqR3tEgt37WcW4ROkHKeJLG+CoeZPOH7ljnE1ZS7JkOV7gnQs cnjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693320965; x=1693925765; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xKJFIuY7MJq9af6DL7NfjeSH4CpCl7EL1zboX4DqNuU=; b=Eh9Y261uCgDaWKFGAdVrFlOU12qKWQv0NtTNGabbKulysVr1o99Cd3weL1vKalJ5g4 nN71ja4O+89IIUtGmO8XtmIt01lqZpsMWndTIuLuoyi3LdhFatmH/NxTtr7iRLNFt6YZ oPCjvdeboGveeP+cL6wC4Nrmh5C9t56XPz48444x3LFjpiLSevtgt6FQ4HN+MFSpVomo goQUx92sFOr0qvzbgh/+1dh7Nlv31YwDWpsbYDq93YujW68uWrXNy7lghOySPhyLTwFk ELIq8pSFP/2nzf4HNAh8XiPqbs8oKUDw4yPsVIEjXO+YaI0xpiPhSyaLQYI09pJ705Z0 KIDQ== X-Gm-Message-State: AOJu0Yy2JLn6heVlSk8X6q7twNtWVYpsBoGR82huJ3uSdXZgUbzkSzza cBKzunsHdb8GiE/DzatVV1kX2Ll/93uYOsBLxSMJJJCcnvHqHg== X-Google-Smtp-Source: AGHT+IE0X59hlfzlyU++TkyNIfMxEFNqwWSr7pf5dzArwjxE8uNIO7dH7BUpSC9AjDXiHcy7/34G9iZyO22G0Ipdq9M= X-Received: by 2002:a0d:d5d4:0:b0:586:9d8e:8322 with SMTP id x203-20020a0dd5d4000000b005869d8e8322mr32984851ywd.2.1693320965384; Tue, 29 Aug 2023 07:56:05 -0700 (PDT) MIME-Version: 1.0 From: Hari Haran Date: Tue, 29 Aug 2023 20:25:54 +0530 Message-ID: Subject: rte_rdtsc() - what is the performance impact of using rte_rdtsc() time To: users@dpdk.org Content-Type: multipart/alternative; boundary="000000000000a1f1750604110240" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000a1f1750604110240 Content-Type: text/plain; charset="UTF-8" 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 --000000000000a1f1750604110240 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi All,

Subject:=C2=A0rte_rdtsc() - what is the performance impact of using rte_rdtsc() time under lcore thre= ad while(1)

Requirement:

  1. Store the packet received timestamp - based on it packets will be removed from buffer if it exce= eds the threshold timer of buffer
  2. Two threads are available, One is lcore(dedicated core) and another is pthread(not a dedicated co= re. In pthread, have to get the timestamp of last received packet timestam= p


Query:

  1. For every packet reception in lcore thread under while(1), will get the packet received timestamp using=C2=A0 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 ti= me.=C2=A0

Thanks in advance.

Regards,=
Harih= aran
--000000000000a1f1750604110240--