* [dpdk-dev] [PATCH] doc: correct the hugepage limitation of 32 bit
@ 2017-04-28 3:49 Qi Zhang
2017-04-28 7:40 ` Mcnamara, John
0 siblings, 1 reply; 3+ messages in thread
From: Qi Zhang @ 2017-04-28 3:49 UTC (permalink / raw)
To: john.mcnamara; +Cc: dev, Qi Zhang
The hugepage memory limitation of 32 bit application is
"1GB size" but not "1GB per page size".
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
---
doc/guides/faq/faq.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/guides/faq/faq.rst b/doc/guides/faq/faq.rst
index 40c793c..308a287 100644
--- a/doc/guides/faq/faq.rst
+++ b/doc/guides/faq/faq.rst
@@ -66,14 +66,14 @@ To request memory to be reserved on a specific socket, please use the --socket-m
I am running a 32-bit DPDK application on a NUMA system, and sometimes the application initializes fine but cannot allocate memory. Why is that happening?
----------------------------------------------------------------------------------------------------------------------------------------------------------
-32-bit applications have limitations in terms of how much virtual memory is available, hence the number of hugepages they are able to allocate is also limited (1 GB per page size).
-If your system has a lot (>1 GB per page size) of hugepage memory, not all of it will be allocated.
+32-bit applications have limitations in terms of how much virtual memory is available, hence the number of hugepages they are able to allocate is also limited (1 GB size).
+If your system has a lot (>1 GB size) of hugepage memory, not all of it will be allocated.
Due to hugepages typically being allocated on a local NUMA node, the hugepages allocation the application gets during the initialization depends on which
NUMA node it is running on (the EAL does not affinitize cores until much later in the initialization process).
Sometimes, the Linux OS runs the DPDK application on a core that is located on a different NUMA node from DPDK master core and
therefore all the hugepages are allocated on the wrong socket.
-To avoid this scenario, either lower the amount of hugepage memory available to 1 GB per page size (or less), or run the application with taskset
+To avoid this scenario, either lower the amount of hugepage memory available to 1 GB size (or less), or run the application with taskset
affinitizing the application to a would-be master core.
For example, if your EAL coremask is 0xff0, the master core will usually be the first core in the coremask (0x10); this is what you have to supply to taskset::
--
2.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: correct the hugepage limitation of 32 bit
2017-04-28 3:49 [dpdk-dev] [PATCH] doc: correct the hugepage limitation of 32 bit Qi Zhang
@ 2017-04-28 7:40 ` Mcnamara, John
2017-04-30 22:24 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Mcnamara, John @ 2017-04-28 7:40 UTC (permalink / raw)
To: Zhang, Qi Z; +Cc: dev
> -----Original Message-----
> From: Zhang, Qi Z
> Sent: Friday, April 28, 2017 4:50 AM
> To: Mcnamara, John <john.mcnamara@intel.com>
> Cc: dev@dpdk.org; Zhang, Qi Z <qi.z.zhang@intel.com>
> Subject: [PATCH] doc: correct the hugepage limitation of 32 bit
>
> The hugepage memory limitation of 32 bit application is "1GB size" but not
> "1GB per page size".
>
> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Thanks for the correction.
Acked-by: John McNamara <john.mcnamara@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: correct the hugepage limitation of 32 bit
2017-04-28 7:40 ` Mcnamara, John
@ 2017-04-30 22:24 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2017-04-30 22:24 UTC (permalink / raw)
To: Zhang, Qi Z; +Cc: dev, Mcnamara, John
> > The hugepage memory limitation of 32 bit application is "1GB size" but not
> > "1GB per page size".
> >
> > Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
>
> Thanks for the correction.
>
> Acked-by: John McNamara <john.mcnamara@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-30 22:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-28 3:49 [dpdk-dev] [PATCH] doc: correct the hugepage limitation of 32 bit Qi Zhang
2017-04-28 7:40 ` Mcnamara, John
2017-04-30 22:24 ` Thomas Monjalon
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).