linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [Bug 211287] New: Softdirty bit does not work with hugetlb
@ 2021-01-22  0:58 Mike Kravetz
  2021-01-22 18:42 ` shu wang
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Kravetz @ 2021-01-22  0:58 UTC (permalink / raw)
  To: malate_wangshu; +Cc: Linux Memory Management List

>> Start Bug Report <<
Bug ID: 211287
https://bugzilla.kernel.org/show_bug.cgi?id=211287
Summary: Softdirty bit does not work with hugetlb

When a memory region is mapped with huge pages, the softdirty bit is set only
right after the huge pages is mapped. After the memory mapping, if the
softdirty bit is cleared and the memory is written again, the softdirty bit is
not set when reading from the process's pagemap.
>> End Bug Report <<

I am not surprised with this reported bug.  The page fault code diverges
pretty quickly for hugetlb pages.  I have not looked closely at the details
of soft dirty, and do not immediately see where in the fault path for normal
pages it gets reset.  But, I only took a quick glance.

I can work on adding support for hugetlb.

Can you provide some details about your use case?
-- 
Mike Kravetz


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-02  1:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22  0:58 [Bug 211287] New: Softdirty bit does not work with hugetlb Mike Kravetz
2021-01-22 18:42 ` shu wang
2021-01-22 21:50   ` Mike Kravetz
2021-02-02  1:02     ` Mike Kravetz

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).