pimeys

joined 2 years ago
[–] pimeys@lemmy.nauk.io 34 points 5 months ago (6 children)

Ted is the maintainer of ext4 and there are not many people in the world who understand this code.

For Rust to succeed, it has to get the subsystem maintainers to agree. It is going to be many years of petting very angry bobcats...

And that is not even the worst I've heard, makes you a bit numb if you follow LKML.

[–] pimeys@lemmy.nauk.io 1 points 5 months ago

Me neither, but the risk is there and well documented.

The point was, ZFS is not great as your normal laptop/workstation filesystem. It kind of requires a certain setup, can be slow in certain kinds of workflows, expects disks of same size and is never available immediately for the latest kernel version. Nowadays you actually can add more disks to a pool, but for a very long time you needed to build a new one. Adding a larger disk to a pool will still not resize it, untill all the disks are replaced.

It shines with steady and stable raid arrays, which are designed to a certain size and never touched after they are built. I would never use it in my workstation, and this is the point where bcachefs gets interesting.

[–] pimeys@lemmy.nauk.io 2 points 5 months ago

At the same time Windows is going down the drain, so if you compare removed to that it definitely has an edge. And that 8GB Air is not that expensive either... And fanboy can tell you it can swap to SSD so fast blah blah...

But if you have the knowledge to use Linux, there are less and less reasons to go even near removed computers...

[–] pimeys@lemmy.nauk.io 1 points 5 months ago (2 children)

But scrub is not fsck. It just goes through the checksums and corrects if needed. That's why you need ECC ram so the checksums are always correct. If you get any other issues with the fs, like a power off when syncing a raidz2, there is a chance of an error that scrub cannot fix. Fsck does many other things to fix a filesystem...

So basically a typical zfs installation is with UPS, and I would avoid using it on my laptop just because it kind of needs ECC ram and you should always unmount it cleanly.

This is the spot where bcachefs comes into place. It will implement whatever we love about zfs, but also be kind of feasible for mobile devices. And its fsck is pretty good already, it even gets online checks in 6.11.

Don't get me wrong, my NAS has and will have zfs because it just works and I don't usually need to touch it. The NAS sits next to UPS...

[–] pimeys@lemmy.nauk.io 4 points 5 months ago (2 children)

It is only in TLS where you have to disable compression, not in HTTP.

https://security.stackexchange.com/questions/19911/crime-how-to-beat-the-beast-successor/19914#19914

Could you explain how a CRIME attack can be done to a disk?

[–] pimeys@lemmy.nauk.io 1 points 5 months ago

I mean... If you have a ton of raw photos in one directory, you can enable the highest compression rate with zstd to it. Every other directory has lz4 with the fastest compression. Your pics take much less space, but the directory will be slower to read and write.

[–] pimeys@lemmy.nauk.io 52 points 5 months ago* (last edited 5 months ago) (15 children)

For me the reason was that I wanted encryption, raid1 and compression with a mainlined filesystem to my workstation. Btrfs doesn't have encryption, so you need to do it with luks to an mdadm raid, and build btrfs on top of that. Luks on mdadm raid is known to be slow, and in general not a great idea.

ZFS has raid levels, encryption and compression, but doesn't have fsck. So you better have an UPS for your workstation for electric outages. If you do not unmount a ZFS volume cleanly, there's a risk of data loss. ZFS also has a weird license, so you will never get it with mainline Linux kernel. And if you install the module separately, you're not able to update to the latest kernel before ZFS supports it.

Bcachefs has all of this. And it's supposed to be faster than ZFS and btrfs. In a few years it can really be the golden Linux filesystem recommended for everybody. I sure hope Kent gets some more help and stops picking fights with Linus before that.

[–] pimeys@lemmy.nauk.io 8 points 5 months ago (3 children)

One of the best filesystem codebases out there. Really a top notch file system if you don't need to resize it once it's created. It is a write through, not copy on write, so some features such as snapshots are not possible using XFS. If you don't care about features found in btrfs, zfs or bcachefs, and you don't need to resize the partition after creating it, XFS is a solid and very fast choice.

Ext4 codebase is known to be very complex and some people say even scary. It just works because everybody's using it and bugs have been fixed years ago.

[–] pimeys@lemmy.nauk.io 10 points 5 months ago

Yeah. Scary stuff. I live in central Berlin, and it's pretty relaxed here. Did the Mauerlauf last weekend and immediately when you cross the Brandenburg border to some of these villages, they're full of AfD advertisement. Berlin is definitely the Portland of Germany :D

[–] pimeys@lemmy.nauk.io 2 points 5 months ago* (last edited 5 months ago)

Yep, windows kernel has a ton of Rust code already, even some of its syscalls are made in Rust. Linux kernel is getting a new GPU driver for NVIDIA written in Rust, and GPU driver for removed M-series also written in Rust. removed is hiring Rust devs, so is Amazon, Meta, Google...

In the startup space it's been quite good with Rust for some time. I've been writing production code with it for almost a decade. It is not a fad anymore.

A productive, safe, fast and fun language to write with excellent tooling, and we are just getting started.

[–] pimeys@lemmy.nauk.io 2 points 5 months ago

And developers who get familiar and easy tools such as cargo, rust-analyzer and all the popular libraries working in any Cosmic project in about five minutes. And the compiler will tell you if you managed to make memory errors or data races in a very clear way. Always the same way.

You learn Rust and its tools once, and you can just jump into any of these projects and be productive.

And yes, scripting language is needed for Cosmic at some point. There are a ton of them, from RHAI to different lisps to python to javascript. Plug and play, and the interop is easy and fast.

[–] pimeys@lemmy.nauk.io 2 points 5 months ago (6 children)

More than C or C++? I've been working on very effective and performing Rust teams professionally now about a decade and I tend to disagree.

view more: ‹ prev next ›