Bug 211287 - Softdirty bit does not work with hugetlb
Summary: Softdirty bit does not work with hugetlb
Status: NEW
Alias: None
Product: Memory Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Andrew Morton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-19 22:15 UTC by malate_wangshu
Modified: 2021-01-19 22:15 UTC (History)
0 users

See Also:
Kernel Version: All kernel version
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description malate_wangshu 2021-01-19 22:15:27 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.