Re: Time IO spent by processes

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

 



On Wed, 29 Jun 2005, Eduardo Bezerra wrote:

> Thanks for answer me. Ok, it is better manipulate the functions where 
> task sleeps to wait on IO. But, there is a lot of kinds of IO... So, I 
> need to modify every IO function inside the kernel? I really don't know 
> how to do this because I even don't know this list of functions... Where 
> can I start?

You could start by doing heavy IO and looking at the wchan of
the processes doing IO, to find out where they are sleeping.

Then search mm/*.c and fs/*.c for similar functions.

> Is there another way to this task?

Yes, but the other ways are all harder ;)

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
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