Re: [SLUG] find block number?

From: Eben King (eben01@verizon.net)
Date: Tue Oct 17 2006 - 12:25:03 EDT


On Tue, 17 Oct 2006, Levi Bard wrote:

>> If I have a long-running process, say "dd", is there any way to find out
>> which block of stdin it's reading?
>
> From dd(1):
> 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

Duh, thanks. Shoulda checked the man page first. Should be a SMOP to
change a series of measurements evenly spaced in time into data evenly
spread throughout the disk.

-- 
-eben      QebWenE01R@vTerYizUonI.nOetP      http://royalty.no-ip.org:81
CAPRICORN:  The stars say you're an exciting and wonderful person... but
you know they're lying.  If I were you, I'd lock my doors and windows
and never never never never never leave my house again.  -- Weird Al
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:04:22 EDT