From: Dennis Montgomery <dmontgomery@128technology.com>
To: dev@dpdk.org
Subject: [dpdk-dev] How can I recover from CONFIG_RTE_MAX_MEMSEG overrun?
Date: Wed, 11 Mar 2015 11:53:44 -0400 [thread overview]
Message-ID: <A3212961-9577-4316-B3BA-94920C4DACA9@128technology.com> (raw)
Hello,
I’m running into an occasional problem where rte_eal_init() returns -ENOMEM and the following error is logged:
EAL: Can only reserve 991 pages from 1024 requested
Current CONFIG_RTE_MAX_MEMSEG=256 is not enough
When this happens a reboot will take care of it, but I’m hoping for a more elegant solution. I don’t have much direct experience with hugetlbfs so I’m hoping someone on this list can suggest something.
I did boost max-memseg and it works, but I’m worried that it will just crop up again - I instrumented rte_eal_hugepage_init() and found that the number of segments used slowly creeps up as I cycle my application (i.e. repeated rte_eal_init() invocations with process-type == primary). I’m theorizing that hugetlbfs fragments (for lack of a better phrase) over time. Does anyone on the list know of a way to reset hugetlbfs short of rebooting?
DPDK version:
EAL: RTE Version: 'RTE 1.8.0-rc0'
Linux version 3.16.6-200.fc20.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-7) (GCC) ) #1 SMP Wed Oct 15 13:06:51 UTC 2014
Thank you,
Dennis Montgomery
PS this is my first post to this list; apologies if I’m violating any protocols.
reply other threads:[~2015-03-11 15:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=A3212961-9577-4316-B3BA-94920C4DACA9@128technology.com \
--to=dmontgomery@128technology.com \
--cc=dev@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).