per process I/O stats ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

 Is there a way to get information about I/O like how many blocks and char read
or wrote by a process? This kind of information is available per-cpu but I don't
find it per-process. Field "io_context" find in the task_struct doesn't give
this information. 

 I ask that because I wanted to use information given by BSD process accounting
but this information isn't complete. In particular in do_acct_process():

    ...
    ac.ac_io = encode_comp_t(0 /* current->io_usage */);    /* %% */           
                                                                 
    ac.ac_rw = encode_comp_t(ac.ac_io / 1024);
    ...

 Thus, what replace current->io_usage in the 2.6 kernels? 
 Do I need to add code in the kernel to get this information?

Thanks for your help
Guillaume

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux