From: Jan Rychter Subject: Re: Suspending cached pages Date: Fri, 19 Mar 2004 00:25:37 -0800 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: References: <1079604264.1568.48.camel@h254n2fls34o99.telia.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org --=-=-= [...] >> I seem to recall that before swsusp actually starts its suspension >> of memory to disk scripts prepare the machine state and cache pages >> are not written out. This means that full performance isn't >> returned immediately after resumption, but presumably it's just as >> fast to re-read the cache back from files on disk rather than pages >> from a suspend file, and it minimises machine state. >>>>> "Ian" == Ian Pratt writes: Ian> I would imagine that restoring the buffer cache in one go is Ian> typically faster than taking a whole string of faults, but it Ian> depends on how well the buffer cache is working for the Ian> application. It is definitely faster on a laptop. Swsusp used to discard (actually "eat") cache, but it doesn't do that anymore. It is much better to preserve it across suspend/resume cycles, otherwise you end up with a flurry of disk activity right after you resume. On a laptop it also helps, because if you preserve it, you allow the disk to spin down. If you discard it every time, there is a much bigger chance that the data you need has to be read from the hard drive. For those who care about image size and suspend speed, swsusp2 now includes LZF compression. I get average savings of about 40% and increased suspend speed. --J. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBAWq6GLth4/7/QhDoRAnPNAJ4oxhZKzpLUNlD+ve5KxNIlcVrcbACgrvvd 8yEtwQ5aOCRAi9iTetasiNo= =Jkpd -----END PGP SIGNATURE----- --=-=-=-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click