Re: Kernel 2.6.8.1: swap storm of death - nr_requests > 1024 on swap partition

Andrew Morton
2004-08-30T23:51:00Z

Marcelo Tosatti <marcelo.tosatti@cyclades.com> wrote:
>
> What you think of this, which tries to address your comments

Suggest you pass the scan_control structure down into pageout(), stick
`inflight' into struct scan_control and use some flag in scan_control to
ensure that we only throttle once per try_to_free_pages()/blaance_pgdat()
pass.

See, page reclaim is now, as much as possible, "batched". Think of it as
operating in units of 32 pages at a time. We should only examine the dirty
memory thresholds and throttle once per "batch", not once per page.