Re: throttling dirtiers

Benjamin LaHaise
2002-07-31T21:14:56Z

On Wed, Jul 31, 2002 at 02:02:03PM -0700, Andrew Morton wrote:
> But let's back off a bit. The problem is that a process
> doing a large write() can penalise innocent processes which
> want to allocate memory.
>
> How to fix that?

First off, make it obvious where we block in the allocation path (pawning
off all memory reaping to kswapd et al is an easy first step here). Then
make allocators cycle through on a FIFO basis by using something like the
page reservation patch I came up with a while ago. That'll give us an
easy place to change scheduling behaviour.

-ben
--
"You will be reincarnated as a toad; and you will be much happier."