Re: [PATCH v1] madvise.2: Document MADV_POPULATE_READ and MADV_POPULATE_WRITE

From
Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Date
2021-07-12 10:18:05
Also in
linux-api, linux-mm
Reply to
David Hildenbrand, 2021-07-12
quoted
quoted
+.BR MADV_POPULATE_WRITE " (since Linux 5.14)
+Populate (prefault) page tables writable for the whole range without actually
+writing. Depending on the underlying mapping, preallocate memory or read the
Is this read or write?
just reading and trying to understand :)
It's reading. Assume you have a file with existing content mapped into a
process. Once you touch a page (read/write/execute) that maps to blocks
with existing content, you'll have to load these blocks from disk first.
Got it. Thanks for explaining!

Best regards,
Pankaj
Thread (7 messages) 7 messages, 3 authors, last reply 2021-07-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help