如何查找当前正在写入磁盘的进程?

sor*_*h-r 3 monitoring disk-usage audit

由于某种未知原因,我的/.上没有剩余空间,即使在删除 300 MB 垃圾包后 5 分钟,也没有剩余空间。所以我得出的结论是,有一些进程占用了我的磁盘空间。(--> 最近我安装了 docker)。

我怎样才能找到哪个进程产生最多的数据/

ter*_*don 5

你最好的选择可能是iotop

   iotop  watches  I/O  usage  information  output  by  the  Linux  kernel
   (requires 2.6.20 or later) and displays a table of current I/O usage by
   processes   or   threads   on   the   system.   At   least   the   CON?
   FIG_TASK_DELAY_ACCT,  CONFIG_TASK_IO_ACCOUNTING,  CONFIG_TASKSTATS  and
   CONFIG_VM_EVENT_COUNTERS  options need to be enabled in your Linux ker?
   nel build configuration.
Run Code Online (Sandbox Code Playgroud)

假设您的进程正在执行大量 I/O 操作,它应该在该列表中显示得相当高。