[dpdk-dev] [PATCH v5] usertools: add huge page setup script

Thomas Monjalon thomas at monjalon.net
Tue Sep 8 23:49:59 CEST 2020


07/09/2020 10:58, Bruce Richardson:
> On Mon, Sep 07, 2020 at 09:54:29AM +0100, Ferruh Yigit wrote:
> > On 9/6/2020 4:42 AM, Stephen Hemminger wrote:
> > > This is an improved version of the setup of huge pages
> > > bases on earlier DPDK setup. Differences are:
> > >    * it autodetects NUMA vs non NUMA
> > >    * it allows setting different page sizes
> > >      recent kernels support multiple sizes.
> > >    * it accepts a parameter in bytes (not pages).
> > > 
> > > If necessary the steps of clearing old settings and mounting/umounting
> > > can be done individually.
> > > 
> > > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> > 
> > <...>
> > 
> > > +install_data([
> > > +	'dpdk-devbind.py',
> > > +	'dpdk-pmdinfo.py',
> > > +	'dpdk-telemetry.py',
> > > +	'hugepage_setup.py'
> > > +],install_dir: 'bin')
> > > 
> > 
> > Should script name has 'dpdk-' prefix as others do?
> 
> +1 to that.

If the script is going to be installed system-wise,
it should start with dpdk- as namespace protection to avoid conflict.




More information about the dev mailing list