You are not logged in.

#1 2012-03-23 13:18:09

*nixer
Member
Registered: 2011-11-11
Posts: 56

Btrfs root install: Is snappy compression available in Arch?

Hi.

I'm reinstalling Arch after finally receiving a replacement hard-drive. I'm considering holding off creating a Btrfs for / until the "snappy" compression algorithm becomes available. Can anyone tell me if it's possible to do now?

My last install used a lzo compressed btrfs root.

Offline

#2 2012-03-23 19:24:39

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Btrfs root install: Is snappy compression available in Arch?

The official package is  Not yet updated with that. It needs kernel support too.
http://www.phoronix.com/scan.php?page=n … px=MTA0MjQ


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2012-03-23 19:56:41

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Btrfs root install: Is snappy compression available in Arch?

They should focus on implementing an fsck and a recovery tool first. That's the biggest drawback from using btrfs right now, not disk compression. One power outage and you'll have to reinstall Arch!


"How to Succeed with Linux"

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

#4 2012-03-23 20:54:33

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Btrfs root install: Is snappy compression available in Arch?

@DS - I thought that the fsck support was merged in mainline 3.3?  Looks like [core]/btrfs-progs are dated "0.19.20120110-2" and there is nothing in [testing] that is newer.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2012-03-24 01:15:13

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Btrfs root install: Is snappy compression available in Arch?

Oracle declared btrfs to be stable few days ago.

http://groups.google.com/group/snappy-c … 7234c161cd --> look at the snappy release date.

Arch package says its unstable and it is the current version.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#6 2012-03-24 23:14:58

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Btrfs root install: Is snappy compression available in Arch?

DSpider wrote:

They should focus on implementing an fsck and a recovery tool first. That's the biggest drawback from using btrfs right now, not disk compression. One power outage and you'll have to reinstall Arch!

Am I missing something?  I seem to have a btrfsfsck... haven't needed to use it yet...

# whereis btrfsck
btrfsck: /usr/bin/btrfsck /usr/share/man/man8/btrfsck.8.gz

for some reason it's fsck isn't picked up when I do a mkinitcpio...

# mkinitcpio -p linux
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.2.12-1-ARCH
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [autodetect]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
  -> Parsing hook: [btrfs]
  -> Parsing hook: [btrfs_advanced]
  -> Parsing hook: [fsck]
==> ERROR: file not found: `fsck.btrfs'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.2.12-1-ARCH
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
  -> Parsing hook: [btrfs]
  -> Parsing hook: [btrfs_advanced]
  -> Parsing hook: [fsck]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

Offline

#7 2012-03-25 00:01:09

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Btrfs root install: Is snappy compression available in Arch?

hadrons123 wrote:

Oracle declared btrfs to be stable few days ago.

Oracle says so many things...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2012-03-25 01:31:32

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Btrfs root install: Is snappy compression available in Arch?

==> ERROR: file not found: `fsck.btrfs'

I had this error too. But didnt know how to deal with that, and installed the OS in ext4.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#9 2012-03-25 09:55:54

Avi Miller
Member
Registered: 2012-01-30
Posts: 12

Re: Btrfs root install: Is snappy compression available in Arch?

DSpider wrote:

They should focus on implementing an fsck and a recovery tool first. That's the biggest drawback from using btrfs right now, not disk compression.

We have both in btrfs already: the repairing version of btrfsck is in Chris' git repo and is included with btrfs-progs on Oracle Linux 5 and 6. Likewise, we now have both a read-only recovery tool that can copy data off a damaged btrfs volume, as well as a recovery mount option (mount -o recovery) that will back-walk the btrfs b-trees to find a stable, consistent filesystem.

Offline

#10 2012-03-25 10:02:30

Avi Miller
Member
Registered: 2012-01-30
Posts: 12

Re: Btrfs root install: Is snappy compression available in Arch?

*nixer wrote:

I'm reinstalling Arch after finally receiving a replacement hard-drive. I'm considering holding off creating a Btrfs for / until the "snappy" compression algorithm becomes available.

Is there a particular reason you're waiting for Snappy? Keep in mind that you can actually change compression algorithms on-the-fly, i.e. start with LZO now and switch to Snappy compression later. Obviously older files that are compressed will remain LZO, but new files and modified files will be recompressed with Snappy.

Offline

#11 2012-03-25 14:14:38

*nixer
Member
Registered: 2011-11-11
Posts: 56

Re: Btrfs root install: Is snappy compression available in Arch?

I'm running an old PC with no hope of upgrade for now with the bottleneck being a Pentium 4 cpu.

This was based off a completely subjective feel, and while I didn't actually do any benchmarks, I thought the following.

- Uncompressed Btrfs  performed better on desktop tasks than Ext4 did.
- Btrfs with lzo compression created a noticible lag time when loading apps.

I was hopingthe snappy compression would create a nice compromise while trying to save as much space as possible.

Offline

#12 2012-03-25 23:33:45

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Btrfs root install: Is snappy compression available in Arch?

Is btrfs compression even beneficial if you have an ssd that already does compression (like intel ssd's)?

Offline

#13 2012-03-28 18:32:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Btrfs root install: Is snappy compression available in Arch?

Avi Miller wrote:
DSpider wrote:

They should focus on implementing an fsck and a recovery tool first. That's the biggest drawback from using btrfs right now, not disk compression.

We have both in btrfs already: the repairing version of btrfsck is in Chris' git repo and is included with btrfs-progs on Oracle Linux 5 and 6. Likewise, we now have both a read-only recovery tool that can copy data off a damaged btrfs volume, as well as a recovery mount option (mount -o recovery) that will back-walk the btrfs b-trees to find a stable, consistent filesystem.

Avi - I can't seem to locate the repo to which you refer.  I did find the following, but this hasn't seen an update in 6 months.  Can you post the url?  Would love to get my hands on the fsck util smile

https://github.com/chrismason


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#14 2012-03-28 20:13:52

Avi Miller
Member
Registered: 2012-01-30
Posts: 12

Re: Btrfs root install: Is snappy compression available in Arch?

graysky wrote:

Avi - I can't seem to locate the repo to which you refer.

https://git.kernel.org/?p=linux/kernel/ … ads/master

This is actually the version of btrfs-progs we've released as part of the UEK2 production release on Oracle Linux. Chris merged it across this morning/evening depending on your timezone. smile

Last edited by Avi Miller (2012-03-28 20:17:35)

Offline

#15 2012-03-28 21:04:40

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Btrfs root install: Is snappy compression available in Arch?

I have an intel 520 (cherryville) that I was thinking about installing arch with btrfs compress=lzo, would there be any benefit to this or would I be defeating the purpose of the on ssd compression.  I tried the install a few times with and without, it took a long time to open an encrypted document and some vm's seemed laggy.  It was less so without, but I'm not sure that was a misconfiguration or not.  I even tried a gentoo install with out it and it was huge on the disk, I might try it with compression to see what difference it would make.

Besides my little experience there doesn't seem to be a lot of definitive info about compression with btrfs on an ssd that does compression, whether it helps or not.

Offline

#16 2012-03-29 11:55:20

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Btrfs root install: Is snappy compression available in Arch?

Using compression for an SSD means less data to be written and thus, less wear on the cells. But compressing an already compressed file could result in a slightly larger file (not to mention a higher CPU involvement in the process) - which could very well be pointless.

But I think that this discussion is outside the scope of this thread.

If your SSD comes with some form of hardware compression, maybe you can disable it with a firmware tool, setting, reflash, something and let the OS compress them with a better algorithm/method.


"How to Succeed with Linux"

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

Board footer

Powered by FluxBB