This commit is contained in:
gatieme
2016-05-12 13:04:24 +08:00
parent 7678c3b414
commit 9e58dc7da7
2 changed files with 4 additions and 12 deletions
+4 -12
View File
@@ -1029,19 +1029,11 @@ u64 acct_vm_mem1; /* accumulated virtual memory usage */
cputime_t acct_timexpd; /* stime + utime since last update */
endif
```
在Ubuntu 11.04上,执行cat获得进程1的I/O计数如下:
在Ubuntu 11.04上,执行cat获得进程1的I/O计数如下:
```c
$ sudo cat /proc/1/io
```c
rchar: 164258906
wchar: 455212837
syscr: 388847
syscw: 92563
read_bytes: 439251968
write_bytes: 14143488
cancelled_write_bytes: 2134016
task_io_accounting结构体的所有成员
![获得进程1的I/O计数](./images/cat_proc_io.png)
输出的数据项刚好是task_io_accounting结构体的所有成员。
36)、CPUSET功能
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB