我注意到Raspbian上的LXDE面板每60秒就会将一些内容写入磁盘:
$ pidstat -dl 600
Linux 4.14.79-v7+ (localhost) 01/15/2019 _armv7l_ (4 CPU)
03:11:53 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command
03:21:53 PM 1000 2195 0.00 0.13 0.00 0 lxpanel --profile LXDE-pi
03:21:53 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command
03:31:53 PM 1000 2195 0.00 0.13 0.00 0 lxpanel --profile LXDE-pi
03:31:53 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command
03:41:53 PM 1000 2195 0.00 0.13 0.00 0 lxpanel --profile LXDE-pi
03:41:53 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command
03:51:53 PM 1000 2195 0.00 0.13 0.00 0 lxpanel --profile LXDE-pi
03:51:53 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command
04:01:53 PM 1000 2195 0.00 0.13 0.00 0 lxpanel --profile LXDE-pi
04:01:53 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command
04:11:53 PM 1000 2195 0.00 0.13 0.00 0 lxpanel --profile LXDE-pi
有没有办法阻止这些著作?
UPDATE: as per Fox's advice I tried to start lxpanel with --log 0
, but unfortunately it changed nothing. Some research has shown that writings are done to /home/al/.cache/lxsession/LXDE-pi/run.log file. And the origin of those those writes is "Wireless and wired networks" applet, which appends the line
** Message: wlan0: Received scan results
每60秒更新一次该文件,显然不尊重面板的开始参数。暂时,除了从面板上删除该小程序外,我没有找到其他解决方案(尽管它非常有用)。