当没有交换时,kswapd正在做什么


2

顶部看起来像这样:

KiB Mem :  3989652 total,    30976 free,  1480440 used,  2478236 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  2276236 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND      
 3989 root      20   0   51680   3160   1288 D  19.8  0.1  13:13.86 mc           
 5949 root      20   0       0      0      0 D   3.6  0.0  41:33.92 [usb-storage]
  667 root      20   0       0      0      0 S   1.0  0.0   8:37.38 [kswapd0]    

我故意关掉了交换。在“KiB Swap total”变为0后几分钟捕获了上面的输出。有一个正在运行的进程从NFS共享复制到USB硬盘(即mc)

kswapd继续使用大约1%的CPU时间。为什么?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.