You are not logged in.

#1 2013-01-13 00:43:23

miro279
Member
Registered: 2010-10-02
Posts: 153

[SOLVED] btrfs and lzo

Do I need to install lzo package to use lzo compression on a btrfs partition? Can I somehow check if compression is working?
Cheers

Last edited by miro279 (2013-01-13 09:57:17)

Offline

#2 2013-01-13 00:45:17

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] btrfs and lzo

This is done in the kernel, so you don't need to install any package. Last I tried to test the compression there was no simple way (but you could try to deduce it from total space usage etc.)

Offline

#3 2013-01-13 09:03:49

miro279
Member
Registered: 2010-10-02
Posts: 153

Re: [SOLVED] btrfs and lzo

ok, thanks.
The funny thing is, that df gives me weird output after changing to btrfs with lzo:

/dev/sda4      133169152 84898324   5433128  94% /home

If I recalculate that should be a reading of about 64% usage, not 94%. And I think 64% was about the value I had before chaning to btrfs (from ext4) so I was kind of doubtful about the compression..
kde behaves the same way, if I click home propertys it tells me I have  136,4GB for the partition,  88,0GB are used and  5,6GB are free with is a usage of 96%.. Is the btrfs metadate that big?

Offline

#4 2013-01-13 09:54:03

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [SOLVED] btrfs and lzo

Don't use df on btrfs partitions, use 'btrfs filesystem df' instead. I think this is covered on our wiki, but if not, it's on the official btrfs wiki (along with information on how to understand it's output).

The amount of space your metadata takes up is unique, if you have lots of tiny files, you'll have more metadata than, say, if you had half a dozen huge files.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2013-01-13 09:56:49

miro279
Member
Registered: 2010-10-02
Posts: 153

Re: [SOLVED] btrfs and lzo

it's not on the arch wiki, but I found it here: https://btrfs.wiki.kernel.org/index.php … licated.3F
I'm running btrfs filesystem balance /home/ at the moment..

thanks for your help. after all it seems that btrfs has some way to cover before it feels realy ready for normal use (also the fsck problem).

Offline

#6 2013-01-13 10:48:31

miro279
Member
Registered: 2010-10-02
Posts: 153

Re: [SOLVED] btrfs and lzo

just for info: df reading after balance:

/dev/sda4      133169152 84865124  45292344  66% /home

Offline

Board footer

Powered by FluxBB