Page 2 of 2

R: Installing LMDE on BTRFS with lzo compression, almost

Posted: Thu Feb 07, 2013 4:13 am
by penzoiders
To make effective the changes you have to reboot if we are talking about your /.

To have compression if you install it on plain btrfs then you mount root sub volume with compression, an rsync things there.. While copying it will compress.

Lzo probably is best for compression but zlib is very lightweight on cpu.

Both will move ahead the write barrier.


Note: if you notice performance drop using discard you may disable it and clean the free space with fstrim from time to time. On sandforce controller I do like this.

Cheers!

Inviato da un telefono a gettoni con tapatalk

Re: Installing LMDE on BTRFS with lzo compression, almost

Posted: Thu Feb 07, 2013 3:18 pm
by keantoken
The BTRFS wiki says the opposite about Zlib and Lzo:

https://btrfs.wiki.kernel.org/index.php/Compression

Lzo is designed to be real-time, compromising on compression ratio. But you said you tested it and found Zlib to perform better?

R: Re: Installing LMDE on BTRFS with lzo compression, almost

Posted: Fri Feb 08, 2013 7:42 pm
by penzoiders
keantoken wrote:The BTRFS wiki says the opposite about Zlib and Lzo:

https://btrfs.wiki.kernel.org/index.php/Compression

Lzo is designed to be real-time, compromising on compression ratio. But you said you tested it and found Zlib to perform better?
By testing it seems that speed is almost same.
When i said zlib is better i was speaking about compression related to cpu stress.

But zlib is very light on cpu and very effectife in compression... may worth using it.

These are my 2c.

Inviato dal mio Transformer TF101G con Tapatalk 2

Re: Installing LMDE on BTRFS with lzo compression, almost

Posted: Tue Feb 12, 2013 11:10 am
by nunol
You could test which is better for, it depends on the CPU and HDD/SDD performance.

One uses lzo the other zlib (-3) so you could try to isolate compression by using lzop and gzip in a tmpfs and compare the result with your disk performance.

Would be nice to be able to select other compressions levels (-1 to -9) and have other compressors availabled (xz, lz4, etc).