Linux 2.4.19pre5-ac3
Review
Quoted 13 lines
[swsusp fixes] Re: Linux 2.4.19pre5-ac3
(quoted diff) +11
-0+ +You have two ways to use this code. The first one is if you've compiled in +sysrq support then you may press Sysrq-D to request suspend. The other way +is with a patched SysVinit (my patch is against 2.76 and available at my +home page). You might call 'swsusp' or 'shutdown -z <time>'. + +Either way it saves the state of the machine into active swaps and then +reboots. By the next booting the kernel's resuming function is either triggered +by swapon -a (which is ought to be in the very early stage of booting) or you +may explicitly specify the swap partition/file to resume from with ``resume='' +kernel option. If signature is found it loads and restores saved state. If the
Does it have to be an "active swap partition"? What about systems
without active swap, but space enough for a partition?
Martin
Signature · 5 lines
------------------------------------------------------------------ Martin Knoblauch | email: [email protected] TeraPort GmbH | Phone: +49-89-510857-309 C+ITS | Fax: +49-89-510857-111 http://www.teraport.de | Mobile: +49-170-4904759
Hi!
Quoted 6 lines
Quoted 6 lines
(quoted diff) +6
-0+ +You have two ways to use this code. The first one is if you've compiled in +sysrq support then you may press Sysrq-D to request suspend. The other way +is with a patched SysVinit (my patch is against 2.76 and available at my +home page). You might call 'swsusp' or 'shutdown -z <time>'. +
Quoted 8 lines
Review
Quoted 5 lines
(quoted diff) +5
-0+Either way it saves the state of the machine into active swaps and then +reboots. By the next booting the kernel's resuming function is either triggered +by swapon -a (which is ought to be in the very early stage of booting) or you +may explicitly specify the swap partition/file to resume from with ``resume='' +kernel option. If signature is found it loads and restores saved state. If theDoes it have to be an "active swap partition"? What about systems
without active swap, but space enough for a partition?
There you just make it partition and then mkswap/swapon it. Or did I misunderstand the question?
Pavel
Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building, cryptography in U.S.A. and free speech in Czech Republic.
Quoted 18 lines · Pavel Machek
Hi!
Quoted 6 lines
Quoted 6 lines
(quoted diff) +6
-0+ +You have two ways to use this code. The first one is if you've compiled in +sysrq support then you may press Sysrq-D to request suspend. The other way +is with a patched SysVinit (my patch is against 2.76 and available at my +home page). You might call 'swsusp' or 'shutdown -z <time>'. +Quoted 8 lines
Review
Quoted 5 lines
(quoted diff) +5
-0+Either way it saves the state of the machine into active swaps and then +reboots. By the next booting the kernel's resuming function is either triggered +by swapon -a (which is ought to be in the very early stage of booting) or you +may explicitly specify the swap partition/file to resume from with ``resume='' +kernel option. If signature is found it loads and restores saved state. If theDoes it have to be an "active swap partition"? What about systems
without active swap, but space enough for a partition?
Quoted 3 lines
There you just make it partition and then mkswap/swapon it. Or did I misunderstand the question?
Pavel
Pavel,
maybe I was unclear. For reasons of interactivity, I do not have any
swap enabled on my Notebook. The 320 MB are enough for my workload and I am willing to accept the OOM Killer when I do really stupid things. If I enable swap the (all of them to some degree :-) VM decides to swap out "unused" processes. Most of them are desktop related and if I need them the system responds sluggish. Therefore - no swap activated.
My question was: can I have a system without active swap and still use
swsusp? Creating a swap/suspend partition of appropriate size is not a problem. I just do not want to "swapon" it.
Martin
Signature · 5 lines
------------------------------------------------------------------ Martin Knoblauch | email: [email protected] TeraPort GmbH | Phone: +49-89-510857-309 C+ITS | Fax: +49-89-510857-111 http://www.teraport.de | Mobile: +49-170-4904759
Hi!
Quoted 27 lines
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
(quoted diff) +6
-0+ +You have two ways to use this code. The first one is if you've compiled in +sysrq support then you may press Sysrq-D to request suspend. The other way +is with a patched SysVinit (my patch is against 2.76 and available at my +home page). You might call 'swsusp' or 'shutdown -z <time>'. +Quoted 8 lines
Review
Quoted 5 lines
(quoted diff) +5
-0+Either way it saves the state of the machine into active swaps and then +reboots. By the next booting the kernel's resuming function is either triggered +by swapon -a (which is ought to be in the very early stage of booting) or you +may explicitly specify the swap partition/file to resume from with ``resume='' +kernel option. If signature is found it loads and restores saved state. If theDoes it have to be an "active swap partition"? What about systems
without active swap, but space enough for a partition?Quoted 3 lines
There you just make it partition and then mkswap/swapon it. Or did I misunderstand the question?
PavelPavel,
maybe I was unclear. For reasons of interactivity, I do not have any
swap enabled on my Notebook. The 320 MB are enough for my workload and I am willing to accept the OOM Killer when I do really stupid things. If I enable swap the (all of them to some degree :-) VM decides to swap out "unused" processes. Most of them are desktop related and if I need them the system responds sluggish. Therefore - no swap activated.
Quoted 3 lines
My question was: can I have a system without active swap and still use
swsusp? Creating a swap/suspend partition of appropriate size is not a problem. I just do not want to "swapon" it.
You need to swapon it. If you do not want to keep it swapped on, there's no problem in
swapon /dev/swap
echo 4 > /proc/acpi/sleep
sleep 10
swapoff /dev/swap
Pavel
Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building, cryptography in U.S.A. and free speech in Czech Republic.
Quoted 6 lines · Pavel Machek
Quoted 5 lines
My question was: can I have a system without active swap and still use
swsusp? Creating a swap/suspend partition of appropriate size is not a problem. I just do not want to "swapon" it.
Quoted 8 lines
You need to swapon it. If you do not want to keep it swapped on, there's no problem in
swapon
/dev/swap
echo 4 >/proc/acpi/sleep
sleep 10
swapoff/dev/swap
thanks. That is what I wanted to know. That basically means that I will
have to boot with a active swap device in order to get the resume functionality - correct? And then I would do a "swapoff" late in the boot process (maybe before starting the graphical crap :-).
Martin
Signature · 5 lines
------------------------------------------------------------------ Martin Knoblauch | email: [email protected] TeraPort GmbH | Phone: +49-89-510857-309 C+ITS | Fax: +49-89-510857-111 http://www.teraport.de | Mobile: +49-170-4904759
Hi!
Quoted 13 lines
Quoted 4 lines
Quoted 3 lines
My question was: can I have a system without active swap and still use
swsusp? Creating a swap/suspend partition of appropriate size is not a problem. I just do not want to "swapon" it.Quoted 8 lines
You need to swapon it. If you do not want to keep it swapped on, there's no problem in
swapon
/dev/swap
echo 4 >/proc/acpi/sleep
sleep 10
swapoff/dev/swap
Quoted 4 lines
thanks. That is what I wanted to know. That basically means that I will
have to boot with a active swap device in order to get the resume functionality - correct? And then I would do a "swapoff" late in the boot process (maybe before starting the graphical crap :-).
You do not need swapon during boot. swsusp no longer works like that (it used to, but not now). swapon just before suspend is okay.
Pavel
Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building, cryptography in U.S.A. and free speech in Czech Republic.