我的机器只用了大约10分钟。但是top命令显示以下不准确的TIME
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5721 root 20 0 15424 1588 840 R 1.9 0.0 0:00.02 top 1 root 20 0 19360 1532 1224 S 0.0 0.0 4727184h init 2 root 20 0 0 0 0 S 0.0 0.0 4723057h kthreadd 3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 6 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 7 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1 8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1 9 root 20 0 0 0 0 S 0.0 0.0 300194:20 ksoftirqd/1 10 root RT 0 0 0 0 S 0.0 0.0 300194:20 watchdog/1 11 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/2 12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/2 13 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/2 14 root RT 0 0 0 0 S 0.0 0.0 300194:20 watchdog/2 15 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/3 16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/3 17 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/3 18 root RT 0 0 0 0 S 0.0 0.0 300194:20 watchdog/3 19 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/4 20 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/4 21 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/4
# ps p 1 u USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 205788576 0.0 19360 1532 ? Ss 13:22 68882688:50 /sbin/init # uptime 13:35:17 up 8 min, 1 user, load average: 0.00, 0.00, 0.00 #
有人能说出导致这个巨大的TIME +号码的原因吗? 这是/ proc / 1 / stat
# cat /proc/1/stat 1 (init) S 0 1 1 0 -1 4202752 2693 1076732 9 366 35687438872 1666098882994 1074795224736 1071709728674 20 0 1 0 3 19824640 383 18446744073709551615 139708515631104 139708515771252 140737139200704 140737139199784 139708497335507 0 0 4096 536962595 18446744071580512361 0 0 0 12 0 0 11 0 0 #
谢谢你, EII
答案 0 :(得分:2)
TIME +是显示的累计时间。它是任务自启动以来使用的总CPU时间。要查找过程的实际运行,您可以使用 ps 命令。
答案 1 :(得分:0)
有人能说出导致这个巨大的TIME +号码的原因吗?这是/ proc / 1 / stat
TIME显示在minutes:seconds.hundredths