[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MADV flags as mmap options



While we're here :-)

It seems to me that a lot of the time, madvise() will be called
immediately after mmap() on the same region.

How about making the MADV_ flags distinct from the MAP_ flags, and
arranging that you may pass MADV_ flags to mmap().  If it sees any, it
does the mapping and follows it by the corresponding madvise_vma call.

(Only really useful for MADV_RANDOM and MADV_SEQUENTIAL).

-- Jamie
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/