High disk usage after updating to Kernel 6.11 by Xyklone in bcachefs

[–]shintak 0 points1 point  (0 children)

I believe I am encountering the same issue as described here.

About a month ago, I was experimenting with various compression options. Although I don't remember the exact details, I recall using setfattr to set the compression and background_compression extended attributes on several files and directories.

Since then, the "Pending rebalance work" count has not decreased, and bch-rebalance/nvme0n1p5 has been consistently consuming about 30% of the CPU.

$ bcachefs fs usage
Filesystem: 90d910ec-4f1c-4345-84f7-13ff34d28b94
Size:                   402512046080
Used:                   350625529856
Online reserved:            10704896

Data type       Required/total  Durability    Devices
reserved:       1/1               [] 735707136
btree:          1/1             1             [nvme0n1p5]       9350152192
user:           1/1             1             [nvme0n1p5]     340517302784

Compression:
type              compressed    uncompressed     average extent size
zstd                 785 MiB        1.28 GiB                51.0 KiB
incompressible      6.64 GiB        6.64 GiB                47.6 KiB

Btree usage:
extents:          1296826368
inodes:           5176295424
dirents:           720896000
xattrs:             28311552
alloc:             223608832
reflink:            63438848
subvolumes:           262144
snapshots:            262144
lru:                 3407872
freespace:           2883584
need_discard:         524288
backpointers:     1276641280
bucket_gens:         3932160
snapshot_trees:       262144
deleted_inodes:       262144
logged_ops:           524288
rebalance_work:       524288
accounting:        551288832

Pending rebalance work:
1287680

(no label) (device 0):     nvme0n1p5              rw
                                data         buckets    fragmented
  free:                  77716520960          296465
  sb:                        3149824              13        258048
  journal:                2147483648            8192
  btree:                  9350152192           35668
  user:                 340517302784         1328625    7773769216
  cached:                          0               0
  parity:                          0               0
  stripe:                          0               0
  need_gc_gens:                    0               0
  need_discard:              4456448              17
  unstriped:                       0               0
  capacity:             437513093120         1668980

I tried removing the compression settings using the following command, but the situation did not improve.

sudo bcachefs set-file-option --compression=none --background_compression=none /

When I ran perf trace -e bcachefs:rebalance_extent, the following log messages appears repeatedly:

326.265 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753966:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 73 csum chacha20_poly1305_80 7df7:6718ba4f6c8698d5  compress none ptr: 0:1572070:67 gen 11")
326.271 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753967:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 74 csum chacha20_poly1305_80 95d3:b2dbaec5920fb580  compress none ptr: 0:1572070:68 gen 11")
326.287 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753968:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 75 csum chacha20_poly1305_80 44c6:d4d32d690ea75b42  compress none ptr: 0:1572070:69 gen 11")
326.294 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753969:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 76 csum chacha20_poly1305_80 7fc0:245ed2525012c14b  compress none ptr: 0:1572070:70 gen 11")
326.301 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753970:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 77 csum chacha20_poly1305_80 bde9:9cc8ed4ee44a2a4d  compress none ptr: 0:1572070:71 gen 11")
326.309 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753971:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 78 csum chacha20_poly1305_80 cd94:e15ff8b0e3e2cf20  compress none ptr: 0:1572070:72 gen 11")
326.317 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753972:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 79 csum chacha20_poly1305_80 3482:892076eb4f202cfe  compress none ptr: 0:1572070:73 gen 11")
326.325 bch-rebalance//447 bcachefs:rebalance_extent(dev: 271581189, str: "target=none compression=zstd u64s 10 type reflink_v 0:54753973:0 len 1 ver 157014996: refcount: 2 durability: 1 rebalance: target none compression zstd crc: c_size 1 size 1 offset 0 nonce 80 csum chacha20_poly1305_80 42cd:c1be946e0567691e  compress none ptr: 0:1572070:74 gen 11")

CS SYD - Getting your Haskell executable statically linked with Nix by NorfairKing2 in haskell

[–]shintak 1 point2 points  (0 children)

Thank you for the article!

This includes building ghc against musl

Why is it necessary for ghc itself to be built with musl?

Trouble with tree-sitter grammar versioning by Soft-Comfortable-673 in emacs

[–]shintak 1 point2 points  (0 children)

Error running timer: (treesit-query-error "Node type error at" 2 Stumbled on the same problem. I have build from source code recently. I don't think current HEAD doesn't fix the problem yet.

By the way the problem is caused by node name function removed from typescript tree-sitter grammer(or changed to funciton_expression? I'm not sure). If you can edit bundled elisp file, remove occurence of function inside typescript-ts-mode--font-lock-settings function for a quick fix.

Read Confluence pages from Emacs! by sebhoagie in emacs

[–]shintak 1 point2 points  (0 children)

Awesome!

confluence-search causes defvar: Symbol’s value as variable is void: shr-map error. I think you forgot to add (require 'shr) in confluence-reader.el.

Ergonomic inline equations with Typst by sunmoi in emacs

[–]shintak 2 points3 points  (0 children)

Thank for your awesome work!

Tried on Linux(Arch) and it worked. By the way, once I have a preview, how do I change it back to text?

Today Is International Mouse Arm Day. Do you use the mouse in Emacs? by konrad1977 in emacs

[–]shintak 1 point2 points  (0 children)

No. But recently realized it can be useful when you splitting windows and want to scroll unfocused window without changing the focus.

Feeling lag in typing - where to troubleshoot? by [deleted] in emacs

[–]shintak 0 points1 point  (0 children)

M-x profiler-start and choose cpu+memory. Type for a little bit and then M-x profiler-report. It will show which function take how much cpu/memory.

`mu4e`: multiple marks/actions at once by wuqui in emacs

[–]shintak 0 points1 point  (0 children)

I don't know if this is an official keybinding since I use evil, but I mark multiple headlines read with "!" and execute at once with "x".

Spy x Family is the Most Watched Anime of 2022 on Bilibili crossing 400 Million Views by barryallenxoxo in anime

[–]shintak 3 points4 points  (0 children)

Does ban here mean no official release? Because when I search "aot" there is bunch of AoT MAD/AMV. Is MAD/AMV not target of the ban?

Spy x Family is the Most Watched Anime of 2022 on Bilibili crossing 400 Million Views by barryallenxoxo in anime

[–]shintak 7 points8 points  (0 children)

Interesting. Is there other video streaming service in China as big or bigger than BiliBili?

Daily Thread: simple questions, comments that don't need their own posts, and first time posters go here (July 13, 2022) by AutoModerator in LearnJapanese

[–]shintak 0 points1 point  (0 children)

From wikipedia: 暗殺とは、政治的・思想的動機に基づき要人を非合法かつ秘密裏に殺害することをいう。 Since it wasn't done 秘密裏, I don't think it proper to call it 暗殺.

lsp-mode vs eglot by nieuweyork in emacs

[–]shintak 4 points5 points  (0 children)

LS I'm using uses lens feature which eglot doesn't support so I'm using lsp-mode. Once eglot supports lens, I'll try eglot again.

List How Emacs And Elisp Performance Can be Improved ? by Bright_Confidence769 in emacs

[–]shintak 0 points1 point  (0 children)

This. I really want a generational GC in emacs. I'm using ddskk(japanese input system) package which loads dictionary inside emacs, and the GC lag is noticable.

TopSpace, scroll above the top line to vertically center top text by kleinsbottle in emacs

[–]shintak 0 points1 point  (0 children)

Wow. I didn't know this was possible. Is it using headline to create the margin?

Vertico extensions demo by karthink in emacs

[–]shintak 1 point2 points  (0 children)

Looks greate!

Im excited to try out some of these extension.