Re: Suggestion for laptop suspension

From: Linda Walsh (law@sgi.com)
Date: Mon Aug 28 2000 - 20:35:22 EST


You might want to reread what I previously wrote. Is there any
reason to think that your program is doing anything other than forcing all dirty
buffers out to disk?

Stephen Rothwell wrote:

>
> Just to try something, could you please take the program below and change
> the 172 to be about 15-20 less that then number of MB of physical RAM
> you have, then compile and run it and then try to suspend to disk
> and see how long it takes. On my Thinkpad 600E, it changes the time
> to suspend from ~30 seconds to < 10 seconds.
>
> unsigned char arr[172*1024*1024];
>
> main()
> {
> int i;
>
> for (i = 0; i < sizeof(arr); i += 4096)
> arr[i] = 0;
> }
> ----------------------------------------------------------------------
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:22 EST