DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample
@ 2018-05-24  6:11 Xiao Wang
  2018-05-24  7:35 ` Maxime Coquelin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Xiao Wang @ 2018-05-24  6:11 UTC (permalink / raw)
  To: maxime.coquelin; +Cc: dev, zhihong.wang, Xiao Wang

If the NIC has a queue number larger than 128, then we need to change
the ``MAX_QUEUES`` to a larger number to make sure we allocate a big
enough memory pool for device setup.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
---
 doc/guides/sample_app_ug/vhost.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst
index 5e7f24c4e..88905e404 100644
--- a/doc/guides/sample_app_ug/vhost.rst
+++ b/doc/guides/sample_app_ug/vhost.rst
@@ -181,3 +181,13 @@ Common Issues
 * Failed to build DPDK in VM
 
   Make sure "-cpu host" QEMU option is given.
+
+* Device start fails if NIC's max queues > the default number of 128
+
+  mbuf pool size is dependent on the MAX_QUEUES configuration, if NIC's
+  max queue number is larger than 128, device start will fail due to
+  insufficient mbuf.
+
+  Change the default number to make it work as below, just set the number
+  according to the NIC's property.
+      make EXTRA_CFLAGS="-DMAX_QUEUES=320"
-- 
2.15.1

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

* Re: [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample
  2018-05-24  6:11 [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample Xiao Wang
@ 2018-05-24  7:35 ` Maxime Coquelin
  2018-05-24 10:25 ` Kovacevic, Marko
  2018-05-24 12:05 ` [dpdk-dev] [PATCH v2] " Xiao Wang
  2 siblings, 0 replies; 5+ messages in thread
From: Maxime Coquelin @ 2018-05-24  7:35 UTC (permalink / raw)
  To: Xiao Wang; +Cc: dev, zhihong.wang



On 05/24/2018 08:11 AM, Xiao Wang wrote:
> If the NIC has a queue number larger than 128, then we need to change
> the ``MAX_QUEUES`` to a larger number to make sure we allocate a big
> enough memory pool for device setup.
> 
> Signed-off-by: Xiao Wang<xiao.w.wang@intel.com>
> ---
>   doc/guides/sample_app_ug/vhost.rst | 10 ++++++++++
>   1 file changed, 10 insertions(+)

Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime

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

* Re: [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample
  2018-05-24  6:11 [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample Xiao Wang
  2018-05-24  7:35 ` Maxime Coquelin
@ 2018-05-24 10:25 ` Kovacevic, Marko
  2018-05-24 12:05 ` [dpdk-dev] [PATCH v2] " Xiao Wang
  2 siblings, 0 replies; 5+ messages in thread
From: Kovacevic, Marko @ 2018-05-24 10:25 UTC (permalink / raw)
  To: Wang, Xiao W, maxime.coquelin; +Cc: dev, Wang, Zhihong, Wang, Xiao W

> If the NIC has a queue number larger than 128, then we need to change the
> ``MAX_QUEUES`` to a larger number to make sure we allocate a big enough
> memory pool for device setup.
> 
> Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
> ---
>  doc/guides/sample_app_ug/vhost.rst | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/doc/guides/sample_app_ug/vhost.rst
> b/doc/guides/sample_app_ug/vhost.rst
> index 5e7f24c4e..88905e404 100644
> --- a/doc/guides/sample_app_ug/vhost.rst
> +++ b/doc/guides/sample_app_ug/vhost.rst
> @@ -181,3 +181,13 @@ Common Issues
>  * Failed to build DPDK in VM
> 
>    Make sure "-cpu host" QEMU option is given.
> +
> +* Device start fails if NIC's max queues > the default number of 128
> +
> +  mbuf pool size is dependent on the MAX_QUEUES configuration, if NIC's
> + max queue number is larger than 128, device start will fail due to
> + insufficient mbuf.
> +
> +  Change the default number to make it work as below, just set the
> + number  according to the NIC's property.
> +      make EXTRA_CFLAGS="-DMAX_QUEUES=320"


Build fails: doc/guides/sample_app_ug/vhost.rst:193: WARNING: Unexpected indentation

Id suggest making it like below:

   Change the default number to make it work as below, just set the number
   according to the NIC's property. ::

       make EXTRA_CFLAGS="-DMAX_QUEUES=320"

You can add my ack when changes are made.

Marko K.

Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>

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

* [dpdk-dev] [PATCH v2] doc: add note for MAX QUEUES macro in vhost sample
  2018-05-24  6:11 [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample Xiao Wang
  2018-05-24  7:35 ` Maxime Coquelin
  2018-05-24 10:25 ` Kovacevic, Marko
@ 2018-05-24 12:05 ` Xiao Wang
  2018-05-24 12:33   ` Maxime Coquelin
  2 siblings, 1 reply; 5+ messages in thread
From: Xiao Wang @ 2018-05-24 12:05 UTC (permalink / raw)
  To: maxime.coquelin; +Cc: dev, marko.kovacevic, Xiao Wang

If the NIC has a queue number larger than 128, then we need to change
the ``MAX_QUEUES`` to a larger number to make sure we allocate a big
enough memory pool for device setup.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
---
v2:
- Fix unexpected indentation warning.
---
 doc/guides/sample_app_ug/vhost.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst
index 5e7f24c4e..9112e7897 100644
--- a/doc/guides/sample_app_ug/vhost.rst
+++ b/doc/guides/sample_app_ug/vhost.rst
@@ -181,3 +181,14 @@ Common Issues
 * Failed to build DPDK in VM
 
   Make sure "-cpu host" QEMU option is given.
+
+* Device start fails if NIC's max queues > the default number of 128
+
+  mbuf pool size is dependent on the MAX_QUEUES configuration, if NIC's
+  max queue number is larger than 128, device start will fail due to
+  insufficient mbuf.
+
+  Change the default number to make it work as below, just set the number
+  according to the NIC's property. ::
+
+      make EXTRA_CFLAGS="-DMAX_QUEUES=320"
-- 
2.15.1

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

* Re: [dpdk-dev] [PATCH v2] doc: add note for MAX QUEUES macro in vhost sample
  2018-05-24 12:05 ` [dpdk-dev] [PATCH v2] " Xiao Wang
@ 2018-05-24 12:33   ` Maxime Coquelin
  0 siblings, 0 replies; 5+ messages in thread
From: Maxime Coquelin @ 2018-05-24 12:33 UTC (permalink / raw)
  To: Xiao Wang; +Cc: dev, marko.kovacevic



On 05/24/2018 02:05 PM, Xiao Wang wrote:
> If the NIC has a queue number larger than 128, then we need to change
> the ``MAX_QUEUES`` to a larger number to make sure we allocate a big
> enough memory pool for device setup.
> 
> Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
> Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
> Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
> ---
> v2:
> - Fix unexpected indentation warning.
> ---
>   doc/guides/sample_app_ug/vhost.rst | 11 +++++++++++
>   1 file changed, 11 insertions(+)
> 

Applied to dpdk-next-virtio/master.

Thanks,
Maxime

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

end of thread, other threads:[~2018-05-24 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-24  6:11 [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample Xiao Wang
2018-05-24  7:35 ` Maxime Coquelin
2018-05-24 10:25 ` Kovacevic, Marko
2018-05-24 12:05 ` [dpdk-dev] [PATCH v2] " Xiao Wang
2018-05-24 12:33   ` Maxime Coquelin

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).