DPDK usage discussions
 help / color / mirror / Atom feed
From: "Tan, Jianfeng" <jianfeng.tan@intel.com>
To: Imre Pinter <imre.pinter@ericsson.com>,
	Marco Varlese <marco.varlese@suse.com>,
	"users@dpdk.org" <users@dpdk.org>
Cc: "Gabor Halász" <gabor.halasz@ericsson.com>,
	"Péter Suskovics" <peter.suskovics@ericsson.com>
Subject: Re: [dpdk-users] Slow DPDK startup with many 1G hugepages
Date: Wed, 7 Jun 2017 16:22:25 +0800	[thread overview]
Message-ID: <33eb312f-60b2-a0fe-3027-4cd4490f001d@intel.com> (raw)
In-Reply-To: <VI1PR07MB13577DEE47414D3293CCBDA480CB0@VI1PR07MB1357.eurprd07.prod.outlook.com>



On 6/6/2017 11:25 PM, Imre Pinter wrote:
> [...]
> I've double-checked it, and if I combine Step (1) and Step (2), then OVS start end up in the following error:
> EAL: Detected 32 lcore(s)
> EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
> EAL: Probing VFIO support...
> EAL: Not enough memory available on socket 1! Requested: 1024MB, available: 0MB
> PANIC in rte_eal_init():
> Cannot init memory
>
> I experienced the same behavior with testpmd.
> However when they use hugepages from the 'huge_qemu_1G' mountpoint, then they start properly.
>
> Br,
> Imre

Ah yes, I tried by myself and encounter similar error as you. And try to 
deep dive into kernel hugetlb related code to see what's going on:

The hugepage allocation path is: hugetlb_fault -> hugetlb_no_page -> 
alloc_huge_page -> dequeue_huge_page_vma. Inside 
dequeue_huge_page_vma(), we can see the code logic to iterate node. But 
from huge_zonelist(), we can see "interleave" policy only applies to a 
VMA. In our case, each hugepage file is an independent VMA. As a result, 
we will go though all hugepages from node to another node one by one.

Sorry that I take "interleave" as granted. Fortunately, there is a try 
to fix this: http://dpdk.org/dev/patchwork/patch/25069/.
Besides, we can write a simple application which will allocate all 
hugepages except those used by OVS-DPDK.

Thanks,
Jianfeng

  reply	other threads:[~2017-06-07  8:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <VI1PR07MB1357C989E2F7092D9A31ED9F80F30@VI1PR07MB1357.eurprd07.prod.outlook.com>
2017-06-01  7:55 ` Imre Pinter
2017-06-01  8:50   ` Tan, Jianfeng
2017-06-01 10:12     ` Marco Varlese
2017-06-02  1:40       ` Tan, Jianfeng
2017-06-06 12:39         ` Imre Pinter
2017-06-06 14:31           ` Tan, Jianfeng
2017-06-06 15:25             ` Imre Pinter
2017-06-07  8:22               ` Tan, Jianfeng [this message]
2017-06-08 14:40                 ` Imre Pinter
2017-06-01  9:02   ` Sergio Gonzalez Monroy
2017-06-08 14:30     ` Imre Pinter

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=33eb312f-60b2-a0fe-3027-4cd4490f001d@intel.com \
    --to=jianfeng.tan@intel.com \
    --cc=gabor.halasz@ericsson.com \
    --cc=imre.pinter@ericsson.com \
    --cc=marco.varlese@suse.com \
    --cc=peter.suskovics@ericsson.com \
    --cc=users@dpdk.org \
    /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;
as well as URLs for NNTP newsgroup(s).