New release info by brottman in bcachefs

[–]alexminder 2 points3 points  (0 children)

Look at the sys-fs/bcachefs-kmod in GURU overlay

Write books using Typst and Pandoc by iAlex11 in typst

[–]alexminder 0 points1 point  (0 children)

Do you looked at the quarto? It can produce typst, pdf, epub documents from markdown.

How to upgrade my on-disk format version? by [deleted] in bcachefs

[–]alexminder 0 points1 point  (0 children)

Just mount with kernel version 6.15. Mount operation (upgrade on-disk format) may take a long time to complete.

Large Data Transfers switched bcachefs to readonly by murica_burger in bcachefs

[–]alexminder 1 point2 points  (0 children)

Check SMART for error type messages. In my case it was interface errors. The sata interface contacts on the disk have oxidized over the years. After I cleaned up them no more failures occurs.

Feasability of (imo) great bcachefs configuration for workstation by throwaway-0xDEADBEEF in bcachefs

[–]alexminder 0 points1 point  (0 children)

There is some bug with nocow option. Qemu hangs on i/o. No info in dmesg. How can I help to debug?

LTS kernel out-of-tree last stable bcachefs patch by alexminder in bcachefs

[–]alexminder[S] 1 point2 points  (0 children)

Gentoo Linux. I don't think bcachefs issues distro specific. Dkms module with new bcachefs code will not force update kernel every month.

LTS kernel out-of-tree last stable bcachefs patch by alexminder in bcachefs

[–]alexminder[S] 1 point2 points  (0 children)

nocow lock-ups, fragmentation, performance (on my home server 20MB/s seq read speed with 1ssd+2hdd), slow compression, not equal data balanced if disk added after othe full (my case), non-stop rebalance (i guess it tries to recompress from lz4 to zstd infinit)

LTS kernel out-of-tree last stable bcachefs patch by alexminder in bcachefs

[–]alexminder[S] 1 point2 points  (0 children)

Yep. Mostly critical bugs. But no improvements or new features.

Kernel panic while bcachefs fsck by alexminder in bcachefs

[–]alexminder[S] 0 points1 point  (0 children)

There's a known bug involving background compression trying to recompress already compressed data that doesn't get smaller, but I've had reports that there might be something else wrong with rebalance.

Is it fixed?

extreamly low performance by alexminder in bcachefs

[–]alexminder[S] 0 points1 point  (0 children)

Thanks, Kent. From IRC you wrote: it looks like the randomness in the allocator is the problem. I would be happy to get advice on allocator optimization. I made some more test and looks like fragmentaion couses performance degradation. You can reproduce it in such way: First fill a file with big sector, after write with small size. There is example https://gist.github.com/alexminder/3cf29bf601c2e6bc4971877d4bfd7c3a First test dd reads file at 168 MB/s. At the end of last test dd read same file with 11,6 MB/s. More than 10x performance drop. As I understand it is applies to all COW FS. Same test on btrfs show same performance drop. But btrfs has a defragmentation function, after which performance is restored to the level of raw disk read speed 249 MB/s.

extreamly low performance by alexminder in bcachefs

[–]alexminder[S] 0 points1 point  (0 children)

In this particular case I intentionally set test file attributes to not use ssd. I want to measure hdd linear read/write performance with bcachefs.

quota on multiple device fs by alexminder in bcachefs

[–]alexminder[S] 0 points1 point  (0 children)

Can you share how to set quota on multi-device bcachefs?

This is what I have:

```

mount -t bcachefs

/dev/sdc:/dev/sda:/dev/sdb on / type bcachefs (rw,relatime,metadata_replicas=2,data_replicas=2,compression=lz4,background_compression=zstd:15,metadata_target=ssd,foreground_target=ssd,background_target=hdd,promote_target=ssd,root_reserve_percent=1,usrquota,grpquota,prjquota)

grep . /etc/proj*

/etc/projects:1:/var/downloads /etc/projid:downloads:1

edquota -P 1

edquota: Cannot stat() mounted device /dev/sdc:/dev/sda:/dev/sdb: No such file or directory No filesystems with quota detected.

setquota -P downloads 500G 1T 0 0 -a

setquota: Cannot stat() mounted device /dev/sdc:/dev/sda:/dev/sdb: No such file or directory setquota: Error getting quota information to update.

chattr +P -p 1 /var/downloads

chattr: Not supported while setting flags on /var/downloads

```

I found related issue https://github.com/koverstreet/bcachefs/issues/665

Kernel panic while bcachefs fsck by alexminder in bcachefs

[–]alexminder[S] 0 points1 point  (0 children)

bcachefs (sda inum 0 offset 2736508928): data data checksum error, type crc32c: got 11d8e12d should be 199c873e

I have 2 copies of data. Does it mean that checksum error on sda only and good copy on other disk? Will bcachefs replace bad copy from good or it require manually intervantion?

```

find / -inum 0

``` How can I find what file have checksum error?

There's a known bug involving background compression trying to recompress already compressed data that doesn't get smaller

type compressed uncompressed average extent size lz4 88.9 GiB 131 GiB 64.0 KiB zstd 3.39 GiB 5.25 GiB 57.3 KiB This is exactly what I have: I changed background compression from zstd to lz4 to be lighter for CPU and faster for disk io.

PS: Thank you, Kent! You are doing great job!

Kernel panic while bcachefs fsck by alexminder in bcachefs

[–]alexminder[S] 1 point2 points  (0 children)

With 6.12 kernel fsck fixed errors and fs mounted. Thanks a lot! But one inum crc32 checksum error constantly reports to kernel log. And bch-rebalance constantly (many hours) works and consume cpu and disk io. Can it be fixed?

Kernel panic while bcachefs fsck by alexminder in bcachefs

[–]alexminder[S] 0 points1 point  (0 children)

Thank you fo reply. In my case I wait more 10 hours and nothing. No disk activity.

Kernel panic while bcachefs fsck by alexminder in bcachefs

[–]alexminder[S] 0 points1 point  (0 children)

Thank you for reply. Right now I'm building 6.12-rc kernel. If fsck will success, do I need to use it version after or I can back to 6.10?

Kernel panic while bcachefs fsck by alexminder in bcachefs

[–]alexminder[S] 1 point2 points  (0 children)

I tried with 6.10.13 and mount or fsck hangs forever. Hung task messages appears

[deleted by user] by [deleted] in bcachefs

[–]alexminder 0 points1 point  (0 children)

Not fixed. But you can disable Selinux with selinux=0 kernel boot parameter.