DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
To: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Cc: Thomas Monjalon <thomas@monjalon.net>,
	Ilya Maximets <i.maximets@samsung.com>,
	dev@dpdk.org, Hemant Agrawal <hemant.agrawal@nxp.com>,
	Bruce Richardson <bruce.richardson@intel.com>,
	David Marchand <david.marchand@6wind.com>,
	Heetae Ahn <heetae82.ahn@samsung.com>,
	Yuanhan Liu <yliu@fridaylinux.org>,
	Jianfeng Tan <jianfeng.tan@intel.com>,
	Neil Horman <nhorman@tuxdriver.com>,
	Yulong Pei <yulong.pei@intel.com>
Subject: Re: [PATCH v5 0/2] Balanced allocation of hugepages
Date: Tue, 20 Jun 2017 21:11:40 +0530	[thread overview]
Message-ID: <20170620154138.GA8453@jerin> (raw)
In-Reply-To: <7e71f1d8-f975-05ed-c14c-526c1c2c651f@intel.com>

-----Original Message-----
> Date: Tue, 20 Jun 2017 15:58:50 +0100
> From: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
> To: Thomas Monjalon <thomas@monjalon.net>, Ilya Maximets
>  <i.maximets@samsung.com>
> CC: dev@dpdk.org, Hemant Agrawal <hemant.agrawal@nxp.com>, Bruce Richardson
>  <bruce.richardson@intel.com>, David Marchand <david.marchand@6wind.com>,
>  Heetae Ahn <heetae82.ahn@samsung.com>, Yuanhan Liu <yliu@fridaylinux.org>,
>  Jianfeng Tan <jianfeng.tan@intel.com>, Neil Horman
>  <nhorman@tuxdriver.com>, Yulong Pei <yulong.pei@intel.com>
> Subject: Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages
> User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101
>  Thunderbird/45.1.1
> 
> On 20/06/2017 15:35, Thomas Monjalon wrote:
> > 20/06/2017 15:58, Ilya Maximets:
> > > On 20.06.2017 16:07, Thomas Monjalon wrote:
> > > > 19/06/2017 13:10, Hemant Agrawal:
> > > > > > > > On Thu, Jun 08, 2017 at 02:21:58PM +0300, Ilya Maximets wrote:
> > > > > > > > > So, there are 2 option:
> > > > > > > > > 
> > > > > > > > >      1. Return back config option RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES
> > > > > > > > >         from the first version of the patch and disable it by default.
> > > > > > > > > 
> > > > > > > > >      2. Keep patch as it is now and make everyone install libnuma
> > > > > > > > >         for successful build.
> > > > > +1 for option 1
> > > > > It will be a issue and undesired dependency for SoCs, not supporting
> > > > > NUMA architecture.
> > > > > 
> > > > > It can be added to the config, who desired to use it by default.
> > > > Yes I agree, it cannot be a dependency for architectures which
> > > > do not support NUMA.
> > > > Please can we rework the patch so that only one node is assumed
> > > > if NUMA is disabled for the architecture?
> 
> Ilya, I missed that libnuma is not supported on ARM.

It is supported on arm64 and arm64 has NUMA machines(thunderx, thunderx2) too.

[dpdk.org] $ dpkg-query -L libnuma-dev
/.
/usr
/usr/lib
/usr/lib/aarch64-linux-gnu
/usr/lib/aarch64-linux-gnu/libnuma.a
/usr/share
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/numa.3.gz
/usr/share/doc
/usr/share/doc/libnuma-dev
/usr/share/doc/libnuma-dev/copyright
/usr/include
/usr/include/numaif.h
/usr/include/numa.h
/usr/include/numacompat1.h
/usr/lib/aarch64-linux-gnu/libnuma.so


> 
> > > We're still don't have dynamic build time configuration system.
> > > To make get/set_mempolicy work we need to include <numaif.h>
> > > and have libnuma for successful linkage.
> > > This means that the only option to not have libnuma as dependency
> > > is to return back configuration option RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES
> > > as it was in the first version of the patch.
> > > 
> > > There is, actually, the third option (besides 2 already described):
> > > 
> > > 	3. Return back config option RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES
> > > 	   from the first version of the patch and *enable* it by default.
> > > 	   In this case anyone who doesn't want to have libnuma as dependency
> > > 	   will be able to disable the config option manually.
> > > 
> > > Thomas, what do you think? Bruce? Sergio?
> > It should be enabled on x86 and ppc, and disabled in other
> > default configurations (ARM for now).
> 
> Agree.
> 
> > > P.S. We're always able to implement syscall wrappers by hands without any
> > >       external dependencies, but I don't think it's a good decision.
> > I agree to use libnuma instead of re-inventing the wheel.
> > Let's just make it optional at build time and fallback on one node
> > if disabled.
> 
> That is the simple way out.
> 
> Sergio

  reply	other threads:[~2017-06-20 15:42 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170216130139eucas1p2512567d6f5db9eaac5ee840b56bf920a@eucas1p2.samsung.com>
2017-02-16 13:01 ` [PATCH] mem: balanced allocation of hugepages Ilya Maximets
2017-02-16 13:26   ` Tan, Jianfeng
2017-02-16 13:55     ` Ilya Maximets
2017-02-16 13:57       ` Ilya Maximets
2017-02-16 13:31   ` Bruce Richardson
2017-03-06  9:34   ` Ilya Maximets
2017-03-08 13:46     ` Sergio Gonzalez Monroy
2017-03-09 12:57       ` Ilya Maximets
2017-03-27 13:01         ` Sergio Gonzalez Monroy
2017-03-27 14:43           ` Ilya Maximets
2017-04-07 15:14             ` Ilya Maximets
2017-04-07 15:44               ` Thomas Monjalon
2017-04-10  7:11                 ` Ilya Maximets
2017-04-10  7:51                   ` Sergio Gonzalez Monroy
2017-04-10  8:05                     ` Ilya Maximets
2017-04-10  8:04   ` [PATCH v2] " Ilya Maximets
2017-04-10 10:03     ` Thomas Monjalon
2017-06-06  6:22     ` [PATCH v3 0/2] Balanced " Ilya Maximets
2017-06-06  6:22       ` [PATCH v3 1/2] mem: balanced " Ilya Maximets
2017-06-06  6:22       ` [PATCH v3 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-06  8:13       ` [PATCH v4 0/2] Balanced allocation of hugepages Ilya Maximets
2017-06-06  8:13         ` [PATCH v4 1/2] mem: balanced " Ilya Maximets
2017-06-06  8:13         ` [PATCH v4 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-06 13:33         ` [PATCH v5 0/2] Balanced allocation of hugepages Ilya Maximets
2017-06-06 13:33           ` [PATCH v5 1/2] mem: balanced " Ilya Maximets
2017-06-06 13:33           ` [PATCH v5 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-08 11:21           ` [PATCH v5 0/2] Balanced allocation of hugepages Ilya Maximets
2017-06-08 12:14             ` Bruce Richardson
2017-06-08 15:44               ` Sergio Gonzalez Monroy
2017-06-14  6:11                 ` Ilya Maximets
2017-06-19 11:10                   ` Hemant Agrawal
2017-06-20 13:07                     ` Thomas Monjalon
2017-06-20 13:58                       ` Ilya Maximets
2017-06-20 14:35                         ` Thomas Monjalon
2017-06-20 14:58                           ` Sergio Gonzalez Monroy
2017-06-20 15:41                             ` Jerin Jacob [this message]
2017-06-20 15:51                               ` Sergio Gonzalez Monroy
2017-06-21  8:14                               ` Hemant Agrawal
2017-06-21  8:25                                 ` Sergio Gonzalez Monroy
2017-06-21  8:36                                   ` Ilya Maximets
2017-06-21  8:41                                   ` Jerin Jacob
2017-06-21  8:49                                     ` Thomas Monjalon
2017-06-21  9:27                                       ` Jerin Jacob
2017-06-21  9:58                                         ` Thomas Monjalon
2017-06-21 10:29                                           ` Jerin Jacob
2017-06-21 10:36                                             ` Ilya Maximets
2017-06-21 11:22                                               ` Jerin Jacob
2017-06-21 11:29                                                 ` Thomas Monjalon
2017-06-27  9:13                                                 ` Hemant Agrawal
2017-06-27  9:26                                                   ` Thomas Monjalon
2017-06-27  9:48                                                     ` Hemant Agrawal
2017-06-21  8:04           ` [PATCH v6 " Ilya Maximets
2017-06-21  8:04             ` [PATCH v6 1/2] mem: balanced " Ilya Maximets
2017-06-21  8:51               ` Thomas Monjalon
2017-06-21  8:58                 ` Bruce Richardson
2017-06-21  9:25                   ` Ilya Maximets
2017-06-21  9:34                     ` Bruce Richardson
2017-06-21  9:28                   ` Thomas Monjalon
2017-06-21  8:04             ` [PATCH v6 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-21 10:08             ` [PATCH v7 0/2] Balanced allocation of hugepages Ilya Maximets
2017-06-21 10:08               ` [PATCH v7 1/2] mem: balanced " Ilya Maximets
2017-06-21 10:08               ` [PATCH v7 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-27  9:20                 ` Hemant Agrawal
2017-06-26 10:44               ` [PATCH v7 0/2] Balanced allocation of hugepages Ilya Maximets
2017-06-26 14:07                 ` Jerin Jacob
2017-06-26 15:33                 ` Sergio Gonzalez Monroy
2017-06-27  8:42                   ` Ilya Maximets
2017-06-27  8:46               ` [PATCH v8 " Ilya Maximets
2017-06-27  8:46                 ` [PATCH v8 1/2] mem: balanced " Ilya Maximets
2017-06-27  8:46                 ` [PATCH v8 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-27  9:18                   ` Hemant Agrawal
2017-06-27  9:21                     ` Thomas Monjalon
2017-06-27  9:41                       ` Hemant Agrawal
2017-06-27  9:59                         ` Thomas Monjalon
2017-06-27  9:59                         ` Jerin Jacob
2017-06-27 12:17                           ` Hemant Agrawal
2017-06-27 12:45                             ` Jerin Jacob
2017-06-27 13:00                               ` Hemant Agrawal
2017-06-27  9:19                   ` Thomas Monjalon
2017-06-27 10:26                     ` Ilya Maximets
2017-06-27 10:24                 ` [PATCH v9 0/2] Balanced allocation of hugepages Ilya Maximets
2017-06-27 10:24                   ` [PATCH v9 1/2] mem: balanced " Ilya Maximets
2017-06-28 10:30                     ` Sergio Gonzalez Monroy
2017-06-29  5:32                     ` Hemant Agrawal
2017-06-29  5:48                       ` Ilya Maximets
2017-06-29  6:08                         ` Ilya Maximets
2017-06-27 10:24                   ` [PATCH v9 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-29  5:31                     ` Hemant Agrawal
2017-06-29  5:59                   ` [PATCH v10 0/2] Balanced allocation of hugepages Ilya Maximets
2017-06-29  5:59                     ` [PATCH v10 1/2] mem: balanced " Ilya Maximets
2017-06-29  7:03                       ` Hemant Agrawal
2017-06-29  5:59                     ` [PATCH v10 2/2] config: enable vhost numa awareness by default Ilya Maximets
2017-06-30 15:50                       ` Thomas Monjalon
2017-06-29  6:29                     ` [PATCH v10 0/2] Balanced allocation of hugepages Jerin Jacob
2017-06-30  8:36                       ` Ilya Maximets
2017-06-30 16:12                     ` [PATCH v11 " Thomas Monjalon
2017-06-30 16:12                       ` [PATCH v11 1/2] mem: balanced " Thomas Monjalon
2017-06-30 16:12                       ` [PATCH v11 2/2] config: enable vhost NUMA awareness by default Thomas Monjalon
2017-07-01 10:59                       ` [PATCH v11 0/2] Balanced allocation of hugepages Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170620154138.GA8453@jerin \
    --to=jerin.jacob@caviumnetworks.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@6wind.com \
    --cc=dev@dpdk.org \
    --cc=heetae82.ahn@samsung.com \
    --cc=hemant.agrawal@nxp.com \
    --cc=i.maximets@samsung.com \
    --cc=jianfeng.tan@intel.com \
    --cc=nhorman@tuxdriver.com \
    --cc=sergio.gonzalez.monroy@intel.com \
    --cc=thomas@monjalon.net \
    --cc=yliu@fridaylinux.org \
    --cc=yulong.pei@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox