My computer aways freezing everytime I tried to woke it up after suspended to RAM. Is that the problem of swap size?
flashcflash wrote:
>
> My computer aways freezing everytime I tried to woke it up after
> suspended to RAM. Is that the problem of swap size?
>
>
Unlikely
But you didn’t tell us what RAM you have or your swap size
Oh, thank you first.
I have 4G physical RAM and 2G swap partition created by system default settings. I am using opensuse 12.3 64bit.
I guess that could be a problem. IIAC compression is used, but 4GB > 2GB is a bit tricky.
On 2013-07-24 07:56, flashcflash wrote:
>
> My computer aways freezing everytime I tried to woke it up after
> suspended to RAM. Is that the problem of swap size?
Yes, if you intend to hibernate swap should be at least equal to ram,
preferably bigger.
However, swap is irrelevant for suspend to ram.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))
flashcflash wrote:
> Oh, thank you first.
> I have 4G physical RAM and 2G swap partition created by system
default
> settings. I am using opensuse 12.3 64bit.
Perhaps you could tell us what graphics device you have too
On Wed, 24 Jul 2013 08:16:01 +0000, hcvv wrote:
> I guess that could be a problem. IIAC compression is used, but 4GB > 2GB
> is a bit tricky.
I didn’t think s2ram used swap space - the power state is “low power” so
the RAM state can be stored. Hibernation would depend on swap space,
though.
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
I think you are correct. I mixed up the different types of sleep to … because the OP suggested a link between s2ram and swap space. And caf4926 did follow up on this idea by asking for the sizes of both. On should allways read first posts three times at least
And of course,. the OP would have done better by presenting his case (freezing on waking up) then to present a conclusion.
On Wed, 24 Jul 2013 15:06:01 +0000, hcvv wrote:
> hendersj;2574132 Wrote:
>> On Wed, 24 Jul 2013 08:16:01 +0000, hcvv wrote:
>>
>> > I guess that could be a problem. IIAC compression is used, but 4GB >
>> 2GB
>> > is a bit tricky.
>>
>> I didn’t think s2ram used swap space - the power state is “low power”
>> so the RAM state can be stored. Hibernation would depend on swap
>> space,
>> though.
>>
>> Jim
>>
>> –
>> Jim Henderson openSUSE Forums Administrator Forum Use Terms &
>> Conditions at ‘openSUSE Forums FAQ’ (http://tinyurl.com/openSUSE-T-C)
> I think you are correct. I mixed up the different types of sleep to …
> because the OP suggested to link between s2ram and swap space. And
> caf4926 did follow up on this idea by askinf for the sizes of both. On
> should allways read first posts three times at least
>
> And of course,. the OP would have done better by presenting his case
> (freezing on waking up) then to present a conclusion.
It’s easy to miss, especially since the two functions are very similar.
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
On 2013-07-24 19:14, Jim Henderson wrote:
>
> It’s easy to miss, especially since the two functions are very similar.
I did not miss it - this time O:-)
–
Cheers / Saludos,
Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))
On Wed, 24 Jul 2013 20:03:10 +0000, Carlos E. R. wrote:
> On 2013-07-24 19:14, Jim Henderson wrote:
>
>
>> It’s easy to miss, especially since the two functions are very similar.
>>
>
> I did not miss it - this time O:-)
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
Soory to reply so late. I have solve it after I posted my laptop information. I couldn’t wait, and then I repartitiioned swap to 6GB with a reinstallation of the OS. So it seems that swap size critically influenced the behavior of sleep.
You are right ,I donot know why S2RAM have any connection with swap, isn’t it just stored the state of operating in RAM?
However, when I enlarged the swap size, sleep function came back.
Wired, whatever. It depends on what swap in linux means. I couldn’t imagine to have a huge virtual RAM for sleep in windows, but I need to do that in opensuse.
On 2013-07-28 17:36, flashcflash wrote:
> Soory to reply so late. I have solve it after I posted my laptop
> information. I couldn’t wait, and then I repartitiioned swap to 6GB with
> a reinstallation of the OS. So it seems that swap size critically
> influenced the behavior of sleep.
If you did a reinstall, it may have been the reinstall and not the
bigger swap.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
On Sun, 28 Jul 2013 15:56:01 +0000, flashcflash wrote:
> Wired, whatever. It depends on what swap in linux means. I couldn’t
> imagine to have a huge virtual RAM for sleep in windows, but I need to
> do that in opensuse.
“Swap” on Linux means “virtual memory”, and no, swap isn’t needed for
s2ram, just hibernation (s2ram is a specific memory state of lower power
consumption that maintains the memory states in actual RAM, so swap just
isn’t used at all - which is why going to sleep is practically
instantaneous, while hibernation is not - you can see the disk activity
before hibernation goes to sleep.
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
On Sun, 28 Jul 2013 22:08:43 +0000, Jim Henderson wrote:
> On Sun, 28 Jul 2013 15:56:01 +0000, flashcflash wrote:
>
>> Wired, whatever. It depends on what swap in linux means. I couldn’t
>> imagine to have a huge virtual RAM for sleep in windows, but I need to
>> do that in opensuse.
>
> “Swap” on Linux means “virtual memory”, and no, swap isn’t needed for
> s2ram, just hibernation (s2ram is a specific memory state of lower power
> consumption that maintains the memory states in actual RAM, so swap just
> isn’t used at all - which is why going to sleep is practically
> instantaneous, while hibernation is not - you can see the disk activity
> before hibernation goes to sleep.
Just to confirm, on my laptop, I ran (as root):
swapoff -a
(Disables all swap space)
Then closed the lid. The system executed s2ram perfectly, as I expected.
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
You are right. While I have refreshed my OS, it is hardly to get any of the error log anymore. Do you have any advise about the freezing after sleep to ram?
On Mon, 29 Jul 2013 18:06:01 +0000, flashcflash wrote:
> You are right. While I have refreshed my OS, it is hardly to get any of
> the error log anymore. Do you have any advise about the freezing after
> sleep to ram?
Unfortunately, I don’t - I rarely see this issue myself, and haven’t come
up with a way to diagnose it effectively.
Maybe make sure the “magic sysrq” keys are enabled in YaST, then when it
happens, try using them to force a sync to disk before rebooting. That
would help preserve the log, perhaps.
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
Thanks, it is the first time I know this key could use.