[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Swap space not used



On 04/05/12 00:34, Darac Marjal wrote:
> On Thu, May 03, 2012 at 09:48:59AM +0200, Claudius Hubig wrote:
>> Hello Stephen,
>>
>> Stephen Powell <zlinuxman@wowway.com> wrote:
>>> It is my understanding that,
>>> assuming suspend/resume is supported, your swap partition
>>> should be AT LEAST as large as TWICE the amount of RAM.

I seem to recall that was the original suggestion (10 years ago) for
TuxOnIce (usermode suspend/hibernate) - it may even remain true, just
not for kernel mode which seems to work as long as you've slightly more
swapspace (1MB+) than RAM. (I haven't tested with less than that amount).

<snipped>

> 
> If the swap space is available during normal usage, then it's entirely
> possible to have no space to suspend to. 

??

I've *never* found either of the Linux suspend schemes (usermode or
kernel) suffer from that failing - and I used to run a laptop swap
partion only 2MB larger than RAM with Sarge.

Given 15-20 second boot-to-use times on laptops and netbooks, and
session saving, I know longer use hibernate or suspend so I haven't
tested... but I'd be interested in knowing the mechanism behind this
"swap space not available to suspend" phenonema - or references that
document it.

> This is why windows uses a
> separate hibernation file (though Windows' memory management is rather
> poor to start with).

Windoof uses both MS hibernation and OEM hibernation (eg. hidden
hibernate partitions).

I'm not sure why you think Linux hibernation (there's two methods) and
Windoof are related - they have little in common.

> 
> It'd be perfectly reasonable practice to have a separate swap
> file/partition for hibernating to and swapon that before hibernating.

It's perfectly reasonable to have a swap partition on every drive.

You can even swap and/or hibernate to a file if you desire - but a
special swap partition only for hibernation which is "swapon-ed" just
before use sounds unlikely.

<snipped>


Kind regards


-- 
Iceweasel/Firefox/Chrome/Chromium/Iceape/IE extensions for finding
answers to questions about Debian:-
https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/


Reply to: