lkml.org 
[lkml]   [2000]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Suggestion for laptop suspension
Date
From
Hi Richard,

Richard Stallman <rms@gnu.org> writes:
> On my laptop, suspending to disk is slow. It takes a whole minute, and
> another minute to unsuspend--if all of core is in use. But it is much
> faster when I do it not too long after the system was booted, when it has
> not yet managed to use up most of core.
>
> This suggests that it could be nice to make the kernel empty its caches, and
> mark all that core "unused", when a suspend is about to happen. I don't
> know the details of how suspension works, so I am not sure this is possible,
> but I think there are hooks for doing something in the kernel before a
> suspend.

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.

This is an experiment to see if your BIOS is faster to suspend
when most of memory is zero'd.

Cheers,
Stephen
--
Stephen Rothwell, Open Source Researcher, Linuxcare, Inc.
+61-2-62628990 tel, +61-2-62628991 fax
sfr@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.

----------------------------------------------------------------------
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/

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