-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2007-10-29 at 23:49 +0800, Chee How Chua wrote:
In /etc/fstab, you would do something like this, assuming you have two drives on your machine.
/dev/sda1 swap swap pri=1 0.0 /dev/sdb1 swap swap pri=1 0.0
...
So how would you make SUSE use the swap space for suspend if the size of both swap partitions adds up to the size of RAM?
If there were only 1 swap partition, the kernel would know from the GRUB menu entry:
kernel /vmlinuz root=/dev/hdd6 vga=0x317 resume=/dev/sda1 splash=verbose
Will it work to have two resume sections like this:
kernel /vmlinuz root=/dev/hdd6 vga=0x317 resume=/dev/sda1 resume=/dev/sdb1 splash=verbose
Now, this is an interesting question. I have that situation, but my "resume=" entries only lists one of the two swap partitions. It certainly works, but I can't say if the hibernation data is stored on both drives o a single one, I don't know how to determine that (any one of my swaps is bigger than my ram). My guess is that hibernating occurs in two stages. First, tasks are stopped and swapped out. At this time, the kernel is fully running, so it uses both swaps. Later, it takes a "photo" of the remaining used ram and this is copied to swap - and this might be only one of them. However... a year or two ago, the system would refuse to hibernate if there wasn't a single active swap (I mean, if it found two swaps). Now it doesn't. So, it might somehow use both... :-? What I can tell is that in normal use, both partitions are equally filled (or equally empty). A note on hibernation: after waking up, some memory remains for ever, it seems, in swap, so that there is in fact more ram available than before hibernating. A nice side effect. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHJiy8tTMYHG2NR9URAjTEAJ9+wz4KSg2nkTt0A24yhjuPPrq5LACgkto9 AQb4YvJzby1iUUlCPiQ/9cg= =JyQ3 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org