Open colttt opened 2 years ago
still happens with
Linux bcachefs 5.19.0-5498a3d87b2a
Damn, I thought I'd finally fixed all the livelocks.
Can you re-gather the tracepoint information?
I have same issue: kernel version: 6.10.13
# perf trace -e 'bcachefs:*'
...
212157.378 kworker/1:3-ev/319 bcachefs:btree_path_upgrade_fail(trans_fn: "bch2_do_discards_work", caller_ip: -1067175661, btree_id: 12, pos_inode: 3, pos_offset: 31016, locked: 1, self_read_count: 1, read_count: 1, intent_count: 1, iter_lock_seq: 123909, node_lock_seq: 123909)
212157.469 kthreadd/3558 bcachefs:btree_path_relock_fail(trans_fn: "bch2_do_discards_work", caller_ip: -1067175446, btree_id: 12, pos_inode: 1, pos_offset: 990608, node: "ffff992057450400", intent_count: 1, iter_lock_seq: 123909, node_lock_seq: 123909)
...
PerfTop: 5026 irqs/sec kernel:93.0% exact: 95.2% lost: 0/0 drop: 0/0 [4000Hz cycles:P], (all, 4 CPUs)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6.53% [kernel] [k] memchr_inv
4.30% [kernel] [k] ZSTD_decompressSequences_default.constprop.0
2.82% [kernel] [k] __kernel_poison_pages
2.34% [kernel] [k] xhci_irq
2.34% [kernel] [k] io_idle
1.86% [kernel] [k] retbleed_return_thunk
1.67% [kernel] [k] queued_spin_lock_slowpath
1.49% [kernel] [k] acpi_safe_halt
1.44% [kernel] [k] preempt_count_sub
1.24% [kernel] [k] crc_pcl
1.02% [kernel] [k] check_preemption_disabled
0.88% [kernel] [k] xhci_queue_bulk_tx
0.87% [bcachefs] [k] bch2_btree_node_iter_init
0.83% [kernel] [k] sched_clock_noinstr
0.82% [bcachefs] [k] __bch2_trans_commit
0.80% [kernel] [k] preempt_count_add
0.72% [bcachefs] [k] __bch2_bkey_cmp_packed_format_checked
0.69% [lz4_decompress] [k] LZ4_decompress_safe_partial
0.68% [bcachefs] [k] bch2_fs_btree_interior_update_init
0.61% [kernel] [k] kfree
0.59% [bcachefs] [k] __bch2_btree_path_set_pos
0.58% [kernel] [k] __kmalloc_noprof
0.56% [kernel] [k] stackleak_track_stack
0.53% [kernel] [k] __irqentry_text_start
0.53% [kernel] [k] HUF_decompress4X1_usingDTable_internal_default
0.51% perf [.] hist_entry__sort
0.51% perf [.] hists__findnew_entry
0.51% [bcachefs] [k] bch2_btree_node_flush1
0.50% [bcachefs] [k] bch2_bucket_ref_update
0.50% [bcachefs] [k] bch2_bkey_ptrs_invalid
0.49% [bcachefs] [k] bch2_opt_target_to_text
0.49% [bcachefs] [k] __bch2_bkey_cmp_left_packed
0.47% [kernel] [k] _raw_spin_lock_irqsave
0.47% [bcachefs] [k] __bch2_bkey_unpack_key
0.46% perf [.] rb_next
0.45% [bcachefs] [k] bch2_sort_keys
0.43% [bcachefs] [k] __bch2_time_stats_update
0.43% [kernel] [k] iommu_v1_map_pages
0.43% [bcachefs] [k] bch2_btree_iter_peek_upto
0.42% [kernel] [k] menu_select
0.40% [bcachefs] [k] bch2_journal_pins_to_text
0.39% perf [.] hpp__sort_overhead
0.38% [bcachefs] [k] bch2_btree_path_traverse_one
0.37% [kernel] [k] get_page_from_freelist
Please search for duplicates
Version
Linux bcachefs 5.19.0-cd72194e001b-bcachefs #1 SMP PREEMPT_DYNAMIC Sat Aug 27 22:34:31 CEST 2022 x86_64 GNU/Linux
Generic info Provide the output of:
Kernel bugs Compile the kernel with these flags:
Provide the output of
dmesg
either in a paste-bin or as attachment, if less than 30~ lines just provide inline here.Optional Advanced
and perf top shows:
How does it happen:
side note: it doesn't ends after 86400seconds, fio said it need more than 5days