dvn0zzz dvn0zzz - 7 months ago 36
Linux Question

how to have linux kernel export /proc/[pid]/io?

Im running linux on my board and have to read info in /proc/[pid]/io. But it is not found.

For ex:

$ dd if=/dev/zero of=/tmp/aa &
[1] 926
$ cat /proc/926/io
cat: /proc/926/io: No such file or directory

Which I need enable to have kernel export that?

Many thanks for your help!


According to this, you need CONFIG_TASKSTATS enabled in your kernel.

You can check your current kernel's config in various ways depending on distribution, but looking at /boot/config-$(uname -r) works in Redhat flavors.

If you don't have that option configured, you'll need to recompile your kernel, or investigate why your distro doesn't enable it.