Bug 212153

Summary: mmap: clarify that MAP_POPULATE is best-effort
Product: Documentation Reporter: Bruce Merry (bmerry)
Component: man-pagesAssignee: documentation_man-pages (documentation_man-pages)
Status: NEW ---    
Severity: normal CC: alx
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description Bruce Merry 2021-03-09 11:08:13 UTC
The description of MAP_LOCKED in mmap(2) is clear that it is best-effort and will not fail the call if it is unable to do the locking. It appears that MAP_POPULATE is similar (email at https://marc.info/?l=linux-mm&m=161528594100612&w=2), but this is not documented.
Comment 1 Alejandro Colomar 2021-03-19 22:55:30 UTC
Hi Bruce,

Would you mind sending a draft of the text (possibly a patch to <linux-man@vger.kernel.org>) that you think would fit MAP_POPULATE?

Thanks,

Alex
Comment 2 Bruce Merry 2021-03-23 07:30:25 UTC
I can give it a go, although it should definitely be reviewed by someone who is familiar with the internals.