* [PATCH] doc/dlb2: update dlb2 documentation
@ 2021-12-06 16:36 Rashmi Shetty
2021-12-07 23:01 ` [PATCH v2] " Rashmi Shetty
2021-12-14 14:51 ` [PATCH] " McDaniel, Timothy
0 siblings, 2 replies; 5+ messages in thread
From: Rashmi Shetty @ 2021-12-06 16:36 UTC (permalink / raw)
To: dev
Cc: jerinj, harry.van.haaren, pravin.pathak, mike.ximing.chen,
timothy.mcdaniel, Rashmi Shetty
Number of direct credits, atomic inflight and history list sizes
are updated to what is supported in DLB2.0. Revised Class of Service
section is added.
Signed-off-by: Rashmi Shetty <rashmi.shetty@intel.com>
---
doc/guides/eventdevs/dlb2.rst | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)
diff --git a/doc/guides/eventdevs/dlb2.rst b/doc/guides/eventdevs/dlb2.rst
index bce984ca08..c2887a71dc 100644
--- a/doc/guides/eventdevs/dlb2.rst
+++ b/doc/guides/eventdevs/dlb2.rst
@@ -151,7 +151,7 @@ load-balanced queues, and directed credits are used for directed queues.
These pools' sizes are controlled by the nb_events_limit field in struct
rte_event_dev_config. The load-balanced pool is sized to contain
nb_events_limit credits, and the directed pool is sized to contain
-nb_events_limit/4 credits. The directed pool size can be overridden with the
+nb_events_limit/2 credits. The directed pool size can be overridden with the
num_dir_credits devargs argument, like so:
.. code-block:: console
@@ -239,8 +239,8 @@ queue A.
Due to this, workers should stop retrying after a time, release the events it
is attempting to enqueue, and dequeue more events. It is important that the
worker release the events and don't simply set them aside to retry the enqueue
-again later, because the port has limited history list size (by default, twice
-the port's dequeue_depth).
+again later, because the port has limited history list size (by default, same
+as port's dequeue_depth).
Priority
~~~~~~~~
@@ -309,17 +309,11 @@ scheduled. The likelihood of this case depends on the eventdev configuration,
traffic behavior, event processing latency, potential for a worker to be
interrupted or otherwise delayed, etc.
-By default, the PMD allocates 16 buffer entries for each load-balanced queue,
-which provides an even division across all 128 queues but potentially wastes
+By default, the PMD allocates 64 buffer entries for each load-balanced queue,
+which provides an even division across all 32 queues but potentially wastes
buffer space (e.g. if not all queues are used, or aren't used for atomic
scheduling).
-The PMD provides a dev arg to override the default per-queue allocation. To
-increase per-queue atomic-inflight allocation to (for example) 64:
-
- .. code-block:: console
-
- --allow ea:00.0,atm_inflights=64
QID Depth Threshold
~~~~~~~~~~~~~~~~~~~
@@ -337,7 +331,7 @@ Per queue threshold metrics are tracked in the DLB xstats, and are also
returned in the impl_opaque field of each received event.
The per qid threshold can be specified as part of the device args, and
-can be applied to all queue, a range of queues, or a single queue, as
+can be applied to all queues, a range of queues, or a single queue, as
shown below.
.. code-block:: console
@@ -350,14 +344,10 @@ Class of service
~~~~~~~~~~~~~~~~
DLB supports provisioning the DLB bandwidth into 4 classes of service.
+By default, each of the 4 classes (0-3) correspond to 25% of the DLB
+hardware bandwidth.
-- Class 4 corresponds to 40% of the DLB hardware bandwidth
-- Class 3 corresponds to 30% of the DLB hardware bandwidth
-- Class 2 corresponds to 20% of the DLB hardware bandwidth
-- Class 1 corresponds to 10% of the DLB hardware bandwidth
-- Class 0 corresponds to don't care
-
-The classes are applied globally to the set of ports contained in this
+The classes are applied globally to the set of ports contained in the
scheduling domain, which is more appropriate for the bifurcated
PMD than for the PF PMD, since the PF PMD supports just 1 scheduling
domain.
@@ -366,7 +356,7 @@ Class of service can be specified in the devargs, as follows
.. code-block:: console
- --allow ea:00.0,cos=<0..4>
+ --allow ea:00.0,cos=<0..3>
Use X86 Vector Instructions
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -379,4 +369,4 @@ follows
.. code-block:: console
- --allow ea:00.0,vector_opts_enabled=<y/Y>
+ --allow ea:00.0,vector_opts_enable=<y/Y>
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] doc/dlb2: update dlb2 documentation
2021-12-06 16:36 [PATCH] doc/dlb2: update dlb2 documentation Rashmi Shetty
@ 2021-12-07 23:01 ` Rashmi Shetty
2021-12-14 16:08 ` McDaniel, Timothy
2021-12-14 14:51 ` [PATCH] " McDaniel, Timothy
1 sibling, 1 reply; 5+ messages in thread
From: Rashmi Shetty @ 2021-12-07 23:01 UTC (permalink / raw)
To: dev
Cc: jerinj, harry.van.haaren, pravin.pathak, mike.ximing.chen,
timothy.mcdaniel, Rashmi Shetty
Number of direct credits, atomic inflight and history list are
updated to DLB2.0 supported sizes. As DLB2.0 does not provide
dev arg to override the default per-queue atomic inflight
allocation, it is removed from the documentation.
Signed-off-by: Rashmi Shetty <rashmi.shetty@intel.com>
---
doc/guides/eventdevs/dlb2.rst | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/doc/guides/eventdevs/dlb2.rst b/doc/guides/eventdevs/dlb2.rst
index bce984ca08..bc53618b53 100644
--- a/doc/guides/eventdevs/dlb2.rst
+++ b/doc/guides/eventdevs/dlb2.rst
@@ -151,7 +151,7 @@ load-balanced queues, and directed credits are used for directed queues.
These pools' sizes are controlled by the nb_events_limit field in struct
rte_event_dev_config. The load-balanced pool is sized to contain
nb_events_limit credits, and the directed pool is sized to contain
-nb_events_limit/4 credits. The directed pool size can be overridden with the
+nb_events_limit/2 credits. The directed pool size can be overridden with the
num_dir_credits devargs argument, like so:
.. code-block:: console
@@ -239,8 +239,8 @@ queue A.
Due to this, workers should stop retrying after a time, release the events it
is attempting to enqueue, and dequeue more events. It is important that the
worker release the events and don't simply set them aside to retry the enqueue
-again later, because the port has limited history list size (by default, twice
-the port's dequeue_depth).
+again later, because the port has limited history list size (by default, same
+as port's dequeue_depth).
Priority
~~~~~~~~
@@ -309,18 +309,11 @@ scheduled. The likelihood of this case depends on the eventdev configuration,
traffic behavior, event processing latency, potential for a worker to be
interrupted or otherwise delayed, etc.
-By default, the PMD allocates 16 buffer entries for each load-balanced queue,
-which provides an even division across all 128 queues but potentially wastes
+By default, the PMD allocates 64 buffer entries for each load-balanced queue,
+which provides an even division across all 32 queues but potentially wastes
buffer space (e.g. if not all queues are used, or aren't used for atomic
scheduling).
-The PMD provides a dev arg to override the default per-queue allocation. To
-increase per-queue atomic-inflight allocation to (for example) 64:
-
- .. code-block:: console
-
- --allow ea:00.0,atm_inflights=64
-
QID Depth Threshold
~~~~~~~~~~~~~~~~~~~
@@ -337,7 +330,7 @@ Per queue threshold metrics are tracked in the DLB xstats, and are also
returned in the impl_opaque field of each received event.
The per qid threshold can be specified as part of the device args, and
-can be applied to all queue, a range of queues, or a single queue, as
+can be applied to all queues, a range of queues, or a single queue, as
shown below.
.. code-block:: console
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH v2] doc/dlb2: update dlb2 documentation
2021-12-07 23:01 ` [PATCH v2] " Rashmi Shetty
@ 2021-12-14 16:08 ` McDaniel, Timothy
2022-01-20 11:51 ` Jerin Jacob
0 siblings, 1 reply; 5+ messages in thread
From: McDaniel, Timothy @ 2021-12-14 16:08 UTC (permalink / raw)
To: Shetty, Rashmi, dev
Cc: jerinj, Van Haaren, Harry, Pathak, Pravin, Chen, Mike Ximing
> -----Original Message-----
> From: Shetty, Rashmi <rashmi.shetty@intel.com>
> Sent: Tuesday, December 7, 2021 5:02 PM
> To: dev@dpdk.org
> Cc: jerinj@marvell.com; Van Haaren, Harry <harry.van.haaren@intel.com>;
> Pathak, Pravin <pravin.pathak@intel.com>; Chen, Mike Ximing
> <mike.ximing.chen@intel.com>; McDaniel, Timothy
> <timothy.mcdaniel@intel.com>; Shetty, Rashmi <rashmi.shetty@intel.com>
> Subject: [PATCH v2] doc/dlb2: update dlb2 documentation
>
> Number of direct credits, atomic inflight and history list are
> updated to DLB2.0 supported sizes. As DLB2.0 does not provide
> dev arg to override the default per-queue atomic inflight
> allocation, it is removed from the documentation.
>
> Signed-off-by: Rashmi Shetty <rashmi.shetty@intel.com>
> ---
> doc/guides/eventdevs/dlb2.rst | 19 ++++++-------------
> 1 file changed, 6 insertions(+), 13 deletions(-)
>
> diff --git a/doc/guides/eventdevs/dlb2.rst b/doc/guides/eventdevs/dlb2.rst
> index bce984ca08..bc53618b53 100644
> --- a/doc/guides/eventdevs/dlb2.rst
> +++ b/doc/guides/eventdevs/dlb2.rst
> @@ -151,7 +151,7 @@ load-balanced queues, and directed credits are used for
> directed queues.
> These pools' sizes are controlled by the nb_events_limit field in struct
> rte_event_dev_config. The load-balanced pool is sized to contain
> nb_events_limit credits, and the directed pool is sized to contain
> -nb_events_limit/4 credits. The directed pool size can be overridden with the
> +nb_events_limit/2 credits. The directed pool size can be overridden with the
> num_dir_credits devargs argument, like so:
>
> .. code-block:: console
> @@ -239,8 +239,8 @@ queue A.
> Due to this, workers should stop retrying after a time, release the events it
> is attempting to enqueue, and dequeue more events. It is important that the
> worker release the events and don't simply set them aside to retry the enqueue
> -again later, because the port has limited history list size (by default, twice
> -the port's dequeue_depth).
> +again later, because the port has limited history list size (by default, same
> +as port's dequeue_depth).
>
> Priority
> ~~~~~~~~
> @@ -309,18 +309,11 @@ scheduled. The likelihood of this case depends on the
> eventdev configuration,
> traffic behavior, event processing latency, potential for a worker to be
> interrupted or otherwise delayed, etc.
>
> -By default, the PMD allocates 16 buffer entries for each load-balanced queue,
> -which provides an even division across all 128 queues but potentially wastes
> +By default, the PMD allocates 64 buffer entries for each load-balanced queue,
> +which provides an even division across all 32 queues but potentially wastes
> buffer space (e.g. if not all queues are used, or aren't used for atomic
> scheduling).
>
> -The PMD provides a dev arg to override the default per-queue allocation. To
> -increase per-queue atomic-inflight allocation to (for example) 64:
> -
> - .. code-block:: console
> -
> - --allow ea:00.0,atm_inflights=64
> -
> QID Depth Threshold
> ~~~~~~~~~~~~~~~~~~~
>
> @@ -337,7 +330,7 @@ Per queue threshold metrics are tracked in the DLB
> xstats, and are also
> returned in the impl_opaque field of each received event.
>
> The per qid threshold can be specified as part of the device args, and
> -can be applied to all queue, a range of queues, or a single queue, as
> +can be applied to all queues, a range of queues, or a single queue, as
> shown below.
>
> .. code-block:: console
> --
> 2.25.1
Reviewed-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] doc/dlb2: update dlb2 documentation
2021-12-14 16:08 ` McDaniel, Timothy
@ 2022-01-20 11:51 ` Jerin Jacob
0 siblings, 0 replies; 5+ messages in thread
From: Jerin Jacob @ 2022-01-20 11:51 UTC (permalink / raw)
To: McDaniel, Timothy
Cc: Shetty, Rashmi, dev, jerinj, Van Haaren, Harry, Pathak, Pravin,
Chen, Mike Ximing
On Tue, Dec 14, 2021 at 9:41 PM McDaniel, Timothy
<timothy.mcdaniel@intel.com> wrote:
>
> > -----Original Message-----
> > From: Shetty, Rashmi <rashmi.shetty@intel.com>
> > Sent: Tuesday, December 7, 2021 5:02 PM
> > To: dev@dpdk.org
> > Cc: jerinj@marvell.com; Van Haaren, Harry <harry.van.haaren@intel.com>;
> > Pathak, Pravin <pravin.pathak@intel.com>; Chen, Mike Ximing
> > <mike.ximing.chen@intel.com>; McDaniel, Timothy
> > <timothy.mcdaniel@intel.com>; Shetty, Rashmi <rashmi.shetty@intel.com>
> > Subject: [PATCH v2] doc/dlb2: update dlb2 documentation
> >
> > Number of direct credits, atomic inflight and history list are
> > updated to DLB2.0 supported sizes. As DLB2.0 does not provide
> > dev arg to override the default per-queue atomic inflight
> > allocation, it is removed from the documentation.
> >
> > Signed-off-by: Rashmi Shetty <rashmi.shetty@intel.com>
of queues, or a single queue, as
> > shown below.
> >
> > .. code-block:: console
> > --
> > 2.25.1
>
> Reviewed-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
Since it as fix and needs to update stable tree. Updated as follows
and applied to dpdk-next-net-eventdev/for-main. Thanks
doc/dlb2: fix dlb2 documentation
Number of direct credits, atomic inflight and history list are
updated to DLB2.0 supported sizes. As DLB2.0 does not provide
dev arg to override the default per-queue atomic inflight
allocation, it is removed from the documentation.
Fixes: f3cad285bb88 ("event/dlb2: add infos get and configure")
Cc: stable@dpdk.org
Signed-off-by: Rashmi Shetty <rashmi.shetty@intel.com>
Reviewed-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] doc/dlb2: update dlb2 documentation
2021-12-06 16:36 [PATCH] doc/dlb2: update dlb2 documentation Rashmi Shetty
2021-12-07 23:01 ` [PATCH v2] " Rashmi Shetty
@ 2021-12-14 14:51 ` McDaniel, Timothy
1 sibling, 0 replies; 5+ messages in thread
From: McDaniel, Timothy @ 2021-12-14 14:51 UTC (permalink / raw)
To: Shetty, Rashmi, dev
Cc: jerinj, Van Haaren, Harry, Pathak, Pravin, Chen, Mike Ximing
> -----Original Message-----
> From: Shetty, Rashmi <rashmi.shetty@intel.com>
> Sent: Monday, December 6, 2021 10:37 AM
> To: dev@dpdk.org
> Cc: jerinj@marvell.com; Van Haaren, Harry <harry.van.haaren@intel.com>;
> Pathak, Pravin <pravin.pathak@intel.com>; Chen, Mike Ximing
> <mike.ximing.chen@intel.com>; McDaniel, Timothy
> <timothy.mcdaniel@intel.com>; Shetty, Rashmi <rashmi.shetty@intel.com>
> Subject: [PATCH] doc/dlb2: update dlb2 documentation
>
> Number of direct credits, atomic inflight and history list sizes
> are updated to what is supported in DLB2.0. Revised Class of Service
> section is added.
>
> Signed-off-by: Rashmi Shetty <rashmi.shetty@intel.com>
> ---
> doc/guides/eventdevs/dlb2.rst | 32 +++++++++++---------------------
> 1 file changed, 11 insertions(+), 21 deletions(-)
>
> diff --git a/doc/guides/eventdevs/dlb2.rst b/doc/guides/eventdevs/dlb2.rst
> index bce984ca08..c2887a71dc 100644
> --- a/doc/guides/eventdevs/dlb2.rst
> +++ b/doc/guides/eventdevs/dlb2.rst
> @@ -151,7 +151,7 @@ load-balanced queues, and directed credits are used for
> directed queues.
> These pools' sizes are controlled by the nb_events_limit field in struct
> rte_event_dev_config. The load-balanced pool is sized to contain
> nb_events_limit credits, and the directed pool is sized to contain
> -nb_events_limit/4 credits. The directed pool size can be overridden with the
> +nb_events_limit/2 credits. The directed pool size can be overridden with the
> num_dir_credits devargs argument, like so:
>
> .. code-block:: console
> @@ -239,8 +239,8 @@ queue A.
> Due to this, workers should stop retrying after a time, release the events it
> is attempting to enqueue, and dequeue more events. It is important that the
> worker release the events and don't simply set them aside to retry the enqueue
> -again later, because the port has limited history list size (by default, twice
> -the port's dequeue_depth).
> +again later, because the port has limited history list size (by default, same
> +as port's dequeue_depth).
>
> Priority
> ~~~~~~~~
> @@ -309,17 +309,11 @@ scheduled. The likelihood of this case depends on the
> eventdev configuration,
> traffic behavior, event processing latency, potential for a worker to be
> interrupted or otherwise delayed, etc.
>
> -By default, the PMD allocates 16 buffer entries for each load-balanced queue,
> -which provides an even division across all 128 queues but potentially wastes
> +By default, the PMD allocates 64 buffer entries for each load-balanced queue,
> +which provides an even division across all 32 queues but potentially wastes
> buffer space (e.g. if not all queues are used, or aren't used for atomic
> scheduling).
>
> -The PMD provides a dev arg to override the default per-queue allocation. To
> -increase per-queue atomic-inflight allocation to (for example) 64:
> -
> - .. code-block:: console
> -
> - --allow ea:00.0,atm_inflights=64
>
> QID Depth Threshold
> ~~~~~~~~~~~~~~~~~~~
> @@ -337,7 +331,7 @@ Per queue threshold metrics are tracked in the DLB
> xstats, and are also
> returned in the impl_opaque field of each received event.
>
> The per qid threshold can be specified as part of the device args, and
> -can be applied to all queue, a range of queues, or a single queue, as
> +can be applied to all queues, a range of queues, or a single queue, as
> shown below.
>
> .. code-block:: console
> @@ -350,14 +344,10 @@ Class of service
> ~~~~~~~~~~~~~~~~
>
> DLB supports provisioning the DLB bandwidth into 4 classes of service.
> +By default, each of the 4 classes (0-3) correspond to 25% of the DLB
> +hardware bandwidth.
>
> -- Class 4 corresponds to 40% of the DLB hardware bandwidth
> -- Class 3 corresponds to 30% of the DLB hardware bandwidth
> -- Class 2 corresponds to 20% of the DLB hardware bandwidth
> -- Class 1 corresponds to 10% of the DLB hardware bandwidth
> -- Class 0 corresponds to don't care
> -
> -The classes are applied globally to the set of ports contained in this
> +The classes are applied globally to the set of ports contained in the
> scheduling domain, which is more appropriate for the bifurcated
> PMD than for the PF PMD, since the PF PMD supports just 1 scheduling
> domain.
> @@ -366,7 +356,7 @@ Class of service can be specified in the devargs, as
> follows
>
> .. code-block:: console
>
> - --allow ea:00.0,cos=<0..4>
> + --allow ea:00.0,cos=<0..3>
>
> Use X86 Vector Instructions
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> @@ -379,4 +369,4 @@ follows
>
> .. code-block:: console
>
> - --allow ea:00.0,vector_opts_enabled=<y/Y>
> + --allow ea:00.0,vector_opts_enable=<y/Y>
> --
> 2.25.1
Reviewed-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-20 11:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 16:36 [PATCH] doc/dlb2: update dlb2 documentation Rashmi Shetty
2021-12-07 23:01 ` [PATCH v2] " Rashmi Shetty
2021-12-14 16:08 ` McDaniel, Timothy
2022-01-20 11:51 ` Jerin Jacob
2021-12-14 14:51 ` [PATCH] " McDaniel, Timothy
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).