我刚刚购买了一个新的 SSD,我正试图弄清楚如何监控它的预期寿命。当我跑
sudo smartctl -a /dev/sda
Run Code Online (Sandbox Code Playgroud)
它报告
...
General SMART Values:
Offline data collection status: (0x80) **Offline data collection activity
was never started**.
...
Run Code Online (Sandbox Code Playgroud)
此外,我注意到一些统计数据显示为“始终”或“离线”更新:
$ sudo smartctl -data -A /dev/sda
...
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
...
198 Offline_Uncorrectable 0x0030 100 100 001 Old_age **Offline** - 0
199 UDMA_CRC_Error_Count 0x0032 100 100 001 Old_age **Always** - 0
202 **Perc_Rated_Life_Used** 0x0018 100 100 001 Old_age **Offline** - 0
206 Write_Error_Rate 0x000e 100 100 001 Old_age …Run Code Online (Sandbox Code Playgroud) System Monitor Indicator 带有显示 CPU 负载、内存使用情况和其他系统统计信息的选项,但目前不包括显示温度(CPU、HDD、SSD、GPU 等)的选项。

似乎内置了通过应用命令(通过单击“新建”)来添加其他传感器的功能。但是,我不知道怎么做,也找不到任何描述此功能的文档。
我的系统设置为报告温度,如下所示:
user@host:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +106.0°C)
temp2: +29.8°C (crit = +106.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +79.0°C (high = +87.0°C, crit = +105.0°C)
Core 0: +79.0°C (high = +87.0°C, crit = +105.0°C)
Core 1: +77.0°C (high = +87.0°C, crit = +105.0°C)
pkg-temp-0-virtual-0
Adapter: Virtual device
temp1: +79.0°C
Run Code Online (Sandbox Code Playgroud)
这个问题指的是 13.04 raring 中的包 indicator-sysmonitor 0.4.3 版,尽管目前我在 13.10 saucy 安装上运行它,因为它尚未在 ppa 中更新:
在 Ubuntu 15.04 (Vivid Vervet)/var/log/syslog上非常嘈杂。每隔几秒就会有一条消息,来自systemd、thermald、gnome-session。大多数消息似乎不是必需的,只是一遍遍重复的状态或调试消息。
我发现这使得使用 syslog 来解决问题、监控错误和故障变得非常困难,因为日志中充满了来自各种守护进程的重复的非必要状态消息块。有没有办法配置系统以禁用系统日志中的此类消息?谢谢。
例如,以下thermald消息块在系统日志中每 10-60 秒重复一次:
May 30 17:37:14 xxx thermald[960]: Dropped below poll threshold
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 0:Processor
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 4:intel_powerclamp
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 6:intel_pstate
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 5:rapl_controller
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset …Run Code Online (Sandbox Code Playgroud)