Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] [SOLVED] Btrfs compression  (Read 10799 times)

Offline agaida

  • User
  • Posts: 1.760
    • http://g-com.eu
[EN] [SOLVED] Btrfs compression
« Reply #15 on: 2013/01/09, 03:25:56 »
dibl: I don't like btrfs very much (performancewise). It's to slow on writing. I've benched this a time ago and i'm not impressed. I would prefer btrfs on small devices like netbooks, where the fast reading make sense and the slow writing doesn't count ( aka i never ever will compile a kernel, a office suite or a browser on a netbook). :P
There's this special biologist word we use for "stable". It's "dead". ~ Jack Cohen

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.394
    • Land of the Buckeye
[SOLVED] Btrfs compression
« Reply #16 on: 2013/01/09, 03:34:33 »
No.  Alf, I think you do not understand the purpose of BTRFS -- it is only for the large data filesystems.  It has no advantage for a netbook, or the OS partition on a typical Linux installation.  It is for the big data server.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline agaida

  • User
  • Posts: 1.760
    • http://g-com.eu
[SOLVED] Btrfs compression
« Reply #17 on: 2013/01/09, 03:36:42 »
;) - i think i understand btrfs. But i will never ever use it for a data server this time. I will have a second thought about using it on a server in 10 years.
There's this special biologist word we use for "stable". It's "dead". ~ Jack Cohen

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.394
    • Land of the Buckeye
[SOLVED] Btrfs compression
« Reply #18 on: 2013/01/09, 04:35:35 »
Quote from: "agaida"
I will have a second thought about using it on a server in 10 years.


No problem -- in 2023, on 9 JAN, we will discuss how you will install BTRFS for your data partition.

 :lol:
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

dfe

  • Guest
[SOLVED] Btrfs compression
« Reply #19 on: 2013/01/10, 12:49:59 »
Now, after running with compression for a day, I can say that everything is working fine. GRUB2 has no problems booting from the compressed filesystem. Thanks for all the help here.

Maybe it's of interest how I compressed the existing files on the fs.
After adding "compress=lzo" to the mount options and rebooting, I issued the following as root:
Code: [Select]
cd / && find -xdev -type f -exec btrfs fi defrag -clzo '{}' \;
That shrinked the size of my install from around 3.6GB to 2.1GB.

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.394
    • Land of the Buckeye
[SOLVED] Btrfs compression
« Reply #20 on: 2013/01/10, 14:21:25 »
Very good!  There is also a "scrub" tool for btrfs, which I have used on my filesystem.  You can read about it in the wiki.

If you will please edit the title of your original post and add "SOLVED", then perhaps another user will find this thread helpful.  Thanks!
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO