You are not logged in.

#1 2015-06-21 15:25:27

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,464

hibernation: 2 swap partitions

Would it be possible to use 2 swap partitions:
one with priority for the normal swap operation
the other to use for hibernation image (not exclusively)
so that the former will hold swap data across hibernation cycles?

EDIT:
To be clearer, since i'd have two swap partitions, i'd like the hibernation process to NOT save the swap data to the hibernation image and then back into memory.

Last edited by kokoko3k (2015-06-21 16:05:49)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2015-06-25 21:06:49

The Loko
Member
From: Spain
Registered: 2014-07-23
Posts: 103

Re: hibernation: 2 swap partitions

I think it could be possible setting as "resume" partition the hibernation swap only, but I don't know how to give more priority to the former partition.

Last edited by The Loko (2015-06-25 21:07:12)

Offline

#3 2015-06-25 21:18:48

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: hibernation: 2 swap partitions

It isn't clear to me what you want, but you should be able to have a swap partition with a greater priority for swapped out stuff and another one pointed at in the kernel line for hibernation.

Offline

#4 2015-06-25 21:28:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: hibernation: 2 swap partitions

It sounds like you want to restore RAM from the hibernation swap, and leave the stuff that has been squirreled on the disk awaiting a page fault on the other disk.  I'm not certain that the kernel will reinitialize the memory management unit properly to support this,  Mind you that this is pure conjecture as I try to imagine what could possibly go wrong. 

With absolutely zero guarantees, you might try setting up a swap file instead of hibernating to a swap partition.   This article might also help


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2015-06-26 06:21:56

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,464

Re: hibernation: 2 swap partitions

Thanks, good idea.
I tried the suspend to file method with one of my arch install which runs tuxonice patches and it works well;  the used swap space remains the same across hibernation cycles; surely speeding up things when i hibernate and the swap is filled with data;

With used swap, now not only the hibernation and the resume processes are faster, but the machine did not freeze up for a couple of seconds anymore with high disk activity after the resume stage.

In a couple of weeks (holidays!) i'll try with the arch stock kernel and report back.

Nice improvement, yay!

Last edited by kokoko3k (2015-06-26 06:29:32)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#6 2015-08-11 09:01:59

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,464

Re: hibernation: 2 swap partitions

Stock kernel hibernation doesn't work so good as tuxonice.
The idea of two swap spaces is also useless; since it seems that mainline suspend to disk method is only able to create an image that, uncompressed, is half the size of the total ram.

Last edited by kokoko3k (2015-08-11 21:18:45)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB