Thread (7 messages) flat view 7 messages, 3 authors, 2021-07-26

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

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help