Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,817 Members 53,868 Now Online
XDA Developers Android and Mobile Development Forum

[Q] BTRFS+Compression+SSD optimization on folio

Tip us?
 
gingerboy92
Old
#1  
gingerboy92's Avatar
Senior Member - OP
Thanks Meter 88
Posts: 428
Join Date: May 2011
Default [Q] BTRFS+Compression+SSD optimization on folio

would it be possible to change the filesystem from ext4 to btrfs with compression and ssd optimization.
i do have the knowledge about the possible of having more cpu overhead than the improvement in transfer speed.. but when it comes to space saving, i think it does worth it. i have been using btrfs compression on opensuse for quite a while. the space saving is amazing. with compression enabled, the space usage is half the normal size.
the only concern im having about getting this to be done is the kernel. does the kernel we are using support btrfs compression at the first place(mblaster?)? i do not have the technical knowledge of how to get this done. hope someone could turn this idea to a reality.
 
mblaster
Old
#2  
Recognized Developer
Thanks Meter 95
Posts: 430
Join Date: Aug 2007
Quote:
Originally Posted by gingerboy92 View Post
...does the kernel we are using support btrfs compression at the first place(mblaster?)?
Nope, sorry. Btrfs is not in atm (could be changed for a test), but I don't know if compression would be supported. Also I am not convinced that compression would help a lot on the folio for two reasons: First the compression end uncompression both need cpu cycles, slowing down the system. And second the kind of files you typically have on such a device (mp3, videos etc.) are not really compressable. I doubt you would get more then a few percent more storage out of your device.
Want to thank me and still need a Dropbox account? Use my invitation link to ad 500MB to both our accounts: http://db.tt/ZnDTKZp

Add me to your circles in Google+

Some old projects:
[HowTo] Compile your own Cyanogenmod 7
[recovery] CWM for Betelgeuse
Linux Fastboot for Folio100

In my pocket: Nexus 4 / Paranoid Android 3.1
In my bag: Huawei MediaPad / Paranoid Android 2.57
 
gingerboy92
Old
#3  
gingerboy92's Avatar
Senior Member - OP
Thanks Meter 88
Posts: 428
Join Date: May 2011
ehem.. about the cpu cycle, lzo compression could reduce the cpu usage, but i don't know by how much, probably still wouldn't worth the gain too. i don't know. but even if it does gives a worthy gain, maybe there's too much work to be done, lzo needs kernel 2.6.38 kernel to work if i'm not mistaken. compression(if possible) could be applied to something like the boot partition? maybe it could improve boot time, just a maybe.
looks like i didn't consider everything before i speak. thanks mblaster. ^.^
 
m32
Old
#4  
Senior Member
Thanks Meter 8
Posts: 246
Join Date: Jul 2007
Location: Szczecin
Quote:
Originally Posted by mblaster View Post
Nope, sorry. Btrfs is not in atm (could be changed for a test), but I don't know if compression would be supported. Also I am not convinced that compression would help a lot on the folio for two reasons: First the compression end uncompression both need cpu cycles, slowing down the system. And second the kind of files you typically have on such a device (mp3, videos etc.) are not really compressable. I doubt you would get more then a few percent more storage out of your device.
True, what is stored on storage ? Mp3, mp4? ~ all of them are mostly compressed, where other - mathematical/lossles compression wouldnt help - in most cases would it make worse
 
Palatis
Old
#5  
Palatis's Avatar
Junior Member
Thanks Meter 0
Posts: 10
Join Date: Nov 2009
Quote:
Originally Posted by gingerboy92 View Post
ehem.. about the cpu cycle, lzo compression could reduce the cpu usage, but i don't know by how much, probably still wouldn't worth the gain too. i don't know. but even if it does gives a worthy gain, maybe there's too much work to be done, lzo needs kernel 2.6.38 kernel to work if i'm not mistaken. compression(if possible) could be applied to something like the boot partition? maybe it could improve boot time, just a maybe.
looks like i didn't consider everything before i speak. thanks mblaster. ^.^
compression is already applied on kernels.
usually you compile a kernel into bzImage, the "z" just means it's compressed.

modern linux kernels allow you to choose from gzip, bzip2, lzma, xz, lzo, lz4.
this includes ramdisk.
 
Miraxulix
Old
#6  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Feb 2010
If you need space, just use an sdcard or microusb or Mount a network share...

Gesendet von meinem folio100 mit Tapatalk
Tags
btrfs, compress, kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes