![Kworker Linux 进程:它正在将什么写入磁盘?](https://linux22.com/image/1468243/Kworker%20Linux%20%E8%BF%9B%E7%A8%8B%EF%BC%9A%E5%AE%83%E6%AD%A3%E5%9C%A8%E5%B0%86%E4%BB%80%E4%B9%88%E5%86%99%E5%85%A5%E7%A3%81%E7%9B%98%EF%BC%9F.png)
我上线了Debian Jessie 8.2有没有办法弄清楚到底写了什么工人或者是什么触发了这些写入?我正在使用闪存驱动器来运行我的操作系统。
deathstar> dmesg|grep sdc|grep WRITE
[ 335.765626] hwclock(991): WRITE block 8900608 on sdc1 (8 sectors)
[ 361.020065] kworker/u4:3(95): WRITE block 21037080 on sdc1 (8 sectors)
[ 361.020094] kworker/u4:3(95): WRITE block 8 on sdc1 (8 sectors)
[ 361.020099] kworker/u4:3(95): WRITE block 4194576 on sdc1 (8 sectors)
[ 361.020103] kworker/u4:3(95): WRITE block 4194672 on sdc1 (8 sectors)
[ 361.020107] kworker/u4:3(95): WRITE block 8388616 on sdc1 (8 sectors)
[ 361.020112] kworker/u4:3(95): WRITE block 8389088 on sdc1 (8 sectors)
[ 361.020116] kworker/u4:3(95): WRITE block 20971520 on sdc1 (8 sectors)
[ 361.020121] kworker/u4:3(95): WRITE block 20971648 on sdc1 (8 sectors)
[ 361.020125] kworker/u4:3(95): WRITE block 20971832 on sdc1 (8 sectors)
[ 361.020129] kworker/u4:3(95): WRITE block 20971848 on sdc1 (8 sectors)
[ 361.020133] kworker/u4:3(95): WRITE block 20972000 on sdc1 (8 sectors)
[ 366.028174] kworker/u4:3(95): WRITE block 4581024 on sdc1 (8 sectors)
[ 386.060077] kworker/u4:3(95): WRITE block 4644368 on sdc1 (8 sectors)
[编辑]
The disk isn't full
/dev/sdc1 15G 5.5G 8.1G 41% /
cat write|grep WRITE|wc
69 lines but accumulates over 1hr
我尝试过性能记录-g-a建议如下:我看到类似这样的情况:
- 0.02% 0.02% kworker/u4:4 [kernel.kallsyms] [k] i915_gem_object_move_to_inactive
- 0.02% 0.02% kworker/u4:4 [kernel.kallsyms] [k] cpuacct_charge
+ 0.03% 0.03% kworker/u4:4 [kernel.kallsyms] [k] radix_tree_next_chunk
+ 0.03% 0.03% kworker/u4:4 [kernel.kallsyms] [k] strlen
+ 0.03% 0.03% kworker/u4:4 [kernel.kallsyms] [k] radix_tree_lookup_slot
+ 0.03% 0.03% kworker/u4:4 [kernel.kallsyms] [k] find_get_pages
+ 0.03% 0.03% kworker/u4:4 [kernel.kallsyms] [k] inc_zone_page_state
+ 0.04% 0.04% kworker/u4:4 [kernel.kallsyms] [k] check_addr
我认为也许是 i915 驱动程序,但是现在怎么办?