this post was submitted on 06 Mar 2024
7 points (100.0% liked)

libre

9656 readers
4 users here now

Welcome to libre

A comm dedicated to the fight for free software with an anti-capitalist perspective.

The struggle for libre computing cannot be disentangled from other forms of socialist reform. One must be willing to reject proprietary software as fiercely as they would reject capitalism. Luckily, we are not alone.

libretion

Resources

  1. Free Software, Free Society provides an excellent primer in the origins and theory around free software and the GNU Project, the pioneers of the Free Software Movement.
  2. Switch to GNU/Linux! If you're still using Windows in $CURRENT_YEAR, flock to Linux Mint!; Apple Silicon users will want to check out Asahi Linux.
  3. Social Media Recommendations:

Rules

  1. Be on topic: Posts should be about free software and other hacktivst struggles. Topics about general tech news should be in the technology comm or programming comm.
  2. Avoid using misleading terms/speading misinformation: Here's a great article about what those words are. In short, try to avoid parroting common Techbro lingo and topics.
  3. Avoid being confrontational: People are in different stages of liberating their computing, focus on informing rather than accusing. Debatebro nonsense is not tolerated.
  4. All site-wide rules still apply

Artwork

founded 3 years ago
MODERATORS
 

cross-posted from: https://hexbear.net/post/2006806

In response to a post made by @[email protected] about a month ago, asking if anybody has tried Bcachefs.

I recently got around to giving Bcachefs a shot. I am currently running a Gentoo system with Bcachefs as the root filesystem. The filesystem consists of a 1.5TB NVMe volume backed by a conventional 6TB hard disk drive.

Getting it set up was no picnic. I might be missing something, but as far as I can tell a lot of standard tooling lacks support for filesystems spanning multiple block devices (single-partition Bcachefs seems to work like any other FS, but that defeats the point of using Bcachefs). It seems most of them assume you are going to use LVM for a use case like this, while Bcachefs sidesteps the device-mapper interface (and everything built on top, like LUKS and LVM) completely.

At the moment, Bcachefs uses a colon-separated list to specify these block devices. From things like the initramfs generated by dracut or mkinitcpio to utilities included in util-linux, this syntax is not widely supported. A multi-device Bcachefs filesystem can be mounted with mount. The command looks something along the lines of mount -t bcachefs /dev/nvme0n1p1:/dev/sda1 /mnt. These multi-device lists only work if you specify the filesystem type explicitly, and I had to roll my own initramfs from scratch in order to take this input from the kernel command line and handle it specially. Though mount works, libraries like libblkid (and probably others) report suspicious results about the volume / constituent partitions (i.e. that only one of the constituent partitons is mounted). That said, I am not running bleeding versions of Linux, util-linux, or bcachefs. Unstable maybe, but provided by versioned ebuilds in Gentoo. It is also worth noting, it is not currently possible to mount Bcachefs subvolumes the way you can Btrfs subvolumes. The only way this can be done currently is via bind mounts. There is an issue open to implement this feature, but it is not currently a high priority.

The filesystem itself appears to be working smoothly, though there are several rough edges (for instance, I don't think you can currently change a filesystem label after formatting it. Also it struggles when there is not enough space available to reach the replicas_required target. I didn't get an error, it just got super slow).

Before trying this out, I used to run Btrfs in a multi-disk LVM which performed ssd caching at the block layer. Performance on Bcachefs isn't noticeably worse or better IMO, but I haven't done any remotely empirical side-by-side benchmarks. I just got this running yesterday and will need more time to assess performance. I will need to put a lot more data into this filesystem before it starts missing cache on the hot drive, for instance.

Bcachefs is certainly in an experimental state (as the Linux menuconfig tool will remind you), but it aims to do exactly what I am looking for in a filesystem so I had to try it out. I plan on sticking with it unless a catastrophe occurs.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here