From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 378] takes more than 500ms to allocate memory from a certain heap
Date: Tue, 31 Dec 2019 07:57:50 +0000 [thread overview]
Message-ID: <bug-378-3@http.bugs.dpdk.org/> (raw)
https://bugs.dpdk.org/show_bug.cgi?id=378
Bug ID: 378
Summary: takes more than 500ms to allocate memory from a
certain heap
Product: DPDK
Version: 18.11
Hardware: ARM
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: chuqifang@hisilicon.com
Target Milestone: ---
file: lib/librte_eal/common/malloc_heap.c
function: malloc_heap_alloc_on_heap_id
code snippet:
if (!alloc_more_mem_on_socket(heap, size, socket_id, flags, align,
bound, contig)) {
ret = heap_alloc(heap, type, size, flags, align, bound,
contig);
/* this should have succeeded */
if (ret == NULL)
RTE_LOG(ERR, EAL, "Error allocating from heap\n");
}
alloc_more_mem_on_socket takes more than 500ms when numa node0 runs out of
memory.
our program has 64 threads which all can get memory from dpdk(hugepagesz=1G).
our business code can not go well with such code snippet, so we remove
alloc_more_mem_on_socket in malloc_heap_alloc_on_heap_id, we test it more than
1 month, and it runs ok
so, is there any side effect when i remove alloc_more_mem_on_socket in
malloc_heap_alloc_on_heap_id?
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2019-12-31 7:57 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=bug-378-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--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).