On Sat, 06 Dec 2014 12:01:16 +0100 Johannes Altmanninger wrote:
> Hi,
> 
> meino.cra...@gmx.de writes:
> 
> > In the context of preserving the live of flash media by minimizing
> > the count of unessary writes I want to know which
> > application/daemon/etc is continous writing to that media and which
> > """entity""" (file/pipe/fifo...) is receiving those writes...
> 
> You could use this:
> 
> # echo 1 > /proc/sys/vm/block_dump
> 
> then every read and write operation on block devices shows up in dmesg
> with the PID, process name and the block id. (This can be a lot of
> lines, so dmesg -c might be useful) I'm not exactly sure how to identify
> which files belong to which block, though.

This depends on filesystem being used. For ext* family debugfs may
be used:
# debugfs /dev/<your_dev>
ncheck inode1 inode2 ...

Best regards,
Andrew Savchenko

Attachment: pgpTSVfkHacd7.pgp
Description: PGP signature

Reply via email to