* [dpdk-dev] Hugepages not being deleted
@ 2019-04-23 15:15 Michael Santana Francisco
2019-04-23 15:15 ` Michael Santana Francisco
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Michael Santana Francisco @ 2019-04-23 15:15 UTC (permalink / raw)
To: dev
Hello,
I am currently working on a patch to fix the eal_flags_autotest test as
it currently fails on many platforms.
I have made some progress, however I stumbled upon a possible issue with
EAL and hugepages.
Looking at the code and some documentation it appears to me that
hupepages are supposed to be automatically deleted on dynamic memory
mode as the dpdk process exits.
The test however reports that this is not happening.
This can be shown by:
bash# export DPDK_TEST=eal_flags_autotest
bash# ./build/app/test/dpdk-test
...
Error - hugepage files for memtest1 were not deleted!
Error in test_file_prefix()
Test Failed
bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages
memtest1map_0 memtest1map_1 memtest1map_2 memtest1map_3
memtest1map_4 memtest1map_5 memtest1map_6 memtest1map_7
memtest1map_8 rtemap_0
To me it appears that the hugepages are in fact not being deleted correctly.
Is this an anomaly or is anyone else seeing this issue as well?
Michael Santana
Note, if you are running on a system with less than 8 cores please see
patch
https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch
^ permalink raw reply [flat|nested] 12+ messages in thread
* [dpdk-dev] Hugepages not being deleted
2019-04-23 15:15 [dpdk-dev] Hugepages not being deleted Michael Santana Francisco
@ 2019-04-23 15:15 ` Michael Santana Francisco
2019-04-29 18:28 ` Michael Santana Francisco
2019-04-30 9:32 ` Burakov, Anatoly
2 siblings, 0 replies; 12+ messages in thread
From: Michael Santana Francisco @ 2019-04-23 15:15 UTC (permalink / raw)
To: dev
Hello,
I am currently working on a patch to fix the eal_flags_autotest test as
it currently fails on many platforms.
I have made some progress, however I stumbled upon a possible issue with
EAL and hugepages.
Looking at the code and some documentation it appears to me that
hupepages are supposed to be automatically deleted on dynamic memory
mode as the dpdk process exits.
The test however reports that this is not happening.
This can be shown by:
bash# export DPDK_TEST=eal_flags_autotest
bash# ./build/app/test/dpdk-test
...
Error - hugepage files for memtest1 were not deleted!
Error in test_file_prefix()
Test Failed
bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages
memtest1map_0 memtest1map_1 memtest1map_2 memtest1map_3
memtest1map_4 memtest1map_5 memtest1map_6 memtest1map_7
memtest1map_8 rtemap_0
To me it appears that the hugepages are in fact not being deleted correctly.
Is this an anomaly or is anyone else seeing this issue as well?
Michael Santana
Note, if you are running on a system with less than 8 cores please see
patch
https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-04-23 15:15 [dpdk-dev] Hugepages not being deleted Michael Santana Francisco
2019-04-23 15:15 ` Michael Santana Francisco
@ 2019-04-29 18:28 ` Michael Santana Francisco
2019-04-29 18:28 ` Michael Santana Francisco
2019-04-30 9:32 ` Burakov, Anatoly
2 siblings, 1 reply; 12+ messages in thread
From: Michael Santana Francisco @ 2019-04-29 18:28 UTC (permalink / raw)
To: dev; +Cc: anatoly.burakov
ping
> Hello,
>
> I am currently working on a patch to fix the eal_flags_autotest test
> as it currently fails on many platforms.
> I have made some progress, however I stumbled upon a possible issue
> with EAL and hugepages.
> Looking at the code and some documentation it appears to me that
> hupepages are supposed to be automatically deleted on dynamic memory
> mode as the dpdk process exits.
> The test however reports that this is not happening.
>
> This can be shown by:
>
> bash# export DPDK_TEST=eal_flags_autotest
> bash# ./build/app/test/dpdk-test
> ...
> Error - hugepage files for memtest1 were not deleted!
> Error in test_file_prefix()
> Test Failed
> bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages
> memtest1map_0 memtest1map_1 memtest1map_2 memtest1map_3
> memtest1map_4 memtest1map_5 memtest1map_6 memtest1map_7
> memtest1map_8 rtemap_0
>
> To me it appears that the hugepages are in fact not being deleted
> correctly.
> Is this an anomaly or is anyone else seeing this issue as well?
>
> Michael Santana
>
>
> Note, if you are running on a system with less than 8 cores please see
> patch
> https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-04-29 18:28 ` Michael Santana Francisco
@ 2019-04-29 18:28 ` Michael Santana Francisco
0 siblings, 0 replies; 12+ messages in thread
From: Michael Santana Francisco @ 2019-04-29 18:28 UTC (permalink / raw)
To: dev; +Cc: anatoly.burakov
ping
> Hello,
>
> I am currently working on a patch to fix the eal_flags_autotest test
> as it currently fails on many platforms.
> I have made some progress, however I stumbled upon a possible issue
> with EAL and hugepages.
> Looking at the code and some documentation it appears to me that
> hupepages are supposed to be automatically deleted on dynamic memory
> mode as the dpdk process exits.
> The test however reports that this is not happening.
>
> This can be shown by:
>
> bash# export DPDK_TEST=eal_flags_autotest
> bash# ./build/app/test/dpdk-test
> ...
> Error - hugepage files for memtest1 were not deleted!
> Error in test_file_prefix()
> Test Failed
> bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages
> memtest1map_0 memtest1map_1 memtest1map_2 memtest1map_3
> memtest1map_4 memtest1map_5 memtest1map_6 memtest1map_7
> memtest1map_8 rtemap_0
>
> To me it appears that the hugepages are in fact not being deleted
> correctly.
> Is this an anomaly or is anyone else seeing this issue as well?
>
> Michael Santana
>
>
> Note, if you are running on a system with less than 8 cores please see
> patch
> https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-04-23 15:15 [dpdk-dev] Hugepages not being deleted Michael Santana Francisco
2019-04-23 15:15 ` Michael Santana Francisco
2019-04-29 18:28 ` Michael Santana Francisco
@ 2019-04-30 9:32 ` Burakov, Anatoly
2019-04-30 9:32 ` Burakov, Anatoly
2019-05-17 14:06 ` David Marchand
2 siblings, 2 replies; 12+ messages in thread
From: Burakov, Anatoly @ 2019-04-30 9:32 UTC (permalink / raw)
To: msantana, dev
On 23-Apr-19 4:15 PM, Michael Santana Francisco wrote:
> Hello,
>
> I am currently working on a patch to fix the eal_flags_autotest test as
> it currently fails on many platforms.
> I have made some progress, however I stumbled upon a possible issue with
> EAL and hugepages.
> Looking at the code and some documentation it appears to me that
> hupepages are supposed to be automatically deleted on dynamic memory
> mode as the dpdk process exits.
> The test however reports that this is not happening.
Apologies, this email has slipped through the cracks.
Hugepages not being deleted can happen in certain circumstances (such as
drivers allocating things and not freeing them later), and there's
little DPDK EAL can do to fix it - if the memory is used, it's not safe
to just pull it out from under whoever is using it.
The best you can do is find what is allocating that memory, and fix the
problem at the source.
>
> This can be shown by:
>
> bash# export DPDK_TEST=eal_flags_autotest
> bash# ./build/app/test/dpdk-test
> ...
> Error - hugepage files for memtest1 were not deleted!
> Error in test_file_prefix()
> Test Failed
> bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages
> memtest1map_0 memtest1map_1 memtest1map_2 memtest1map_3
> memtest1map_4 memtest1map_5 memtest1map_6 memtest1map_7
> memtest1map_8 rtemap_0
>
> To me it appears that the hugepages are in fact not being deleted
> correctly.
> Is this an anomaly or is anyone else seeing this issue as well?
>
> Michael Santana
>
>
> Note, if you are running on a system with less than 8 cores please see
> patch
> https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch
>
>
--
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-04-30 9:32 ` Burakov, Anatoly
@ 2019-04-30 9:32 ` Burakov, Anatoly
2019-05-17 14:06 ` David Marchand
1 sibling, 0 replies; 12+ messages in thread
From: Burakov, Anatoly @ 2019-04-30 9:32 UTC (permalink / raw)
To: msantana, dev
On 23-Apr-19 4:15 PM, Michael Santana Francisco wrote:
> Hello,
>
> I am currently working on a patch to fix the eal_flags_autotest test as
> it currently fails on many platforms.
> I have made some progress, however I stumbled upon a possible issue with
> EAL and hugepages.
> Looking at the code and some documentation it appears to me that
> hupepages are supposed to be automatically deleted on dynamic memory
> mode as the dpdk process exits.
> The test however reports that this is not happening.
Apologies, this email has slipped through the cracks.
Hugepages not being deleted can happen in certain circumstances (such as
drivers allocating things and not freeing them later), and there's
little DPDK EAL can do to fix it - if the memory is used, it's not safe
to just pull it out from under whoever is using it.
The best you can do is find what is allocating that memory, and fix the
problem at the source.
>
> This can be shown by:
>
> bash# export DPDK_TEST=eal_flags_autotest
> bash# ./build/app/test/dpdk-test
> ...
> Error - hugepage files for memtest1 were not deleted!
> Error in test_file_prefix()
> Test Failed
> bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages
> memtest1map_0 memtest1map_1 memtest1map_2 memtest1map_3
> memtest1map_4 memtest1map_5 memtest1map_6 memtest1map_7
> memtest1map_8 rtemap_0
>
> To me it appears that the hugepages are in fact not being deleted
> correctly.
> Is this an anomaly or is anyone else seeing this issue as well?
>
> Michael Santana
>
>
> Note, if you are running on a system with less than 8 cores please see
> patch
> https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch
>
>
--
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-04-30 9:32 ` Burakov, Anatoly
2019-04-30 9:32 ` Burakov, Anatoly
@ 2019-05-17 14:06 ` David Marchand
2019-05-20 10:43 ` Burakov, Anatoly
1 sibling, 1 reply; 12+ messages in thread
From: David Marchand @ 2019-05-17 14:06 UTC (permalink / raw)
To: Burakov, Anatoly; +Cc: Michael Santana, dev
Hello Anatoly,
Not sure what the issue is at the moment.
I too have an error on the eal_flags_autotest but what is worrying me is
that it works fine in 18.11.1 and 19.02.
Is there anything that rings a bell?
Thanks.
--
David Marchand
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-05-17 14:06 ` David Marchand
@ 2019-05-20 10:43 ` Burakov, Anatoly
2019-05-20 11:09 ` David Marchand
0 siblings, 1 reply; 12+ messages in thread
From: Burakov, Anatoly @ 2019-05-20 10:43 UTC (permalink / raw)
To: David Marchand; +Cc: Michael Santana, dev
On 17-May-19 3:06 PM, David Marchand wrote:
> Hello Anatoly,
>
> Not sure what the issue is at the moment.
> I too have an error on the eal_flags_autotest but what is worrying me is
> that it works fine in 18.11.1 and 19.02.
> Is there anything that rings a bell?
>
> Thanks.
>
> --
> David Marchand
Not to me. Last i checked they were passing.
--
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-05-20 10:43 ` Burakov, Anatoly
@ 2019-05-20 11:09 ` David Marchand
2019-05-20 11:45 ` Burakov, Anatoly
0 siblings, 1 reply; 12+ messages in thread
From: David Marchand @ 2019-05-20 11:09 UTC (permalink / raw)
To: Burakov, Anatoly; +Cc: Michael Santana, dev
On Mon, May 20, 2019 at 12:43 PM Burakov, Anatoly <anatoly.burakov@intel.com>
wrote:
> On 17-May-19 3:06 PM, David Marchand wrote:
> > Hello Anatoly,
> >
> > Not sure what the issue is at the moment.
> > I too have an error on the eal_flags_autotest but what is worrying me is
> > that it works fine in 18.11.1 and 19.02.
> > Is there anything that rings a bell?
> >
> > Thanks.
> >
> > --
> > David Marchand
>
> Not to me. Last i checked they were passing.
>
Bisected it, I will send a fix.
--
David Marchand
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-05-20 11:09 ` David Marchand
@ 2019-05-20 11:45 ` Burakov, Anatoly
2019-05-20 11:48 ` David Marchand
2019-05-20 15:08 ` Carrillo, Erik G
0 siblings, 2 replies; 12+ messages in thread
From: Burakov, Anatoly @ 2019-05-20 11:45 UTC (permalink / raw)
To: David Marchand; +Cc: Michael Santana, dev, Erik Gabriel Carrillo
On 20-May-19 12:09 PM, David Marchand wrote:
> On Mon, May 20, 2019 at 12:43 PM Burakov, Anatoly
> <anatoly.burakov@intel.com <mailto:anatoly.burakov@intel.com>> wrote:
>
> On 17-May-19 3:06 PM, David Marchand wrote:
> > Hello Anatoly,
> >
> > Not sure what the issue is at the moment.
> > I too have an error on the eal_flags_autotest but what is
> worrying me is
> > that it works fine in 18.11.1 and 19.02.
> > Is there anything that rings a bell?
> >
> > Thanks.
> >
> > --
> > David Marchand
>
> Not to me. Last i checked they were passing.
>
>
> Bisected it, I will send a fix.
>
>
> --
> David Marchand
I've bisected it too. I think Erik (author of original patch) already is
working on the problem. I don't think it's easily (and safely) solvable.
You can find more info in below threads:
http://patches.dpdk.org/patch/53191/
http://patches.dpdk.org/patch/53268/
--
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-05-20 11:45 ` Burakov, Anatoly
@ 2019-05-20 11:48 ` David Marchand
2019-05-20 15:08 ` Carrillo, Erik G
1 sibling, 0 replies; 12+ messages in thread
From: David Marchand @ 2019-05-20 11:48 UTC (permalink / raw)
To: Burakov, Anatoly; +Cc: Michael Santana, dev, Erik Gabriel Carrillo
On Mon, May 20, 2019 at 1:45 PM Burakov, Anatoly <anatoly.burakov@intel.com>
wrote:
> On 20-May-19 12:09 PM, David Marchand wrote:
> > On Mon, May 20, 2019 at 12:43 PM Burakov, Anatoly
> > <anatoly.burakov@intel.com <mailto:anatoly.burakov@intel.com>> wrote:
> >
> > On 17-May-19 3:06 PM, David Marchand wrote:
> > > Hello Anatoly,
> > >
> > > Not sure what the issue is at the moment.
> > > I too have an error on the eal_flags_autotest but what is
> > worrying me is
> > > that it works fine in 18.11.1 and 19.02.
> > > Is there anything that rings a bell?
> > >
> > > Thanks.
> > >
> > > --
> > > David Marchand
> >
> > Not to me. Last i checked they were passing.
> >
> >
> > Bisected it, I will send a fix.
> >
> >
> > --
> > David Marchand
>
> I've bisected it too. I think Erik (author of original patch) already is
> working on the problem. I don't think it's easily (and safely) solvable.
> You can find more info in below threads:
>
> http://patches.dpdk.org/patch/53191/
> http://patches.dpdk.org/patch/53268/
Thanks, indeed I was on this issue.
--
David Marchand
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] Hugepages not being deleted
2019-05-20 11:45 ` Burakov, Anatoly
2019-05-20 11:48 ` David Marchand
@ 2019-05-20 15:08 ` Carrillo, Erik G
1 sibling, 0 replies; 12+ messages in thread
From: Carrillo, Erik G @ 2019-05-20 15:08 UTC (permalink / raw)
To: Burakov, Anatoly, David Marchand; +Cc: Michael Santana, dev
> -----Original Message-----
> From: Burakov, Anatoly
> Sent: Monday, May 20, 2019 6:45 AM
> To: David Marchand <david.marchand@redhat.com>
> Cc: Michael Santana <msantana@redhat.com>; dev <dev@dpdk.org>;
> Carrillo, Erik G <erik.g.carrillo@intel.com>
> Subject: Re: [dpdk-dev] Hugepages not being deleted
>
> On 20-May-19 12:09 PM, David Marchand wrote:
> > On Mon, May 20, 2019 at 12:43 PM Burakov, Anatoly
> > <anatoly.burakov@intel.com <mailto:anatoly.burakov@intel.com>> wrote:
> >
> > On 17-May-19 3:06 PM, David Marchand wrote:
> > > Hello Anatoly,
> > >
> > > Not sure what the issue is at the moment.
> > > I too have an error on the eal_flags_autotest but what is
> > worrying me is
> > > that it works fine in 18.11.1 and 19.02.
> > > Is there anything that rings a bell?
> > >
> > > Thanks.
> > >
> > > --
> > > David Marchand
> >
> > Not to me. Last i checked they were passing.
> >
> >
> > Bisected it, I will send a fix.
> >
> >
> > --
> > David Marchand
>
> I've bisected it too. I think Erik (author of original patch) already is working on
> the problem. I don't think it's easily (and safely) solvable.
> You can find more info in below threads:
>
> http://patches.dpdk.org/patch/53191/
> http://patches.dpdk.org/patch/53268/
>
Yes, there a memzone that needs to be properly freed at finalize/cleanup time in the timer library. One way to free it safely was explored in the following:
http://patchwork.dpdk.org/patch/53334/
but that solution has ABI implications that were undesirable. Still looking for a better way.
Thanks,
Erik
> --
> Thanks,
> Anatoly
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2019-05-20 15:08 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-23 15:15 [dpdk-dev] Hugepages not being deleted Michael Santana Francisco
2019-04-23 15:15 ` Michael Santana Francisco
2019-04-29 18:28 ` Michael Santana Francisco
2019-04-29 18:28 ` Michael Santana Francisco
2019-04-30 9:32 ` Burakov, Anatoly
2019-04-30 9:32 ` Burakov, Anatoly
2019-05-17 14:06 ` David Marchand
2019-05-20 10:43 ` Burakov, Anatoly
2019-05-20 11:09 ` David Marchand
2019-05-20 11:45 ` Burakov, Anatoly
2019-05-20 11:48 ` David Marchand
2019-05-20 15:08 ` Carrillo, Erik G
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).