LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-17-2011, 07:21 AM   #1
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 872
Blog Entries: 10

Rep: Reputation: 103Reputation: 103
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
 
Old 09-17-2011, 05:38 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Buy a cheap hard drive and use it to save to.
 
Old 09-17-2011, 06:51 PM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbang
Posts: 661
Blog Entries: 1

Rep: Reputation: 144Reputation: 144
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)
 
Old 09-18-2011, 01:50 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
But they want to suspend to disk I suspect. That would require a space to be saved to.
 
Old 09-19-2011, 11:14 AM   #5
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 872
Blog Entries: 10

Original Poster
Rep: Reputation: 103Reputation: 103
@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
 
  


Reply

Tags
qcow2, suspend, tuxonice


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File system not clean after hibernate or suspend Tripsun Arch 6 02-14-2011 06:10 AM
how to choose dynamic linker for a.out file? surfer41 Programming 4 07-03-2008 03:32 PM
what should be in the /etc/hosts file if I have dynamic ip? Niceman2005 Linux - Networking 2 03-24-2006 09:19 PM
screen suspend/blank conf file? chunlee Linux - Newbie 1 01-07-2005 11:38 AM
SWAP file: Is it dynamic ? gokul Linux - General 11 01-26-2004 09:46 AM


All times are GMT -5. The time now is 03:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration