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

Re: nr_async_pages and swapin readahead on -ac series



Hi,

On Thu, Mar 08, 2001 at 07:47:59PM -0300, Marcelo Tosatti wrote:
> 
> > Swapin is always synchronous: it happens in response to a task's page
> > fault.  As such it is always going to be rate-limited automatically.
> > I don't think it's too important to count reads in nr_async_pages, nor
> > to throttle readaheads if nr_async_pages is too large.
> 
> Its not really throttling. We just _bypass_ the readahead's in case we got
> too much. 

I know, but I still think it's worth doing the readahead in any case.
We've got 8192 request slots per swap device so we're not going to
suddenly go synchronous because of readahead, and the callers are
naturally throttled (because they wait synchronously on the requested
page) so we don't have to worry about submitting unbounded IO.

An extra seek is _so_ much more expensive than the
readahead/readaround that I doubt it's worth making it conditional.

Cheers,
 Stephen
--
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/