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 6007BA0507 for ; Thu, 31 Mar 2022 22:27:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9F12410F3; Thu, 31 Mar 2022 22:27:06 +0200 (CEST) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by mails.dpdk.org (Postfix) with ESMTP id 1D3314014F for ; Thu, 31 Mar 2022 22:27:05 +0200 (CEST) Received: by mail-ej1-f46.google.com with SMTP id bq8so1618425ejb.10 for ; Thu, 31 Mar 2022 13:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PuTxWwp6znqgvDOH6iAVw9gFWXvmr1Gc1LSu1XxGmJU=; b=dRFMRGBH+ws6w2NJylPiQVSQKFTuiWLWVkytXz1DY6rM8s7c4yqSmUcPo03Yp8VSWk G/VemdwYe08lPvMZb0fsMbuM4CQk0bw08UdPf1JI+T8r1+sv3bKfDe9mT4LnHq6Scut6 yAwPXlweGN3q5LGe3yHa+voR+//r2ZMs1n1fWTUCr94bZumgXIhUqOYBRiY0BwxKaTGb b3MoK8dGQ1jz4aHWnPgfZlCjStuAfhz+ZGhGq6RH7JHhGL+xhyw7xZO4DrLIhjKmALWK Pjc/mJAPdNB4SNvO5xbIzbsZ62Zng7ljZPko3JjZU6YK3x9ZFr/VJGg3iECObCWbQN9H 8u/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PuTxWwp6znqgvDOH6iAVw9gFWXvmr1Gc1LSu1XxGmJU=; b=IvyUxGVy/12YRYPFaOgR+GOhBPteyWXxdLIXi4es1zfkqFWtmC0UFT0fINAr0v3JjE pKx8a1DyvUE2kGsqnBYCjVgqaJy2/hKkflksqVo6jHSBsrSS6wc7CD0GGpKOl5jGNuHH xhosuMuyYv8LEBRyaX+8hzw2ZWN2ADaC95j0oHNOw4hCnwwXyn021Ng3bs+qgHxwXJgs USIS+oxDK+tTcpoUyNxYw1QviVPAeYGeUu+skQ5XAZWvxv5qbBdmchwD+D50h72Bb+nx Z5+gFUUMcrHG/MiaeP5pHLAB07pAxDuLzZlJcfpANXo3IvJYsCwp041PW0J2l5q4vtAj 8uBA== X-Gm-Message-State: AOAM533b+hJ2bv6u3+aM2NjNLeM4suOQcOvA7D+LxxWa29c2zizFRCXT irKIaIp6UhlTe9gTjkKSnBcb8DaqIJloF+79Mjc= X-Google-Smtp-Source: ABdhPJwHvD3CKywJ97GpkKUBD5V7Xhf2g+YHynRZ1aWqC9PeIuA9eCISoP+0Ccd9CCIWc7axdjKJSr09Lu7rnYKDejw= X-Received: by 2002:a17:906:9b8f:b0:6db:ab62:4713 with SMTP id dd15-20020a1709069b8f00b006dbab624713mr6543896ejc.738.1648758423701; Thu, 31 Mar 2022 13:27:03 -0700 (PDT) MIME-Version: 1.0 References: <10708365.BaYr0rKQ5T@thomas> In-Reply-To: <10708365.BaYr0rKQ5T@thomas> From: satish amara Date: Thu, 31 Mar 2022 16:26:53 -0400 Message-ID: Subject: Re: Fwd: QOS sample example. To: Thomas Monjalon Cc: users@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com Content-Type: multipart/alternative; boundary="0000000000002a4bd505db897cdb" 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 --0000000000002a4bd505db897cdb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, Thomas for forwarding this to the group. I have one more question. Does DPDK QOS uses any internal threads/timers for the token bucket implementation?. The token buckets can be implemented in different ways. When are the tokens are filled, I see there is tb_period? It looks like the tokens are filled when the HQOS thread is trying to find the next active pipe? Regards, Satish Amara On Thu, Mar 31, 2022 at 3:39 PM Thomas Monjalon wrote= : > +Cc QoS scheduler maintainers (see file MAINTAINERS) > > 31/03/2022 18:59, satish amara: > > Hi, > > I am trying to understand the QOS sample scheduler application code= . > > Trying to understand what is tc_period in the config. > > 30. QoS Scheduler Sample Application =E2=80=94 Data Plane Development K= it 21.05.0 > > documentation (dpdk.org) > > Is > > tc_period same as tb_period > > tb_period Bytes Time period that should elapse since the last credit > update > > in order for the bucket to be awarded tb_credits_per_period worth or > > credits. > > Regards, > > Satish Amara > > > > > > > > --0000000000002a4bd505db897cdb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Thomas for forwarding this to the group.=C2=A0
I have one more question. Does DPDK QOS=C2=A0 uses any internal threa= ds/timers for the token bucket implementation?. The token
=C2=A0b= uckets can be implemented in different ways.=C2=A0 When are the=C2=A0tokens= are filled, I see there is tb_period?
It looks like the=C2=A0tok= ens are filled when the HQOS thread is trying to find the next active pipe?=

Regards,
Satish Amara





=
On Thu= , Mar 31, 2022 at 3:39 PM Thomas Monjalon <thomas@monjalon.net> wrote:
+Cc QoS scheduler maintainer= s (see file MAINTAINERS)

31/03/2022 18:59, satish amara:
> Hi,
>=C2=A0 =C2=A0 =C2=A0I am trying to understand the QOS sample scheduler = application code.
> Trying to understand what is tc_period in the config.
> 30. QoS Scheduler Sample Application =E2=80=94 Data Plane Development = Kit 21.05.0
> documentation (dpdk.org)
> <https://doc.dpdk.org/guid= es-21.05/sample_app_ug/qos_scheduler.html> Is
> tc_period same as=C2=A0 tb_period
> tb_period Bytes Time period that should elapse since the last credit u= pdate
> in order for the bucket to be awarded tb_credits_per_period worth or > credits.
> Regards,
> Satish Amara
>





--0000000000002a4bd505db897cdb--