Re: [PATCH] mm: readahead: do not cap readahead() and MADV_WILLNEED
From: Kirill A. Shutemov
Date: Mon Feb 29 2016 - 16:03:47 EST
On Mon, Feb 29, 2016 at 02:41:59PM -0500, Johannes Weiner wrote:
> That, or switch to read() from a separate thread for cache priming.
mmap(MAP_POPULATE) would save you some copy_to_user() overhead, comparing
to read().
--
Kirill A. Shutemov