All of lore.kernel.org
 help / color / mirror / Atom feed
* Port stats zero when using MLX5 DPDK driver
@ 2017-01-08 13:38 george.dit
  2017-01-09 13:32 ` Shahaf Shuler
  0 siblings, 1 reply; 6+ messages in thread
From: george.dit @ 2017-01-08 13:38 UTC (permalink / raw)
  To: dev

Hi,

I have a simple setup with a machine that contains a dual port 10 GbE Intel
82599ES NIC and another dual port 100 GbE Mellanox ConnectX-4 NIC. The
Intel ports are 0 and 1, while the Mellanox ones are 2 and 3.

I properly compiled DPDK 16.11 and test-pmd works just fine for all 4 ports.
Then, I ran a simple primary application that forwards packets from 0 <-->
1 and 2 <--> 3 and started dpdk-procinfo -- --stats (or --xstats) as a
secondary monitoring process, while sending some traffic to all 4 ports.
The problem I see is that the statistics reported by the Mellanox NICs are
always zero (Intel ports report just fine).

What is the reason behind this behavior? Is there a bug in the driver
(maybe recently fixed by DPDK 17.02 rc?) or is it simply a lack of this
functionality?

Thanks and best regards,

-- 
   Georgios Katsikas
   Ph.D. Student and Research Assistant
   Network Systems Lab (NSL)



       *E-Mail:*  george <george.katsikas@imdea.org>.dit@gmail.com
   *Web Site:*  http://www.di.uoa.gr/~katsikas/
<http://people.networks.imdea.org/~george_katsikas/index.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Port stats zero when using MLX5 DPDK driver
  2017-01-08 13:38 Port stats zero when using MLX5 DPDK driver george.dit
@ 2017-01-09 13:32 ` Shahaf Shuler
  2017-01-09 14:44   ` george.dit
  0 siblings, 1 reply; 6+ messages in thread
From: Shahaf Shuler @ 2017-01-09 13:32 UTC (permalink / raw)
  To: george.dit, dev

Hi Georgios,

It is not support on Mellanox PMD to read the primary process counters from a secondary process.


--Shahaf


-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of george.dit@gmail.com
Sent: Sunday, January 8, 2017 3:38 PM
To: dev@dpdk.org
Subject: [dpdk-dev] Port stats zero when using MLX5 DPDK driver

Hi,

I have a simple setup with a machine that contains a dual port 10 GbE Intel 82599ES NIC and another dual port 100 GbE Mellanox ConnectX-4 NIC. The Intel ports are 0 and 1, while the Mellanox ones are 2 and 3.

I properly compiled DPDK 16.11 and test-pmd works just fine for all 4 ports.
Then, I ran a simple primary application that forwards packets from 0 <-->
1 and 2 <--> 3 and started dpdk-procinfo -- --stats (or --xstats) as a secondary monitoring process, while sending some traffic to all 4 ports.
The problem I see is that the statistics reported by the Mellanox NICs are always zero (Intel ports report just fine).

What is the reason behind this behavior? Is there a bug in the driver (maybe recently fixed by DPDK 17.02 rc?) or is it simply a lack of this functionality?

Thanks and best regards,

-- 
   Georgios Katsikas
   Ph.D. Student and Research Assistant
   Network Systems Lab (NSL)



       *E-Mail:*  george <george.katsikas@imdea.org>.dit@gmail.com
   *Web Site:*  http://www.di.uoa.gr/~katsikas/ <http://people.networks.imdea.org/~george_katsikas/index.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Port stats zero when using MLX5 DPDK driver
  2017-01-09 13:32 ` Shahaf Shuler
@ 2017-01-09 14:44   ` george.dit
  2017-01-10  8:43     ` Shahaf Shuler
  0 siblings, 1 reply; 6+ messages in thread
From: george.dit @ 2017-01-09 14:44 UTC (permalink / raw)
  To: Shahaf Shuler; +Cc: dev

Hi Shahaf,

Thanks for the clarification!
Is there a plan for this functionality to be provided (soon)? (or any
technical limitation that stands in this way)

Thanks and best regards,
Georgios

On Mon, Jan 9, 2017 at 2:32 PM, Shahaf Shuler <shahafs@mellanox.com> wrote:

> Hi Georgios,
>
> It is not support on Mellanox PMD to read the primary process counters
> from a secondary process.
>
>
> --Shahaf
>
>
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of george.dit@gmail.com
> Sent: Sunday, January 8, 2017 3:38 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Port stats zero when using MLX5 DPDK driver
>
> Hi,
>
> I have a simple setup with a machine that contains a dual port 10 GbE
> Intel 82599ES NIC and another dual port 100 GbE Mellanox ConnectX-4 NIC.
> The Intel ports are 0 and 1, while the Mellanox ones are 2 and 3.
>
> I properly compiled DPDK 16.11 and test-pmd works just fine for all 4
> ports.
> Then, I ran a simple primary application that forwards packets from 0 <-->
> 1 and 2 <--> 3 and started dpdk-procinfo -- --stats (or --xstats) as a
> secondary monitoring process, while sending some traffic to all 4 ports.
> The problem I see is that the statistics reported by the Mellanox NICs are
> always zero (Intel ports report just fine).
>
> What is the reason behind this behavior? Is there a bug in the driver
> (maybe recently fixed by DPDK 17.02 rc?) or is it simply a lack of this
> functionality?
>
> Thanks and best regards,
>
> --
>    Georgios Katsikas
>    Ph.D. Student and Research Assistant
>    Network Systems Lab (NSL)
>
>
>
>        *E-Mail:*  george <george.katsikas@imdea.org>.dit@gmail.com
>    *Web Site:*  http://www.di.uoa.gr/~katsikas/ <
> http://people.networks.imdea.org/~george_katsikas/index.html>
>



-- 
   Georgios Katsikas
   Ph.D. Student and Research Assistant
   Network Systems Lab (NSL)



       *E-Mail:*  george <george.katsikas@imdea.org>.dit@gmail.com
   *Web Site:*  http://www.di.uoa.gr/~katsikas/
<http://people.networks.imdea.org/~george_katsikas/index.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Port stats zero when using MLX5 DPDK driver
  2017-01-09 14:44   ` george.dit
@ 2017-01-10  8:43     ` Shahaf Shuler
  2017-01-11 13:46       ` Thomas Monjalon
  0 siblings, 1 reply; 6+ messages in thread
From: Shahaf Shuler @ 2017-01-10  8:43 UTC (permalink / raw)
  To: george.dit; +Cc: dev

supporting this functionality is not on the plans. If you wish to read statistics of a running process you can use ethtool –S <device_name>.
It will provide you the statistics of the port.
Note that those statistics count the number of bytes/packet which were received/sent by the port. This number may not be equal to the number of packet/bytes which were send/received on the PMD.

--Shahaf

From: george.dit@gmail.com [mailto:george.dit@gmail.com]
Sent: Monday, January 9, 2017 4:45 PM
To: Shahaf Shuler <shahafs@mellanox.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Port stats zero when using MLX5 DPDK driver

Hi Shahaf,

Thanks for the clarification!
Is there a plan for this functionality to be provided (soon)? (or any technical limitation that stands in this way)

Thanks and best regards,
Georgios

On Mon, Jan 9, 2017 at 2:32 PM, Shahaf Shuler <shahafs@mellanox.com<mailto:shahafs@mellanox.com>> wrote:
Hi Georgios,

It is not support on Mellanox PMD to read the primary process counters from a secondary process.


--Shahaf


-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org<mailto:dev-bounces@dpdk.org>] On Behalf Of george.dit@gmail.com<mailto:george.dit@gmail.com>
Sent: Sunday, January 8, 2017 3:38 PM
To: dev@dpdk.org<mailto:dev@dpdk.org>
Subject: [dpdk-dev] Port stats zero when using MLX5 DPDK driver

Hi,

I have a simple setup with a machine that contains a dual port 10 GbE Intel 82599ES NIC and another dual port 100 GbE Mellanox ConnectX-4 NIC. The Intel ports are 0 and 1, while the Mellanox ones are 2 and 3.

I properly compiled DPDK 16.11 and test-pmd works just fine for all 4 ports.
Then, I ran a simple primary application that forwards packets from 0 <-->
1 and 2 <--> 3 and started dpdk-procinfo -- --stats (or --xstats) as a secondary monitoring process, while sending some traffic to all 4 ports.
The problem I see is that the statistics reported by the Mellanox NICs are always zero (Intel ports report just fine).

What is the reason behind this behavior? Is there a bug in the driver (maybe recently fixed by DPDK 17.02 rc?) or is it simply a lack of this functionality?

Thanks and best regards,

--
   Georgios Katsikas
   Ph.D. Student and Research Assistant
   Network Systems Lab (NSL)



       *E-Mail:*  george <george.katsikas@imdea.org<mailto:george.katsikas@imdea.org>>.dit@gmail.com<mailto:dit@gmail.com>
   *Web Site:*  http://www.di.uoa.gr/~katsikas/ <http://people.networks.imdea.org/~george_katsikas/index.html>



--
   Georgios Katsikas
   Ph.D. Student and Research Assistant
   Network Systems Lab (NSL)

   [http://www.kth.se/polopoly_fs/1.77259!/image/logo-main-2013.png]

       E-Mail:  george<mailto:george.katsikas@imdea.org>.dit@gmail.com<mailto:dit@gmail.com>
   Web Site:  http://www.di.uoa.gr/~katsikas/<http://people.networks.imdea.org/~george_katsikas/index.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Port stats zero when using MLX5 DPDK driver
  2017-01-10  8:43     ` Shahaf Shuler
@ 2017-01-11 13:46       ` Thomas Monjalon
  2017-01-12  7:34         ` Shahaf Shuler
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Monjalon @ 2017-01-11 13:46 UTC (permalink / raw)
  To: Shahaf Shuler; +Cc: dev, george.dit

> > On Mon, Jan 9, 2017 at 2:32 PM, Shahaf Shuler wrote:
> > It is not support on Mellanox PMD to read the primary process counters
> > from a secondary process.

It is a pity that such a basic feature is not supported.
We should try to have this kind of feature better supported across
every drivers.

2017-01-10 08:43, Shahaf Shuler:
> supporting this functionality is not on the plans.

Please could you re-consider the plans? It should not be so difficult
to give access to the stats from a secondary process.

Thanks


> If you wish to read statistics of a running process you can use ethtool –S <device_name>.
> It will provide you the statistics of the port.
> Note that those statistics count the number of bytes/packet which were 
> received/sent by the port. This number may not be equal to the number
> of packet/bytes which were send/received on the PMD.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Port stats zero when using MLX5 DPDK driver
  2017-01-11 13:46       ` Thomas Monjalon
@ 2017-01-12  7:34         ` Shahaf Shuler
  0 siblings, 0 replies; 6+ messages in thread
From: Shahaf Shuler @ 2017-01-12  7:34 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, george.dit



--Shahaf


-----Original Message-----
From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] 
Sent: Wednesday, January 11, 2017 3:47 PM
To: Shahaf Shuler <shahafs@mellanox.com>
Cc: dev@dpdk.org; george.dit@gmail.com
Subject: Re: [dpdk-dev] Port stats zero when using MLX5 DPDK driver

> > On Mon, Jan 9, 2017 at 2:32 PM, Shahaf Shuler wrote:
> > It is not support on Mellanox PMD to read the primary process 
> > counters from a secondary process.

It is a pity that such a basic feature is not supported.
We should try to have this kind of feature better supported across every drivers.
[Shahaf Shuler] there is a patch we are pushing which will enable to read the xstats from a secondary process:
[PATCH] net/mlx5: support extended statistics


2017-01-10 08:43, Shahaf Shuler:
> supporting this functionality is not on the plans.

Please could you re-consider the plans? It should not be so difficult to give access to the stats from a secondary process.
[Shahaf Shuler] DPDK secondary process much conflict with Mellanox Arch. we will put this task on our plans.



Thanks


> If you wish to read statistics of a running process you can use ethtool –S <device_name>.
> It will provide you the statistics of the port.
> Note that those statistics count the number of bytes/packet which were 
> received/sent by the port. This number may not be equal to the number 
> of packet/bytes which were send/received on the PMD.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-12  7:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-08 13:38 Port stats zero when using MLX5 DPDK driver george.dit
2017-01-09 13:32 ` Shahaf Shuler
2017-01-09 14:44   ` george.dit
2017-01-10  8:43     ` Shahaf Shuler
2017-01-11 13:46       ` Thomas Monjalon
2017-01-12  7:34         ` Shahaf Shuler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.