LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   QCow2 (IOW : a dynamic file) for suspend to file (https://www.linuxquestions.org/questions/linux-software-2/qcow2-iow-a-dynamic-file-for-suspend-to-file-903516/)

serafean 09-17-2011 06:21 AM

QCow2 (IOW : a dynamic file) for suspend to file
 
Hi,

Getting an SSD, I'm a bit worried about swapping using up its read/write cycles, so I'm doing a bit of research.
I've been using tuxonice for years now, and know that the suspend to file functionality works very well. What I would want is not to have a file of size X always present on my PC, so I'm looking for ways to create a dynamically sized file. Right now, the only thing I've come up with is using qemu's QCow2 to create an image file, which I will then mount, and create my suspend file in there. Thus I'd get a static sized file in a dynamic filesystem.
Any thoughts about this? Or anyone know of a more straightforward solution?

Cheers,
Serafean

jefro 09-17-2011 04:38 PM

Buy a cheap hard drive and use it to save to.

qlue 09-17-2011 05:51 PM

Since I upgraded my ram from 512M to 1.5G, my computer hasn't used any swap! So if you have enough ram, it's not likely to ever be an issue. Also, an SSD doesn't really have the flash memory wear issue because of the way it uses wear leveling. That issue would only apply to a single flash chip that has no pages! (It's a theoretical problem that's essentially been solved a few years ago already)

jefro 09-18-2011 12:50 PM

But they want to suspend to disk I suspect. That would require a space to be saved to.

serafean 09-19-2011 10:14 AM

@jefro : swap isn't necessary, as I mentioned, I'm using tuxonice which supports suspending to file. However, in the end I enabled swap because upowerd wouldn't allow me to execute the dbus hibernate call when it didn't find enough swap (WTF??). Suspending from console worked just fine though. Haven't tried the qcow2 procedure in the end. Thanks all.

Serafean


All times are GMT -5. The time now is 04:20 AM.