LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06:21 AM   #1
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
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, 04:38 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Buy a cheap hard drive and use it to save to.
 
Old 09-17-2011, 05:51 PM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
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, 12:50 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

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

Original Poster
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
@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



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 05:10 AM
how to choose dynamic linker for a.out file? surfer41 Programming 4 07-03-2008 02:32 PM
what should be in the /etc/hosts file if I have dynamic ip? Niceman2005 Linux - Networking 2 03-24-2006 08:19 PM
screen suspend/blank conf file? chunlee Linux - Newbie 1 01-07-2005 10:38 AM
SWAP file: Is it dynamic ? gokul Linux - General 11 01-26-2004 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:23 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
Open Source Consulting | Domain Registration