* Writing caches
@ 2005-03-08 10:12 Stefan Tomanek
[not found] ` <20050308101229.GD4154-Q4Z/ui9EqVxM7kwft8N7nw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Tomanek @ 2005-03-08 10:12 UTC (permalink / raw)
To: ACPI List
Just a small question, maybe I got a completely false impression...
Why does software suspend have to save file cachess? Couldn't they just
be flushed to save suspend and restore time?
--
.:°stefan-Q4Z/ui9EqVxM7kwft8N7nw@public.gmane.org | tommie@IRC | GPG: finger stefan-bi+AKbBUZKbUpHnrbwyWsw@public.gmane.org.de °:.
|___________________ http://localhost.ruhr.de/~stefan/ ______________________|
| Wer Header fälscht oder verfälscht oder gefälschte oder verfälschte Header |
`-__in_Umlauf_bringt_wird_mit_Scorefile_nicht_unter_-500_Punkten_bestraft__-'
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <20050308101229.GD4154-Q4Z/ui9EqVxM7kwft8N7nw@public.gmane.org>]
* Re: Writing caches [not found] ` <20050308101229.GD4154-Q4Z/ui9EqVxM7kwft8N7nw@public.gmane.org> @ 2005-03-08 15:39 ` Lorenzo Colitti 2005-03-08 22:23 ` Nigel Cunningham 1 sibling, 0 replies; 3+ messages in thread From: Lorenzo Colitti @ 2005-03-08 15:39 UTC (permalink / raw) To: Stefan Tomanek; +Cc: ACPI List Stefan Tomanek wrote: > Just a small question, maybe I got a completely false impression... > Why does software suspend have to save file cachess? Couldn't they just > be flushed to save suspend and restore time? If you write the caches to disk on suspend and re-read them on resume, the machine is much more responsive when it comes back on. At least for me, that's much better. :) Cheers, Lorenzo ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Writing caches [not found] ` <20050308101229.GD4154-Q4Z/ui9EqVxM7kwft8N7nw@public.gmane.org> 2005-03-08 15:39 ` Lorenzo Colitti @ 2005-03-08 22:23 ` Nigel Cunningham 1 sibling, 0 replies; 3+ messages in thread From: Nigel Cunningham @ 2005-03-08 22:23 UTC (permalink / raw) To: Stefan Tomanek; +Cc: ACPI List Hi. You can set a soft image size limit, and suspend2 will call shrink_all_memory (like swsusp does) to free pages until it reaches that limit (if possible). In this way it is possible to free caches before suspending. As Lorenzo said, though, this results in a much less responsive system post-resume. Suspend2 reads and writes the data as fast as it can (async I/O and readahead for what must be done synchronously due to compression, plus LZF compression), and the data is stored as contiguously as possible. This means it's much faster to write the data in the image instead of forcing pages to be reread/swapped in later. Regards, Nigel On Tue, 2005-03-08 at 21:12, Stefan Tomanek wrote: > Just a small question, maybe I got a completely false impression... > Why does software suspend have to save file cachess? Couldn't they just > be flushed to save suspend and restore time? -- Nigel Cunningham Software Engineer, Canberra, Australia http://www.cyclades.com Bus: +61 (2) 6291 9554; Hme: +61 (2) 6292 8028; Mob: +61 (417) 100 574 Maintainer of Suspend2 Kernel Patches http://suspend2.net ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-08 22:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08 10:12 Writing caches Stefan Tomanek
[not found] ` <20050308101229.GD4154-Q4Z/ui9EqVxM7kwft8N7nw@public.gmane.org>
2005-03-08 15:39 ` Lorenzo Colitti
2005-03-08 22:23 ` Nigel Cunningham
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox