Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-06 Thread 王志克
Thanks Sergio. It really helps. Br, Wang Zhike -Original Message- From: Sergio Gonzalez Monroy [mailto:sergio.gonzalez.mon...@intel.com] Sent: Wednesday, September 06, 2017 3:37 PM To: Pavan Nikhilesh Bhagavatula; 王志克 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] long initialization of

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-06 Thread 王志克
Thanks Jianfeng for your suggestion. I get the point. Br, Wang Zhike -Original Message- From: Tan, Jianfeng [mailto:jianfeng@intel.com] Sent: Wednesday, September 06, 2017 3:18 PM To: 王志克; us...@dpdk.org; dev@dpdk.org Subject: RE: long initialization of rte_eal_hugepage_init > ---

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-06 Thread Sergio Gonzalez Monroy
On 06/09/2017 05:35, Pavan Nikhilesh Bhagavatula wrote: On Wed, Sep 06, 2017 at 03:24:52AM +, 王志克 wrote: Hi All, I observed that rte_eal_hugepage_init() will take quite long time if there are lots of huge pages. Example I have 500 1G huge pages, and it takes about 2 minutes. That is too l

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-06 Thread Tan, Jianfeng
> -Original Message- > From: 王志克 [mailto:wangzh...@jd.com] > Sent: Wednesday, September 6, 2017 2:03 PM > To: Tan, Jianfeng; us...@dpdk.org; dev@dpdk.org > Subject: RE: long initialization of rte_eal_hugepage_init > > Do you mean "pagesize" when you say "size" option? I have specified th

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-05 Thread 王志克
dk.org; us...@dpdk.org Subject: Re: [dpdk-dev] long initialization of rte_eal_hugepage_init Linux zeros huge pages by default. There was a fix in later releases On Sep 5, 2017 8:24 PM, "王志克" mailto:wangzh...@jd.com>> wrote: Hi All, I observed that rte_eal_hugepage_init() will t

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-05 Thread 王志克
Do you mean "pagesize" when you say "size" option? I have specified the pagesize as 1G. Also, I already use "--socket-mem " to specify that the application only needs 1G per NUMA node. The problem is that map_all_hugepages() would map all free huge pages, and then select the proper ones. If I h

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-05 Thread Tan, Jianfeng
> -Original Message- > From: users [mailto:users-boun...@dpdk.org] On Behalf Of ??? > Sent: Wednesday, September 6, 2017 11:25 AM > To: us...@dpdk.org; dev@dpdk.org > Subject: [dpdk-users] long initialization of rte_eal_hugepage_init > > Hi All, > > I observed that rte_eal_hugepage_init

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-05 Thread Pavan Nikhilesh Bhagavatula
On Wed, Sep 06, 2017 at 03:24:52AM +, 王志克 wrote: > Hi All, > > I observed that rte_eal_hugepage_init() will take quite long time if there > are lots of huge pages. Example I have 500 1G huge pages, and it takes about > 2 minutes. That is too long especially for application restart case. > > I

Re: [dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-05 Thread Stephen Hemminger
Linux zeros huge pages by default. There was a fix in later releases On Sep 5, 2017 8:24 PM, "王志克" wrote: > Hi All, > > I observed that rte_eal_hugepage_init() will take quite long time if there > are lots of huge pages. Example I have 500 1G huge pages, and it takes > about 2 minutes. That is t

[dpdk-dev] long initialization of rte_eal_hugepage_init

2017-09-05 Thread 王志克
Hi All, I observed that rte_eal_hugepage_init() will take quite long time if there are lots of huge pages. Example I have 500 1G huge pages, and it takes about 2 minutes. That is too long especially for application restart case. If the application only needs limited huge page while the host hav