[PATCH 2/2] doc: remove use of -n 4 option in documentation

Jack Bond-Preston jack.bond-preston at foss.arm.com
Fri Jul 19 15:37:11 CEST 2024


On 18/07/2024 19:43, Stephen Hemminger wrote:
> Many places in the documentation are using -n 4 to set
> the number of memory channels. This should not be recommended
> since it is not always right and the default should be used
> instead.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Jack Bond-Preston <jack.bond-preston at foss.arm.com>

> diff --git a/doc/guides/linux_gsg/build_sample_apps.rst b/doc/guides/linux_gsg/build_sample_apps.rst
> index 4f99617233..f07e7a4fb5 100644
> --- a/doc/guides/linux_gsg/build_sample_apps.rst
> +++ b/doc/guides/linux_gsg/build_sample_apps.rst
> @@ -114,7 +114,7 @@ Copy·the·DPDK·application·binary·to·your·target,·then·run·the·application·as·fol
>  (assuming·the·platform·has·four·memory·channels·per·processor·socket,
>  and·that·cores·0-3·are·present·and·are·to·be·used·for·running·the·application)::
>  
> -····./dpdk-helloworld·-l·0-3·-n·4
> +····./dpdk-helloworld·-l·0-3
The comment above about assuming the platform has four memory channels 
is still correct I guess (since the default is 4), but it feels out of 
place now without the -n option specified in the command line.

> diff --git a/doc/guides/sample_app_ug/link_status_intr.rst b/doc/guides/sample_app_ug/link_status_intr.rst
> index a4c0712bd9..523d2ef718 100644
> --- a/doc/guides/sample_app_ug/link_status_intr.rst
> +++ b/doc/guides/sample_app_ug/link_status_intr.rst
> @@ -54,7 +54,7 @@ issue·the·command:
>  
>  ..·code-block::·console
>  
> -····$·./<build_dir>/examples/dpdk-link_status_interrupt·-l·0-3·-n·4--·-q·8·-p·ffff
> +····$·./<build_dir>/examples/dpdk-link_status_interrupt·-l·0-3--·-q·8·-p·ffff
Same comment applies here. Also, whilst this patch isn't the cause, 
should there not be a space before --?

> diff --git a/doc/guides/sample_app_ug/vm_power_management.rst b/doc/guides/sample_app_ug/vm_power_management.rst
> index e0af729e66..d2ef3636eb 100644
> --- a/doc/guides/sample_app_ug/vm_power_management.rst
> +++ b/doc/guides/sample_app_ug/vm_power_management.rst
> @@ -279,7 +279,7 @@ cores·0·and·1·on·a·system·with·four·memory·channels,·issue·the·command:
>  
>  ..·code-block::·console
>  
> -···./<build_dir>/examples/dpdk-vm_power_mgr·-l·0-1·-n·4
> +···./<build_dir>/examples/dpdk-vm_power_mgr·-l·0-1
Same comment.


Should we also remove the note saying "The command line must always have 
the number of memory channels specified for the processor." from the 
mempool library programmer's guide?




More information about the dev mailing list