Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread Thomas Monjalon
21/11/2019 22:25, Thomas Monjalon: > 21/11/2019 16:12, David Marchand: > > Following [1], testpmd memory consumption has skyrocketted. > > The rte_port structure has gotten quite fat. > > > > struct rte_port { > > [...] > > struct rte_eth_rxconf rx_conf[65536];/* 266280 3145728 */ >

Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread Thomas Monjalon
21/11/2019 16:12, David Marchand: > Following [1], testpmd memory consumption has skyrocketted. > The rte_port structure has gotten quite fat. > > struct rte_port { > [...] > struct rte_eth_rxconf rx_conf[65536];/* 266280 3145728 */ > /* --- cacheline 53312 boundary (3411968 bytes)

Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread Thomas Monjalon
21/11/2019 17:23, David Marchand: > On Thu, Nov 21, 2019 at 5:17 PM David Marchand > wrote: > > > > On Thu, Nov 21, 2019 at 4:36 PM Ferruh Yigit wrote: > > > > diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h > > > > index 90694a3309..217d577018 100644 > > > > --- a/app/test-pmd/testp

Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread David Marchand
On Thu, Nov 21, 2019 at 5:45 PM Stephen Hemminger wrote: > > On Thu, 21 Nov 2019 16:12:55 +0100 > David Marchand wrote: > > > - uint16_tnb_rx_desc[MAX_QUEUE_ID+1]; /**< per queue rx > > desc number */ > > - uint16_tnb_tx_desc[MAX_QUEUE_ID+1]; /**< per queu

Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread Stephen Hemminger
On Thu, 21 Nov 2019 16:12:55 +0100 David Marchand wrote: > - uint16_tnb_rx_desc[MAX_QUEUE_ID+1]; /**< per queue rx > desc number */ > - uint16_tnb_tx_desc[MAX_QUEUE_ID+1]; /**< per queue tx > desc number */ > - struct rte_eth_rxconf rx_conf[MAX_QUEU

Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread David Marchand
On Thu, Nov 21, 2019 at 5:17 PM David Marchand wrote: > > On Thu, Nov 21, 2019 at 4:36 PM Ferruh Yigit wrote: > > > diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h > > > index 90694a3309..217d577018 100644 > > > --- a/app/test-pmd/testpmd.h > > > +++ b/app/test-pmd/testpmd.h > > > @@

Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread David Marchand
On Thu, Nov 21, 2019 at 4:36 PM Ferruh Yigit wrote: > > diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h > > index 90694a3309..217d577018 100644 > > --- a/app/test-pmd/testpmd.h > > +++ b/app/test-pmd/testpmd.h > > @@ -58,8 +58,6 @@ typedef uint16_t portid_t; > > typedef uint16_t queu

Re: [dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread Ferruh Yigit
On 11/21/2019 3:12 PM, David Marchand wrote: > Following [1], testpmd memory consumption has skyrocketted. > The rte_port structure has gotten quite fat. > > struct rte_port { > [...] > struct rte_eth_rxconf rx_conf[65536];/* 266280 3145728 */ > /* --- cacheline 53312 boundary (341

[dpdk-dev] [PATCH] app/testpmd: reduce memory consumption

2019-11-21 Thread David Marchand
Following [1], testpmd memory consumption has skyrocketted. The rte_port structure has gotten quite fat. struct rte_port { [...] struct rte_eth_rxconf rx_conf[65536];/* 266280 3145728 */ /* --- cacheline 53312 boundary (3411968 bytes) was 40 bytes ago --- */ struct rte_eth_txconf