[LTP] [PATCH 2/2] [RFC] syscalls/mmap12: Do not fail on non-present pages
Michal Hocko
mhocko@suse.com
Fri Aug 18 15:50:35 CEST 2017
On Fri 18-08-17 06:00:54, Jan Stancek wrote:
[...]
> @Michal: Can you think of alternative way to differentiate between:
> "MAP_POPULATE did its best" vs. "MAP_POPULATE is broken"?
What about reading /proc/self/smaps for the range and check for RSS
field? Seeing 0 could be reported as an unexpected _warning_ but I am
not really sure there is any correctness test we could do here. Maybe
just compare that MAP_POPULATE will give you the same content as the
manual fault in.
--
Michal Hocko
SUSE Labs
More information about the ltp
mailing list