[SLUG] software suspend

From: Eben King (eben01@verizon.net)
Date: Mon Oct 16 2006 - 17:38:20 EDT


So I have a flash drive that I installed SuSE 9.1 on. Works nice. So far I
have sound and WLAN working, and tweaked it a bit to minimize writes. But
I'd like suspend-to-disk, or at least suspend-to-RAM.

I was poking through the kernel compilation options today and ran across

[ ] Software Suspend

Sounds good; I'll try it. Hit "y"...

() Default resume partition (NEW)

Hmm, OK, now IIRC there's the option to compress the RAM before it's
written. How much does RAM typically compress? "gzip -9v < /proc/kcore >
/dev/null" says 80-something percent. (Is that typical? Does swsusp use
significantly worse compression than "gzip -9"?) So a 0.25 GB partition
ought to hold 1 GB of RAM after compression.

Now, it also says "The partition ... should be a valid swap partition (at
least for now)". This is a flash drive, no swap. Can I still use this? Or
can I just "mkswap /dev/sda4" but not "swapon /dev/sda4" and not enter it
into /etc/fstab with type "swap"?

-- 
-eben      QebWenE01R@vTerYizUonI.nOetP      http://royalty.no-ip.org:81
AQUARIUS:  There's travel in your future when your tongue freezes to the
back of a speeding bus.  Fill the void in your pathetic life by playing
Whack-a-Mole 17 hours a day.  -- Weird Al, _Your Horoscope for Today_
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:02:34 EDT