* Help needed with hugepages
@ 2024-10-23 15:04 David Aldrich
2024-10-23 15:39 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: David Aldrich @ 2024-10-23 15:04 UTC (permalink / raw)
To: users
Hi, we are running on Ubuntu 24.04. The kernel parameters include:
default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024
No mount point is specified for the huge pages as secondary process
support is not required.
The o/s reports:
$ cat /proc/meminfo | grep HugePages_Total
HugePages_Total: 25
$ cat /proc/meminfo | grep Hugepagesize
Hugepagesize: 1048576 kB
Why does it not report the 2M pages?
When our application runs I see:
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs
found for that size
Is that an error condition?
Best regards
David
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help needed with hugepages
2024-10-23 15:04 Help needed with hugepages David Aldrich
@ 2024-10-23 15:39 ` Stephen Hemminger
2024-10-23 16:47 ` David Aldrich
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2024-10-23 15:39 UTC (permalink / raw)
To: David Aldrich; +Cc: users
On Wed, 23 Oct 2024 16:04:06 +0100
David Aldrich <david.aldrich.ntml@gmail.com> wrote:
> Hi, we are running on Ubuntu 24.04. The kernel parameters include:
>
> default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024
>
Maybe mixing hugepage sizes can cause confusion?
Did you try using dpdk-hugepages script?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help needed with hugepages
2024-10-23 15:39 ` Stephen Hemminger
@ 2024-10-23 16:47 ` David Aldrich
2024-10-23 16:51 ` David Aldrich
0 siblings, 1 reply; 6+ messages in thread
From: David Aldrich @ 2024-10-23 16:47 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: users
On Wed, Oct 23, 2024 at 4:39 PM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Wed, 23 Oct 2024 16:04:06 +0100
> David Aldrich <david.aldrich.ntml@gmail.com> wrote:
>
> > Hi, we are running on Ubuntu 24.04. The kernel parameters include:
> >
> > default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024
> >
>
> Maybe mixing hugepage sizes can cause confusion?
>
> Did you try using dpdk-hugepages script?
Thanks. The script shows:
$ dpdk-hugepages.py -s
Node Pages Size Total
0 1024 2Mb 2Gb
0 25 1Gb 25Gb
So that looks correct.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help needed with hugepages
2024-10-23 16:47 ` David Aldrich
@ 2024-10-23 16:51 ` David Aldrich
2024-10-23 16:54 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: David Aldrich @ 2024-10-23 16:51 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: users
I guess it is because the huge pages are not mounted. Is mounting
required if using kernel parameters to specify the sizes?
On Wed, Oct 23, 2024 at 5:47 PM David Aldrich
<david.aldrich.ntml@gmail.com> wrote:
>
> On Wed, Oct 23, 2024 at 4:39 PM Stephen Hemminger
> <stephen@networkplumber.org> wrote:
> >
> > On Wed, 23 Oct 2024 16:04:06 +0100
> > David Aldrich <david.aldrich.ntml@gmail.com> wrote:
> >
> > > Hi, we are running on Ubuntu 24.04. The kernel parameters include:
> > >
> > > default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024
> > >
> >
> > Maybe mixing hugepage sizes can cause confusion?
> >
> > Did you try using dpdk-hugepages script?
>
> Thanks. The script shows:
>
> $ dpdk-hugepages.py -s
> Node Pages Size Total
> 0 1024 2Mb 2Gb
> 0 25 1Gb 25Gb
>
> So that looks correct.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help needed with hugepages
2024-10-23 16:51 ` David Aldrich
@ 2024-10-23 16:54 ` Stephen Hemminger
2024-10-23 17:09 ` David Aldrich
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2024-10-23 16:54 UTC (permalink / raw)
To: David Aldrich; +Cc: users
On Wed, 23 Oct 2024 17:51:28 +0100
David Aldrich <david.aldrich.ntml@gmail.com> wrote:
> I guess it is because the huge pages are not mounted. Is mounting
> required if using kernel parameters to specify the sizes?
>
> On Wed, Oct 23, 2024 at 5:47 PM David Aldrich
> <david.aldrich.ntml@gmail.com> wrote:
> >
> > On Wed, Oct 23, 2024 at 4:39 PM Stephen Hemminger
> > <stephen@networkplumber.org> wrote:
> > >
> > > On Wed, 23 Oct 2024 16:04:06 +0100
> > > David Aldrich <david.aldrich.ntml@gmail.com> wrote:
> > >
> > > > Hi, we are running on Ubuntu 24.04. The kernel parameters include:
> > > >
> > > > default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024
> > > >
> > >
> > > Maybe mixing hugepage sizes can cause confusion?
> > >
> > > Did you try using dpdk-hugepages script?
> >
> > Thanks. The script shows:
> >
> > $ dpdk-hugepages.py -s
> > Node Pages Size Total
> > 0 1024 2Mb 2Gb
> > 0 25 1Gb 25Gb
> >
> > So that looks correct.
The DPDK uses the mounted huge pages to find/use them.
https://edc.intel.com/content/www/us/en/design/products/ethernet/config-guide-e810-dpdk/hugepages-setup/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help needed with hugepages
2024-10-23 16:54 ` Stephen Hemminger
@ 2024-10-23 17:09 ` David Aldrich
0 siblings, 0 replies; 6+ messages in thread
From: David Aldrich @ 2024-10-23 17:09 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: users
Thanks for your help.
On Wed, Oct 23, 2024 at 5:54 PM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Wed, 23 Oct 2024 17:51:28 +0100
> David Aldrich <david.aldrich.ntml@gmail.com> wrote:
>
> > I guess it is because the huge pages are not mounted. Is mounting
> > required if using kernel parameters to specify the sizes?
> >
> > On Wed, Oct 23, 2024 at 5:47 PM David Aldrich
> > <david.aldrich.ntml@gmail.com> wrote:
> > >
> > > On Wed, Oct 23, 2024 at 4:39 PM Stephen Hemminger
> > > <stephen@networkplumber.org> wrote:
> > > >
> > > > On Wed, 23 Oct 2024 16:04:06 +0100
> > > > David Aldrich <david.aldrich.ntml@gmail.com> wrote:
> > > >
> > > > > Hi, we are running on Ubuntu 24.04. The kernel parameters include:
> > > > >
> > > > > default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024
> > > > >
> > > >
> > > > Maybe mixing hugepage sizes can cause confusion?
> > > >
> > > > Did you try using dpdk-hugepages script?
> > >
> > > Thanks. The script shows:
> > >
> > > $ dpdk-hugepages.py -s
> > > Node Pages Size Total
> > > 0 1024 2Mb 2Gb
> > > 0 25 1Gb 25Gb
> > >
> > > So that looks correct.
>
> The DPDK uses the mounted huge pages to find/use them.
>
>
> https://edc.intel.com/content/www/us/en/design/products/ethernet/config-guide-e810-dpdk/hugepages-setup/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-10-23 17:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-23 15:04 Help needed with hugepages David Aldrich
2024-10-23 15:39 ` Stephen Hemminger
2024-10-23 16:47 ` David Aldrich
2024-10-23 16:51 ` David Aldrich
2024-10-23 16:54 ` Stephen Hemminger
2024-10-23 17:09 ` David Aldrich
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).