Re: [ck] [PATCH] swsusp reclaim tweaks was: Re: does swsusp suck after resume for you?

Con Kolivas
2006-03-17T04:46:00Z

On Fri, 17 Mar 2006 03:28 pm, Con Kolivas wrote:
> Ok here is a kind of directed memory reclaim for swsusp which is different
> to ordinary memory reclaim. It reclaims memory in up to 4 passes with just
> shrink_zone, without hooking into balance_pgdat thereby simplifying that
> function as well.
>
> The passes are as follows:
> Reclaim from inactive_list only
> Reclaim from active list but don't reclaim mapped
> 2nd pass of type 2
> Reclaim mapped

It may need to be made more aggressive with another reclaim mapped pass to
ensure it frees enough memory. That would be trivial to add.

Cheers,
Con