You are not logged in.
My netbook has a 60gb ssd with btrfs, is it a good idea to enable compression? My main goal for this net-book is battery life.
If i do enable compression only new files are compressed, is there a way to walk over old files and compress them?
My current partition looks like this:
/boot ext2 200mb
/ btrfs 7g
/home btrfs 46g
I need to make my root larger because i am running out of space so i'm going to be messing with the file systems anyway this suggests that i place my entire system in a subvolume, is this something i can do retroactively, or would I have to do a reinstall, which i'm ok with
Last edited by seniorsassycat (2012-01-27 01:45:58)
Offline
I think you can online compress existing files with 'btrfs filesystem defragment -c [lzo,zlib] /'. Thus you do not have to create a new subvolume and copy every file. But I have not tried it yet myself.
Offline
The subvolume question should have been separate. What are the advantages of using subvolumes?
Offline
My main goal for this net-book is battery life.
Everything else being equal, a compressed fs is going to increase power usage.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Also running 'sudo btrfs file defrag -clzo /' returns imidiatly, should it be this quick? Does the file system need to be unmounted first? Will I need to be running off of a live cd to unmount root and home?
Offline
For other people, like me, that wondered: that's because the command is not recursive, so you are only doing it on the directory / and nothing more.
As far as I understand not even the files in / will be touched.
Offline
Compression can help with SDD longevity (less data written) but not the battery's longevity (which will require charging more often and eventually start to hold less charge). I would probably not enable compression at all. 60 GB is plenty.
If you think about it, while you can't actually replace either of them in a netbook, the battery is more important - at least in a portable device. Even if the SSD gives out in 5-8 years at least you could still boot from a USB stick and breathe some life into it. But replacing the battery... well, it's probably not gonna happen. And by that time it will probably end up on a garbage landfill anyway. Pff... Consumerism.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
@gee: Does this provide the same benefit as a drive/partition that had compression enabled from the start?
Offline