AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1264092
Accepted
Nicolas Cordova
Nicolas Cordova
Asked: 2020-08-03 11:45:36 +0800 CST2020-08-03 11:45:36 +0800 CST 2020-08-03 11:45:36 +0800 CST

如何找出 Ubuntu 20.04 冻结的原因?

  • 772

两周前,我在我的 Amd Ryzen 5 1600 / Nvidia Gtx 1070 上安装了 Ubuntu 20.04,但 Ubuntu 不时完全冻结。

键盘和屏幕完全停止工作,鼠标有时能够继续移动。我试过使用神奇的 SysRq 键,但没有用。也尝试过alt+F1但也没有得到系统的任何响应。基本上我只需要按下电源按钮即可重新启动。

我怀疑Nvidia,但我不知道如何验证。

nvidia-smi显示驱动程序版本 440.100。

发现这些日志/var/log/Xorg.1.log.old显示我的计算机崩溃的时间。

[  1223.234] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-22ms), your system is too slow  
[  1223.234] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-35ms), your system is too slow  
[  1488.529] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-0ms), your system is too slow  
[  1488.529] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-13ms), your system is too slow  
[  5125.223] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-14ms), your system is too slow  
[  5125.223] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-27ms), your system is too slow  
[  6038.321] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-9ms), your system is too slow  
[  6206.894] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-3ms), your system is too slow  
[  6206.894] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-16ms), your system is too slow  
[  6409.650] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-9ms), your system is too slow  
[  6409.650] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-22ms), your system is too slow  
[ 10930.426] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-7ms), your system is too slow  
[ 10930.426] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-20ms), your system is too slow  

free -h结果:

              total        used        free      shared  buff/cache   available
Mem:           15Gi       2.5Gi        11Gi       393Mi       1.9Gi        12Gi
Swap:         2.0Gi          0B       2.0Gi

sysctl vm.swappiness结果:

vm.swappiness = 60

sudo lshw -C memory结果:

  *-firmware                
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: 1.L0
       date: 12/28/2018
       size: 64KiB
       capacity: 16MiB
       capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
  *-memory
       description: System Memory
       physical id: f
       slot: System board or motherboard
       size: 16GiB
     *-bank:0
          description: 2933 MHz (0.3 ns) [empty]
          product: Unknown
          vendor: Unknown
          physical id: 0
          serial: Unknown
          slot: DIMM 0
          clock: 2933MHz (0.3ns)
     *-bank:1
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2933 MHz (0.3 ns)
          product: CMK16GX4M2B3200C16
          vendor: Unknown
          physical id: 1
          serial: 00000000
          slot: DIMM 1
          size: 8GiB
          width: 64 bits
          clock: 2933MHz (0.3ns)
     *-bank:2
          description: 2933 MHz (0.3 ns) [empty]
          product: Unknown
          vendor: Unknown
          physical id: 2
          serial: Unknown
          slot: DIMM 0
          clock: 2933MHz (0.3ns)
     *-bank:3
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2933 MHz (0.3 ns)
          product: CMK16GX4M2B3200C16
          vendor: Unknown
          physical id: 3
          serial: 00000000
          slot: DIMM 1
          size: 8GiB
          width: 64 bits
          clock: 2933MHz (0.3ns)
  *-cache:0
       description: L1 cache
       physical id: 11
       slot: L1 - Cache
       size: 576KiB
       capacity: 576KiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: 12
       slot: L2 - Cache
       size: 3MiB
       capacity: 3MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: 13
       slot: L3 - Cache
       size: 16MiB
       capacity: 16MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3

grep -i swap /etc/fstab结果:

/swapfile                                 none            swap    sw              0       0

sudo dmidecode -s bios-version结果:

1.L0

添加软件和更新屏幕截图

软件和更新

8月6日更新:

崩溃文件,终端中列出的 gnome shell 扩展

nvidia 20.04 amd-ryzen
  • 2 2 个回答
  • 5847 Views

2 个回答

  • Voted
  1. Best Answer
    heynnema
    2020-08-03T13:01:26+08:002020-08-03T13:01:26+08:00

    BIOS

    微星 B350 战斧

    您的 BIOS 版本 1.L0,日期为 2018 年 12 月 28 日。

    这里有更新的 BIOS 。编号/命名约定与您现在的不同,这很不寻常。联系 MSI 支持并询问相关问题。

    在此处输入图像描述

    注意:请确认我拥有适合您的主板型号的正确网页。

    注意:不要下载/使用/安装最新的 BETA 版本。

    注意:在更新 BIOS 之前做好备份。


    交换

    让我们将您的 /swapfile 从 2G 增加到 4G。

    注意:命令使用不当dd会导致数据丢失。建议复制/粘贴。

    sudo swapoff -a           # turn off swap
    sudo rm -i /swapfile      # remove old /swapfile
    
    sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
    
    sudo chmod 600 /swapfile  # set proper file protections
    sudo mkswap /swapfile     # init /swapfile
    sudo swapon /swapfile     # turn on swap
    free -h                   # confirm 16G RAM and 4G swap
    reboot                    # reboot and verify operation
    

    将此行添加到 /etc/fstab...

    /swapfile    none    swap    sw      0   0
    

    英伟达

    您拥有 Nvidia 版本 440.100。

    Software & Updates表明这是当前版本。但是,有一个更新的版本 450.57 可以在这里下载。

    在此处输入图像描述 在此处输入图像描述

    注意:在更新 Nvidia 驱动程序之前做好备份。

    更新#1:

    由于您不得不强行关闭计算机,让我们检查一下您的文件系统...

    • 以“试用 Ubuntu”模式启动到 Ubuntu Live DVD/USB
    • terminal按Ctrl+ Alt+打开一个窗口T
    • 类型sudo fdisk -l
    • 识别“Linux 文件系统”的 /dev/sdXX 设备名称
    • 键入sudo fsck -f /dev/sdXX,替换sdXX为您之前找到的数字
    • fsck如果有错误,请重复该命令
    • 类型reboot

    更新#2:

    安装 BIOS 更新...但请先联系 MSI 支持,以确认您需要哪个 BIOS 更新文件版本...因为它们的命名约定似乎已更改。

    您已经安装了许多 GNOME Shell 扩展,其中任何一个都可能导致冻结,并且它们安装在“错误”的位置,因为它们是在系统范围内安装的,与用户特定的相对应。您可以在 /usr/share/gnome-shell/extensions 目录列表中看到它们,它们都以 gcampax.github.com 结尾。

    删除它们的最安全方法是转到https://extensions.gnome.org/local/并删除除这三个扩展之外的所有扩展...

    drwxr-xr-x 2 root root 4.0K Jun 11 08:20 'desktop-icons@csoriano'/
    drwxr-xr-x 3 root root 4.0K May 12 15:17 '[email protected]'/
    drwxr-xr-x 3 root root 4.0K Jun 18 09:12 '[email protected]'/
    

    如果系统在一段时间内运行正常而没有冻结,则手动重新安装任何单个收藏夹,一次一个扩展,而不是安装扩展包/zip 文件。

    • 1
  2. Sebastian
    2020-08-03T23:38:22+08:002020-08-03T23:38:22+08:00

    在类似系统(Ryzen 5 1600X,Asus B350 Plus)上为我解决此问题的方法是在 BIOS 中禁用“自动 C 状态管理”。它在您的 BIOS 中的命名可能略有不同。

    • 1

相关问题

  • 普利茅斯将来会允许使用专有图形驱动程序获得良好的启动体验吗?

  • 未连接到任何可见进程的令人讨厌的 CPU 峰值

  • 10.04 Lucid 中的多席位状态如何?[关闭]

  • 升级到 10.04 后字体模糊,Nvidia 问题?

  • 帮助让 Flash 播放器在第二个屏幕上工作?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve