lkml.org 
[lkml]   [2000]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Suggestion for laptop suspension
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.087 / U:1.796 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site