Philippe,
This worked! Thank you so much for your help.

So your hypothesis is correct. The huge_pages (at least on my system) have
an alignment issue if MAP_FIXED is used, and no alignment issue if it's not
used.

The syswrap-generic.c seems to always use MAP_FIXED, is that a valgrind
requirement?

At any rate, I filed a bug report, and attached a potential patch (which
worked for me), but I'm not sure if I did this correctly. All I did is added
another "refinement" fallback to do a 3rd mmap() ignoring the MAP_FIXED.

This could be done better though but maybe giving aspacemanager a hint to
give me a hugepage_size aligned address if it fails the second time.

Here is the bug report and the patch should be attached (again the patch is
brutally simple).

https://bugs.kde.org/show_bug.cgi?id=333051

Also I have another issue but it seems to work, for now…

I get a warning with:
==21390== Warning: noted but unhandled ioctl 0x7801 with no size/direction
hints

Any ideas what that is?





--
View this message in context: 
http://valgrind.10908.n7.nabble.com/mpich-unable-to-munmap-hugepages-tp49150p49181.html
Sent from the Valgrind - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to