为什么我的系统会冻结,从而强制硬重启?

为什么我的系统会冻结,从而强制硬重启?

我用作娱乐电脑的系统有时会意外冻结,我需要重新启动它。它正在运行 MythTV,因此全天候运行。

我目前正在使用一个 cron 作业来解决这个问题,该作业每天重新启动一次机器。即使有了这个解决方法,它有时仍然会冻结。我意识到这是一个不完美的解决方案,我想解决潜在的问题。

如果发生这种情况时我正在使用系统,屏幕将冻结,然后任何音频播放都将停止。鼠标光标将继续移动,但没有任何响应点击。如果我行动得足够快,Alt+PrtSc REISUB 将重新启动,但如果这种冻结发生在我不使用机器时,我必须通过按下电源按钮重新启动它。

我正在运行 Xubuntu 18.04.1 LTS,在运行 16.04 时也遇到了同样的问题

眼镜:

RAM:CORSAIR Vengeance LPX 16GB (2 x 8GB) 288 针 DDR4 SDRAM DDR4 2133 (PC4 17000) 台式机内存型号 CMK16GX4M2A2133C13R

CPU:AMD RYZEN 5 1500X 4 核 3.5 GHz(3.7 GHz Turbo)插槽 AM4 65W YD150XBBAEBOX 台式机处理器

主板:ASRock X470 Master SLI/AC AM4 AMD Promontory X470 SATA 6Gb/s USB 3.1 HDMI ATX AMD 主板显卡:MSI GeForce GT 730 DirectX 12 N730K-1GD5LP/OC 3 个硬盘,全部为 HDD:一个 160 GB 启动驱动器和两个 4 TB 存储驱动器

我在 Google 和类似网站上搜索过,但没有发现类似的问题。如能得到任何帮助,我将不胜感激。

以下是系统死机前系统日志的最后几行:

Sep  3 18:26:22 Dipper avahi-daemon[784]: Registering new address record for fe8
0::d5bd:8e29:4d2b:bb01 on wlp30s0.*.
Sep  3 18:26:29 Dipper avahi-daemon[784]: Withdrawing address record for 2002:d1
9f:d1d8:0:5156:aa72:e3f4:352a on wlp30s0.
Sep  3 18:26:29 Dipper avahi-daemon[784]: Withdrawing address record for fe80::d
5bd:8e29:4d2b:bb01 on wlp30s0.
Sep  3 18:26:29 Dipper avahi-daemon[784]: Registering new address record for 200
2:d19f:d1d8:0:5156:aa72:e3f4:352a on wlp30s0.*.
Sep  3 18:35:24 Dipper wpa_supplicant[766]: wlp30s0: WPA: Group rekeying complet
ed with c0:c1:c0:a9:ff:ad [GTK=CCMP]
Sep  3 18:35:24 Dipper wpa_supplicant[766]: wlp30s0: WPA: Group rekeying complet
ed with c0:c1:c0:a9:ff:ad [GTK=CCMP]
Sep  3 18:39:01 Dipper CRON[7432]: (root) CMD (  [ -x /usr/lib/php/sessionclean 
] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Sep  3 18:39:03 Dipper systemd[1]: Starting Clean php session files...
Sep  3 18:39:03 Dipper systemd[1]: Started Clean php session files.
Sep  3 18:39:40 Dipper avahi-daemon[784]: Withdrawing address record for 2002:d1
9f:d1d8:0:1f7e:82bf:256:69bb on wlp30s0.
Sep  3 18:39:40 Dipper avahi-daemon[784]: Registering new address record for 200
2:d19f:d1d8:0:1f7e:82bf:256:69bb on wlp30s0.*.
Sep  3 18:39:40 Dipper avahi-daemon[784]: Registering new address record for fe8
0::d5bd:8e29:4d2b:bb01 on wlp30s0.*.
Sep  3 18:39:41 Dipper avahi-daemon[784]: Withdrawing address record for 2002:d1
9f:d1d8:0:5156:aa72:e3f4:352a on wlp30s0.
Sep  3 18:39:41 Dipper avahi-daemon[784]: Withdrawing address record for fe80::d
5bd:8e29:4d2b:bb01 on wlp30s0.
Sep  3 18:39:41 Dipper avahi-daemon[784]: Registering new address record for 200
2:d19f:d1d8:0:5156:aa72:e3f4:352a on wlp30s0.*.
Sep  3 19:04:53 Dipper systemd[1]: Started Run anacron jobs.
Sep  3 19:04:53 Dipper anacron[9110]: Anacron 2.3 started on 2018-09-03
Sep  3 19:04:53 Dipper anacron[9110]: Normal exit (0 jobs run)
Sep  3 19:09:01 Dipper CRON[9468]: (root) CMD (  [ -x /usr/lib/php/sessionclean 
] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Sep  3 19:09:03 Dipper systemd[1]: Starting Clean php session files...
Sep  3 19:09:03 Dipper systemd[1]: Started Clean php session files.
Sep  3 19:17:01 Dipper CRON[9914]: (root) CMD (   cd / && run-parts --report /et
c/cron.hourly)
Sep  3 19:18:28 Dipper avahi-daemon[784]: Withdrawing address record for 2002:d19f:d1d8:0:1f7e:82bf:256:69bb on wlp30s0.
Sep  3 19:18:28 Dipper avahi-daemon[784]: Registering new address record for 2002:d19f:d1d8:0:1f7e:82bf:256:69bb on wlp30s0.*.
Sep  3 19:18:28 Dipper avahi-daemon[784]: Registering new address record for fe80::d5bd:8e29:4d2b:bb01 on wlp30s0.*.
Sep  3 19:18:28 Dipper avahi-daemon[784]: Withdrawing address record for 2002:d19f:d1d8:0:5156:aa72:e3f4:352a on wlp30s0.
Sep  3 19:18:28 Dipper avahi-daemon[784]: Withdrawing address record for fe80::d5bd:8e29:4d2b:bb01 on wlp30s0.
Sep  3 19:18:28 Dipper avahi-daemon[784]: Registering new address record for 2002:d19f:d1d8:0:5156:aa72:e3f4:352a on wlp30s0.*.

最近,它似乎在一次 cron 作业重启期间冻结了:

Jul 18 09:08:59 Dipper lircd-0.10.0[936]: Error: Cannot glob /sys/class/rc/rc0/i
nput[0-9]*/event[0-9]*
Jul 18 09:09:00 Dipper systemd[1]: Starting Clean php session files...
Jul 18 09:09:00 Dipper systemd[1]: Started Clean php session files.
Jul 18 09:09:00 Dipper lircd[936]: lircd-0.10.0[936]: Error: Cannot glob /sys/cl
ass/rc/rc0/input[0-9]*/event[0-9]*
Jul 18 09:09:00 Dipper lircd-0.10.0[936]: Error: Cannot glob /sys/class/rc/rc0/i
nput[0-9]*/event[0-9]*
Jul 18 09:09:00 Dipper avahi-daemon[810]: Withdrawing address record for 2002:d1
9f:d1d8:0:c147:877e:e046:faf on wlp30s0.
Jul 18 09:09:00 Dipper avahi-daemon[810]: Registering new address record for 200
2:d19f:d1d8:0:c147:877e:e046:faf on wlp30s0.*.
Jul 18 09:09:00 Dipper avahi-daemon[810]: Registering new address record for fe8
0::d5bd:8e29:4d2b:bb01 on wlp30s0.*.
Jul 18 09:09:01 Dipper CRON[11399]: (root) CMD (  [ -x /usr/lib/php/sessionclean
 ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jul 18 09:09:01 Dipper CRON[11400]: (root) CMD (/sbin/reboot)
Jul 18 09:09:01 Dipper systemd[1]: Stopping LVM2 PV scan on device 8:1...
Jul 18 09:09:01 Dipper systemd[1]: Stopped target Timers.
Jul 18 09:09:01 Dipper systemd[1]: Stopped Discard unused blocks once a week.
Jul 18 09:09:01 Dipper systemd[1]: Stopping ACPI event daemon...
Jul 18 09:09:01 Dipper systemd[1]: Stopping Availability of block devices...
Jul 18 09:09:01 Dipper systemd[1]: Stopped Clean PHP session files every 30 mins
.
Jul 18 09:09:01 Dipper systemd[1]: Stopped Message of the Day.
Jul 18 09:09:01 Dipper systemd[1]: Stopping Authorization Manager...
Jul 18 09:09:01 Dipper systemd[1]: Stopping Location Lookup Service...
Jul 18 09:09:01 Dipper systemd[1]: Stopped Trigger anacron every hour.
Jul 18 09:09:01 Dipper systemd[1]: Stopping Save/Restore Sound Card State...
Jul 18 09:09:01 Dipper systemd[1]: Stopping Daemon for power management...
Jul 18 09:09:01 Dipper systemd[1]: Stopped Daily apt upgrade and clean activities.
Jul 18 09:09:01 Dipper systemd[1]: Stopped Daily apt download activities.
Jul 18 09:09:01 Dipper systemd[1]: Stopping User Manager for UID 1000...
Jul 18 09:09:01 Dipper systemd[1]: Stopping Daemon for generating UUIDs...
Jul 18 09:09:01 Dipper systemd[1]: Stopping RealtimeKit Scheduling Policy Service...
Jul 18 09:09:01 Dipper systemd[1310]: Stopping Virtual filesystem service - GNOME Online Accounts monitor..


free -h按要求添加输出

kittens@Dipper:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        905M        8.6G         19M        6.2G         14G
Swap:          979M          0B        979M

相关内容