[dpdk-dev] [PATCH] eal: decrease the memory init time with many hugepages setup

2015-04-03 Thread Lilijun
On 2015/4/3 17:14, Thomas Monjalon wrote: > 2015-04-03 10:04, Gonzalez Monroy, Sergio: >> On 02/04/2015 14:41, Jay Rolette wrote: >>> On Thu, Apr 2, 2015 at 7:55 AM, Thomas Monjalon >> 6wind.com> >>> wrote: >>> 2015-04-02 19:30, jerry.lilijun at huawei.com: > From: Lilijun > > In

[dpdk-dev] [PATCH] eal: decrease the memory init time with many hugepages setup

2015-04-03 Thread Gonzalez Monroy, Sergio
On 03/04/2015 10:14, Thomas Monjalon wrote: > 2015-04-03 10:04, Gonzalez Monroy, Sergio: >> On 02/04/2015 14:41, Jay Rolette wrote: >>> On Thu, Apr 2, 2015 at 7:55 AM, Thomas Monjalon >> 6wind.com> >>> wrote: >>> 2015-04-02 19:30, jerry.lilijun at huawei.com: > From: Lilijun > > I

[dpdk-dev] [PATCH] eal: decrease the memory init time with many hugepages setup

2015-04-03 Thread Gonzalez Monroy, Sergio
On 02/04/2015 14:41, Jay Rolette wrote: > On Thu, Apr 2, 2015 at 7:55 AM, Thomas Monjalon > wrote: > >> 2015-04-02 19:30, jerry.lilijun at huawei.com: >>> From: Lilijun >>> >>> In the function map_all_hugepages(), hugepage memory is truly allocated >> by >>> memset(virtaddr, 0, hugepage_sz). Then

[dpdk-dev] [PATCH] eal: decrease the memory init time with many hugepages setup

2015-04-03 Thread Thomas Monjalon
2015-04-03 10:04, Gonzalez Monroy, Sergio: > On 02/04/2015 14:41, Jay Rolette wrote: > > On Thu, Apr 2, 2015 at 7:55 AM, Thomas Monjalon > 6wind.com> > > wrote: > > > >> 2015-04-02 19:30, jerry.lilijun at huawei.com: > >>> From: Lilijun > >>> > >>> In the function map_all_hugepages(), hugepage me

[dpdk-dev] [PATCH] eal: decrease the memory init time with many hugepages setup

2015-04-02 Thread jerry.lili...@huawei.com
From: Lilijun In the function map_all_hugepages(), hugepage memory is truly allocated by memset(virtaddr, 0, hugepage_sz). Then it costs about 40s to finish the dpdk memory initialization when 4 2M hugepages are setup in host os. In fact we can only write one byte to finish the allocation.

[dpdk-dev] [PATCH] eal: decrease the memory init time with many hugepages setup

2015-04-02 Thread Thomas Monjalon
2015-04-02 19:30, jerry.lilijun at huawei.com: > From: Lilijun > > In the function map_all_hugepages(), hugepage memory is truly allocated by > memset(virtaddr, 0, hugepage_sz). Then it costs about 40s to finish the > dpdk memory initialization when 4 2M hugepages are setup in host os. Yes i

[dpdk-dev] [PATCH] eal: decrease the memory init time with many hugepages setup

2015-04-02 Thread Jay Rolette
On Thu, Apr 2, 2015 at 7:55 AM, Thomas Monjalon wrote: > 2015-04-02 19:30, jerry.lilijun at huawei.com: > > From: Lilijun > > > > In the function map_all_hugepages(), hugepage memory is truly allocated > by > > memset(virtaddr, 0, hugepage_sz). Then it costs about 40s to finish the > > dpdk memo