Comments (11)
from bcachefs.
I'm also getting hangs trying to copy data off of the filesystem or trying to get a git status afterwards - it seems like trying to install nixos makes the entire file system unusable.
Mind that these hangs happen both with the reverted commits and the current head.
from bcachefs.
Which commits were you reverting?
I'm not seeing anything with xfstests, and I wouldn't expect a hang in fdatasync to have anything to do with the format options, so something weird is going on...
Can you try without zstd?
from bcachefs.
Sorry, I should have used the term 'amended', it seems you made this change at some point and I was referring to it happening even with it:
diff --git a/fs/bcachefs/btree_gc.h b/fs/bcachefs/btree_gc.h
index 1905acfa028a..8af5f841a537 100644
--- a/fs/bcachefs/btree_gc.h
+++ b/fs/bcachefs/btree_gc.h
@@ -109,7 +109,7 @@ static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos)
do {
seq = read_seqcount_begin(&c->gc_pos_lock);
- ret = gc_pos_cmp(pos, c->gc_pos) < 0;
+ ret = gc_pos_cmp(pos, c->gc_pos) <= 0;
} while (read_seqcount_retry(&c->gc_pos_lock, seq));
return ret;
I'm still installing but I got past the point where it usually hangs by omitting zstd, looks like that is where the problem lies.
from bcachefs.
The issue seems to also occur with lz4, but I can confirm it does not happen without compression.
from bcachefs.
from bcachefs.
Happens with only --compression
, too.
from bcachefs.
from bcachefs.
perf top output does not show whatever is maxing out the core.
backtrace:
[<0>] io_schedule+0x12/0x40
[<0>] wait_on_page_bit_common+0xfe/0x210
[<0>] __filemap_fdatawait_range+0xd5/0x130
[<0>] file_write_and_wait_range+0x68/0x90
[<0>] bch2_fsync+0x28/0xa0 [bcachefs]
[<0>] do_fsync+0x38/0x60
[<0>] __x64_sys_fdatasync+0x13/0x20
[<0>] do_syscall_64+0x4e/0x100
[<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[<0>] 0xffffffffffffffff
To reproduce, first, we need a NixOS ISO with bcachefs support, which can be created by installing nix, cloning https://github.com/hyperfekt/nix-exp, doing nix-channel --add http://nixos.org/channels/nixos-unstable nixos-unstable
and nix-channel --add http://nixos.org/channels/nixos-18.09 nixos
, and then doing nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=nix-exp/installation-cd-bcachefs-graphical-kde-new-kernel-git.nix
. The ISO will be located in a directory named result/iso
.
After starting from the NixOS ISO, creating the filesystem, mounting it under /mnt
, doing nixos-generate-config --root /mnt
, copying this file to /mnt/etc/nixos
, add it to the imports list of the /mnt/etc/nixos/configuration.nix
file. Then do nix-channel --add http://nixos.org/channels/nixos-unstable nixos-unstable
and run nixos-install --root /mnt
. The installation should hang with the output of querying info about missing paths
. Make sure you've provided networking.
It might be possible to get the nixos-install
tool without the ISO and test the whole thing without NixOS, but I'm not able to figure out on the quick how.
from bcachefs.
from bcachefs.
The install works fine now, thanks for the quick fix!
from bcachefs.
Related Issues (20)
- Deadlock (in bch2_check_for_deadlock?) [3fdcc884]
- BUG: KASAN: slab-out-of-bounds in bch2_fs_usage_read [3fdcc884] HOT 2
- kernel BUG at fs/bcachefs/btree_iter.c:1630! [3fdcc884]
- Suggestion to avoid lost notifties
- Kernel panic - trans path oveflow [adc22c951] HOT 2
- Bcachefs(system) hang after making 100+ snapshots HOT 2
- On mount, kernel BUG at arch/x86/kernel/traps.c:255 [35ca9e6cbe88] HOT 1
- alibaba cloud VM and real server boot failed in kernel 6.2.0 HOT 2
- Time namespace build failure with gcc-12.2.0 [ed5253cab818] HOT 2
- bch-copygc keep running 100%CPU in the latest version HOT 7
- Fails boot NULL dereference [0342eebf85b7] HOT 1
- modpost: "bio_add_folio" [fs/bcachefs/bcachefs.ko] undefined HOT 2
- BUG: unable to handle page fault, on file access [ea34e36b5f0a] HOT 7
- bcachefs remove offlined/evacuated device keeps leftover buckets in fsck [169b584] HOT 1
- WARNING: CPU: 1 PID: 75398 at mm/page_alloc.c:3843 [dc966251]
- Invalid wait context during mount [dc966251] HOT 1
- BUG: KASAN: vmalloc-out-of-bounds in __bch2_trans_init+0x447/0x5f0 [dc966251] HOT 1
- kernel BUG at fs/bcachefs/bkey.h:320 [dc966251] HOT 1
- out of bounds write in __bch2_alloc_to_v4_mut via bkey_reassemble [7889026bc459] HOT 1
- bcachefs-tools Segmentation fault (FS contains snapshots ,snapshots deletion and unclean shutdown) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcachefs.