On Tue, Jan 11, 2005 at 10:10:41AM +0200, Tzahi Fadida wrote:

> > > I am looking for a utility that does that and especially
> > > a c library since I am in control of that process internal 
> > > programming.
> > 
> > This is information that has to be exported from the kernel. 
> > I think tha laptop mode patches (merged in 2.6) include at 
> > least some of this, and can probably be extended to give you 
> > the rest.
> 
> what do they give now?

See Documenation/laptop-mode.txt: 

"If you want to find out which process caused the disk to spin up, you
can gather information by setting the flag
/proc/sys/vm/block_dump. When this flag is set, Linux reports all disk
read and write operations that take place, and all block dirtyings
done to files. This makes it possible to debug why a disk needs to
spin up, and to increase battery life even more. The output of
block_dump is written to the kernel output, and it can be retrieved
using "dmesg". When you use block_dump and your kernel logging level
also includes kernel debugging messages, you probably want to turn off
klogd, otherwise the output of block_dump will be logged, causing disk
activity that is not normally there."

Cheers, 
Muli
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

Attachment: signature.asc
Description: Digital signature

Reply via email to