![Ubuntu 18.04 为什么关闭系统?](https://linux22.com/image/1011055/Ubuntu%2018.04%20%E4%B8%BA%E4%BB%80%E4%B9%88%E5%85%B3%E9%97%AD%E7%B3%BB%E7%BB%9F%EF%BC%9F.png)
自从我将主系统从老旧的 open-SUSE 发行版升级到 Ubuntu 18.04 后,我就遇到了系统崩溃的问题。无论发生什么问题,都需要一段时间才能积累起来。当系统承受着巨大的 CPU 负载时,这种情况总是会发生。虽然通常它可以毫无困难地处理这种负载,但现在响应开始变得越来越慢,直到完全无法使用。如果我走开,希望它最终能解决问题,电脑会在几分钟后自动关机。
有可能,甚至很有可能,这是一个与硬件相关的问题,恰好在我升级到 Ubuntu 18.04 时出现。但除非我更好地了解发生了什么,否则我不敢升级我的任何其他系统。
我检查了上次崩溃后的所有/var/log/
日志以查找异常情况。发现 CPU 过热的迹象,但几乎立即恢复正常运行。我确实检查了所有 CPU 风扇是否正常运行。我安装了psensors
,但不知道我应该对什么温度水平感到警惕。对于可能的过热问题,我还能做些什么吗?
/var/log/syslog:
Dec 10 02:37:27 corbin-goul systemd[1]: Started Message of the Day.
Dec 10 03:02:21 corbin-goul systemd[1]: Started Run anacron jobs.
Dec 10 03:02:21 corbin-goul anacron[15057]: Anacron 2.3 started on 2018-12-10
Dec 10 03:02:21 corbin-goul anacron[15057]: Normal exit (0 jobs run)
Dec 10 03:17:01 corbin-goul CRON[19073]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Dec 10 03:53:49 corbin-goul gnome-software[3017]: no app for changed [email protected]
Dec 10 03:53:49 corbin-goul gnome-software[3017]: no app for changed [email protected]
Dec 10 03:53:49 corbin-goul gvfsd-metadata[2373]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
Dec 10 03:53:49 corbin-goul gvfsd-metadata[2373]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
Dec 10 03:53:49 corbin-goul gnome-shell[2195]: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.79/org/ayatana/NotificationItem/software_update_available
Dec 10 04:00:01 corbin-goul CRON[30688]: (root) CMD (/root/bin/sysBackup >/root/sysbackup.log 2>&1)
Dec 10 04:00:01 corbin-goul kernel: [51285.652208] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Dec 10 04:00:15 corbin-goul systemd[1]: Started Run anacron jobs.
Dec 10 04:00:15 corbin-goul anacron[30810]: Anacron 2.3 started on 2018-12-10
Dec 10 04:00:15 corbin-goul anacron[30810]: Normal exit (0 jobs run)
Dec 10 04:02:13 corbin-goul kernel: [51417.101352] CPU1: Core temperature above threshold, cpu clock throttled (total events = 37241)
Dec 10 04:02:13 corbin-goul kernel: [51417.101364] CPU0: Package temperature above threshold, cpu clock throttled (total events = 43282)
Dec 10 04:02:13 corbin-goul kernel: [51417.101367] CPU3: Package temperature above threshold, cpu clock throttled (total events = 42497)
Dec 10 04:02:13 corbin-goul kernel: [51417.101368] CPU2: Package temperature above threshold, cpu clock throttled (total events = 42919)
Dec 10 04:02:13 corbin-goul kernel: [51417.101371] CPU1: Package temperature above threshold, cpu clock throttled (total events = 43144)
Dec 10 04:02:13 corbin-goul kernel: [51417.102358] CPU1: Core temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102359] CPU0: Package temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102373] CPU1: Package temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102379] CPU3: Package temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102379] CPU2: Package temperature/speed normal
Dec 10 04:03:57 corbin-goul dbus-daemon[1319]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.784' (uid=1000 pid=12967 comm="/opt/google/chrome/chrome " label="unconfined")
Dec 10 04:03:58 corbin-goul org.gnome.Shell.desktop[2195]: Created new window in existing browser session.
Dec 10 04:04:03 corbin-goul org.gnome.Shell.desktop[2195]: [5590:5590:1210/040403.152180:ERROR:input_method_base.cc(146)] Not implemented reached in virtual ui::InputMethodKeyboardController *ui::InputMethodBase::GetInputMethodKeyboardController()Using InputMethodKeyboardControllerStub
Dec 10 04:07:13 corbin-goul kernel: [51717.104549] CPU1: Core temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104582] CPU3: Package temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104605] CPU2: Package temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104612] CPU0: Package temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104669] CPU1: Package temperature/speed normal
Dec 10 04:08:41 corbin-goul colord[1590]: failed to get session [pid 31199]: No data available
Dec 10 04:09:47 corbin-goul kernel: [51870.886383] perf: interrupt took too long (6307 > 6247), lowering kernel.perf_event_max_sample_rate to 31500
Dec 10 04:08:52 corbin-goul colord[1590]: message repeated 4 times: [ failed to get session [pid 31199]: No data available]
/var/log/kern
Dec 10 04:00:01 corbin-goul kernel: [51285.652208] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Dec 10 04:02:13 corbin-goul kernel: [51417.101352] CPU1: Core temperature above threshold, cpu clock throttled (total events = 37241)
Dec 10 04:02:13 corbin-goul kernel: [51417.101364] CPU0: Package temperature above threshold, cpu clock throttled (total events = 43282)
Dec 10 04:02:13 corbin-goul kernel: [51417.101367] CPU3: Package temperature above threshold, cpu clock throttled (total events = 42497)
Dec 10 04:02:13 corbin-goul kernel: [51417.101368] CPU2: Package temperature above threshold, cpu clock throttled (total events = 42919)
Dec 10 04:02:13 corbin-goul kernel: [51417.101371] CPU1: Package temperature above threshold, cpu clock throttled (total events = 43144)
Dec 10 04:02:13 corbin-goul kernel: [51417.102358] CPU1: Core temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102359] CPU0: Package temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102373] CPU1: Package temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102379] CPU3: Package temperature/speed normal
Dec 10 04:02:13 corbin-goul kernel: [51417.102379] CPU2: Package temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104549] CPU1: Core temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104582] CPU3: Package temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104605] CPU2: Package temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104612] CPU0: Package temperature/speed normal
Dec 10 04:07:13 corbin-goul kernel: [51717.104669] CPU1: Package temperature/speed normal
Dec 10 04:09:47 corbin-goul kernel: [51870.886383] perf: interrupt took too long (6307 > 6247), lowering kernel.perf_event_max_sample_rate to 31500
ken@corbin-goul:~$ 传感器
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +52.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +51.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +52.0°C (high = +80.0°C, crit = +100.0°C)
Core 2: +50.0°C (high = +80.0°C, crit = +100.0°C)
Core 3: +51.0°C (high = +80.0°C, crit = +100.0°C)