Re: [PATCH]: Speed freeing memory for suspend.

2005-03-03 Thread Nigel Cunningham
Hi. Here are the stats: 1GB P4, 2.6.11+Suspend2 2.1.8. Soft image size limit set to 2MB to emulate Pavel's implementation (eat as much memory as we can). Without patch: Freed 16545 pages in 4000 jiffies = 16.16 MB/s Freed 83281 pages in 14060 jiffies = 23.14 MB/s Freed 237754 pages in 41482 j

Re: [PATCH]: Speed freeing memory for suspend.

2005-03-03 Thread Nigel Cunningham
Hi. On Thu, 2005-03-03 at 22:26, Andrew Morton wrote: > Nigel Cunningham <[EMAIL PROTECTED]> wrote: > > > > Here's a patch I've prepared which improves the speed at which memory is > > freed prior to suspend. It should be a big gain for swsusp. > > Patch is simple enough but, as always, please b

Re: [PATCH]: Speed freeing memory for suspend.

2005-03-03 Thread Andrew Morton
Nigel Cunningham <[EMAIL PROTECTED]> wrote: > > Here's a patch I've prepared which improves the speed at which memory is > freed prior to suspend. It should be a big gain for swsusp. Patch is simple enough but, as always, please back up an optimization patch with quantitative test results. - To

[PATCH]: Speed freeing memory for suspend.

2005-03-03 Thread Nigel Cunningham
Hi. Here's a patch I've prepared which improves the speed at which memory is freed prior to suspend. It should be a big gain for swsusp. For suspend2, it isn't used much, but has shown big improvements when I set a very low image size limit and had memory quite full. Signed-Off-By: Nigel Cunningh