[ILUG] disk write hunt
Mel Gorman
mel at csn.ul.ie
Tue Jan 20 15:49:00 GMT 2004
On Tue, 20 Jan 2004, Cian Cullinan wrote:
> iostat tells me there is writing to the hard disk going on (that and the
> blinky led on the front of the computer). lsof shows me what files are
> open, and which have been opened for writting, but doesn't tell me which
> are currently being written to (it's a long list).
This is probably not the best way to do it but you could use strace to
trap writes to file descriptors (see man page on how to filter strace
output) and record how much is written to each descriptor. See
/proc/pid/fd then to see which files those descriptors correspond to.
As I said, there is probably a far neater way of doing thing.
--
Mel Gorman
More information about the ILUG
mailing list