-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2006-10-09 at 08:10 +0200, Hans Witvliet wrote:
The Monday 2006-10-09 at 00:03 +0200, Hans Witvliet wrote:
What's the point of writing that info back to a swap partition, (as it is already somewhere on disk anyhow)
It is not written.
After a "sync" all unwritten buffers should be commited to disk (according to man&info)
I meant that it is not written as swap. Processes are stopped, pending disk operations are committed, then as much ram as possible is freed. The remainder is saved to swap, just as would be swapped out processes, I guess.
It should not only limit the amount of needed swap-space, but also speed-up suspend & resume, not?
It would probably be faster to read everything from swap, as it is a contiguous disk area, than reading everything as needed from all over the disk. The wake up process is way faster than a boot up, that's why I use it; but after waking up there is a longish time till all your needed processes really wake up and you can start to work. If you left "top" running somewhere you can observe how the used memory for buffers and cache start to increase rapidly. Also, there is something around 200MiB that remains in swap and is not used again: ie, the process of suspending has "freed" (swapped out) some useful memory. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFKh57tTMYHG2NR9URAlpbAKCX0/t3cF4dfEYUTN/mgxnLfvXCSQCgjnbD LqsA4REibr/RYvTIkl43/WQ= =OqAt -----END PGP SIGNATURE-----