我用 Ryzen 3700x、MSI b450 主板和全新的 20.04 LTS 组装了我的新电脑。
我遇到了一些麻烦:有时恢复后 10 或 20 秒系统会冻结,硬盘指示灯亮起,网络指示灯亮起,但没有任何响应。没有 ping,没有 ctrl alt f。
有时内核崩溃,导致我的 btrfs / opt / vault 分区处于只读状态。我附上了 dmesg 内容
[mar giu 30 22:36:21 2020] ------------[ cut here ]------------
[mar giu 30 22:36:21 2020] BTRFS: Transaction aborted (error -17)
[mar giu 30 22:36:21 2020] WARNING: CPU: 9 PID: 1396 at fs/btrfs/extent-tree.c:2188 btrfs_run_delayed_refs+0x13c/0x190 [btrfs]
[mar giu 30 22:36:21 2020] Modules linked in: uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev nls_utf8 isofs snd_seq_dummy snd_hrtimer vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink ip6table_filter ip6_tables iptable_filter bpfilter bridge stp llc nls_iso8859_1 snd_hda_codec_hdmi nvidia_uvm(O) nvidia_drm(PO) nvidia_modeset(PO) edac_mce_amd snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg kvm_amd snd_hda_codec snd_usb_audio kvm snd_hda_core snd_usbmidi_lib nvidia(PO) snd_hwdep snd_seq_midi mc joydev crct10dif_pclmul snd_seq_midi_event snd_rawmidi snd_pcm input_leds ghash_clmulni_intel snd_seq drm_kms_helper aesni_intel ipmi_devintf snd_seq_device snd_timer crypto_simd ipmi_msghandler cryptd ucsi_ccg fb_sys_fops glue_helper snd
[mar giu 30 22:36:21 2020] syscopyarea typec_ucsi sysfillrect wmi_bmof k10temp typec sysimgblt soundcore ccp mac_hid sch_fq_codel parport_pc ppdev drm lp parport ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid0 multipath linear hid_logitech_hidpp raid1 wacom hid_logitech_dj hid_generic uas usbhid usb_storage hid crc32_pclmul i2c_piix4 r8169 i2c_nvidia_gpu ahci realtek libahci wmi gpio_amdpt gpio_generic
[mar giu 30 22:36:21 2020] CPU: 9 PID: 1396 Comm: btrfs-transacti Tainted: P OE 5.4.0-39-generic #43-Ubuntu
[mar giu 30 22:36:21 2020] Hardware name: Micro-Star International Co., Ltd MS-7B86/B450-A PRO MAX (MS-7B86), BIOS M.73 06/10/2020
[mar giu 30 22:36:21 2020] RIP: 0010:btrfs_run_delayed_refs+0x13c/0x190 [btrfs]
[mar giu 30 22:36:21 2020] Code: 41 5f 5d c3 49 8b 55 50 f0 48 0f ba aa 38 ce 00 00 02 72 1b 83 f8 fb 74 34 89 c6 48 c7 c7 b8 51 3f c0 89 45 d0 e8 6f bf b6 f9 <0f> 0b 8b 45 d0 89 c1 ba 8c 08 00 00 4c 89 ef 89 45 d0 48 c7 c6 60
[mar giu 30 22:36:21 2020] RSP: 0018:ffff9be900cf7d70 EFLAGS: 00010282
[mar giu 30 22:36:21 2020] RAX: 0000000000000000 RBX: 0000000000000068 RCX: 0000000000000006
[mar giu 30 22:36:21 2020] RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff89f7cea578c0
[mar giu 30 22:36:21 2020] RBP: ffff9be900cf7db0 R08: 000000000000064c R09: 0000000000000004
[mar giu 30 22:36:21 2020] R10: 0000000000000000 R11: 0000000000000001 R12: ffff89f7109df358
[mar giu 30 22:36:21 2020] R13: ffff89f7bd1e39c0 R14: ffff89f65436a540 R15: ffff89f7c97a2d48
[mar giu 30 22:36:21 2020] FS: 0000000000000000(0000) GS:ffff89f7cea40000(0000) knlGS:0000000000000000
[mar giu 30 22:36:21 2020] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[mar giu 30 22:36:21 2020] CR2: 00007f1ce529d000 CR3: 0000000379abc000 CR4: 0000000000340ee0
[mar giu 30 22:36:21 2020] Call Trace:
[mar giu 30 22:36:21 2020] btrfs_start_dirty_block_groups+0x294/0x460 [btrfs]
[mar giu 30 22:36:21 2020] btrfs_commit_transaction+0xc3/0x960 [btrfs]
[mar giu 30 22:36:21 2020] ? start_transaction+0xb5/0x4a0 [btrfs]
[mar giu 30 22:36:21 2020] transaction_kthread+0x146/0x190 [btrfs]
[mar giu 30 22:36:21 2020] kthread+0x104/0x140
[mar giu 30 22:36:21 2020] ? btrfs_cleanup_transaction+0x530/0x530 [btrfs]
[mar giu 30 22:36:21 2020] ? kthread_park+0x90/0x90
[mar giu 30 22:36:21 2020] ret_from_fork+0x22/0x40
[mar giu 30 22:36:21 2020] ---[ end trace cb44f0a1d84b02f3 ]---
[mar giu 30 22:36:21 2020] BTRFS: error (device sdc3) in btrfs_run_delayed_refs:2188: errno=-17 Object already exists
[mar giu 30 22:36:21 2020] BTRFS info (device sdc3): forced readonly
感谢你的帮助
我仍然遇到这个问题。当我大量使用文件系统时,问题就会立即出现。例如,当我在文件系统上运行 rsync 时
答案1
只需将其添加到您的启动参数中:
pci=assign-busses apicmaintimer idle=poll reboot=cold,hard
1. 如果使用 grub,请打开终端:
sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=assign-busses apicmaintimer idle=poll reboot=cold,hard"
sudo update-grub
2. 如果使用 kernelstub(在 POP!OS 上),打开终端:
sudo kernelstub -a "pci=assign-busses apicmaintimer idle=poll reboot=cold,hard"
重启后,就不会再崩溃了!这个解决方案我复制自这里致谢归于该解决方案的原始发布者