On 11/9/2022 4:59 PM, Eliot Moss wrote:
Dear nvdimmers -

I tried following Darrick Wong's advice from this page:

https://nvdimm.wiki.kernel.org/2mib_fs_dax

With more knowledge and some fiddling, I am getting huge pages to work ...
sometimes.

But first, is this the right place to ask questions?  Folks don't seem to
respond.  If this is not the place, perhaps someone could point me to
better places?  Thanks!

Meanwhile, I now see a *mix* of FALLBACK and NOPAGE trace records happening
when I map 32G from a dax file.  I map with:

MAP_SYNC
MAP_SHARED
MAP_SHARED_VALIDATE

not MAP_FIXED

Also, MAP_LOCK and MAP_POPULATE do not seem to change the behavior.

AFAICT, everything has proper 2M alignment - /proc/iomem shows that and
the partition is set to start at 4096 512-byte sectors, ndctl uses 1G
alignment and xfs 2M.

What I see is ~11,000 FALLBACK trace records and about ~11,000 NOPAGE,
with FALLBACK coming first then NOPAGE.  My little app then touches
cache lines sequentially through the 32G region.

I am happy to provide more details, but did not want to create a long
message if this is not the place :-) ...

Also, can fs_dax do 1G huge pages?  If so, how do I make that go, since
the same approach of alignments, etc., does not seem to make it happen.

Regards - Eliot Moss

Reply via email to