[Gllug] file offset in running process
Matthew King
matthew.king at monnsta.net
Fri Aug 14 14:52:44 UTC 2009
Alain Williams <addw at phcomp.co.uk> writes:
> I am doing a large 'dd'. I want to know how far it has got. How do I do it ?
>
> lsof does not support -o (offset) under Linux.
> Strace reports nothing useful.
>From the manpage:
Sending a USR1 signal to a running `dd' process makes it print I/O
statistics to standard error and then resume copying.
$ dd if=/dev/zero of=/dev/null& pid=$!
$ kill -USR1 $pid; sleep 1; kill $pid
18335302+0 records in 18335302+0 records out 9387674624 bytes
(9.4 GB) copied, 34.6279 seconds, 271 MB/s
This is the sort of thing that makes me think the kill command has the wrong name.
Matthew
--
I must take issue with the term "a mere child", for it has been my
invariable experience that the company of a mere child is infinitely
preferable to that of a mere adult.
-- Fran Lebowitz
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list