【发布时间】:2016-06-17 04:24:19
【问题描述】:
我在我的板上运行 linux,并且必须读取 /proc/[pid]/io 中的信息。但是没有找到。
例如:
$ dd if=/dev/zero of=/tmp/aa &
[1] 926
$ cat /proc/926/io
cat: /proc/926/io: No such file or directory
我需要启用哪个才能导出内核?
非常感谢您的帮助!
【问题讨论】:
-
/proc 存在吗? /proc/926 存在吗?
-
是的,它们确实存在。
-
什么内核版本? (
uname -a) -
我的内核版本是:Linux 4.1.17
-
This 建议查看kernel config。 (根据 proc 手册页,您的内核对于 /proc/pid/io 来说已经足够新了)