Why does linux du command print no result and occupy one 100 CPU usage
The Problem
Today, My colleague found an abnormal problem and asked me the reason. I recorded the following analysis steps.
This problem is that linux du command does not print the results, and at the same time, the process of du command occupies 100% CPU usage. Result of top command is the following:
# top
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
36343 root 20 0 110m 13m 1780 R 99.8 0.0 1:37.66 du
36370 root 20 0 110m 13m 1780 R 94.2 0.0 1:20.98 du
86 root ...