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

From: Con Kolivas
Date: Thu Mar 16 2006 - 23:45:09 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/