coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another rfe: "cp" this time


From: Bruce Korb
Subject: Re: Another rfe: "cp" this time
Date: Fri, 27 Apr 2012 14:27:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120328 Thunderbird/11.0.1

On 04/27/12 12:57, Pádraig Brady wrote:
Note you could test your multiple readers idea simply like:

  (
    dd bs=32KiB skip=0000 seek=0000 count=1000 conv=notrunc&
    dd bs=32KiB skip=1000 seek=1000 count=1000 conv=notrunc&
    dd bs=32KiB skip=2000 seek=2000 count=1000 conv=notrunc
  )>  /local/file<  /cifs/file

A simple wrapper could be used to start the correct number of dd processes.


Actually each dd process would have to maintain the file offsets
independently something like:

file.out
(
  dd if=file.in of=file.out bs=32KiB skip=000 seek=000 count=100 conv=notrunc&
  dd if=file.in of=file.out bs=32KiB skip=100 seek=100 count=100 conv=notrunc&
  dd if=file.in of=file.out bs=32KiB skip=200 seek=200           conv=notrunc
  wait
)

Well, I tried a non-zero skip by itself and it just died, copying nothing.
So I kicked off the pcopy and, though it is still cranking along,
it won't be 10 hours to finish:

$ ls -gol /mnt/goflex/priv
total 2145624
-rw------- 1 379535360 Apr 27 13:15 iso-0 <<== done
-rw------- 1 259637248 Apr 27 14:23 iso-1
-rw------- 1 259637248 Apr 27 14:23 iso-2
-rw------- 1 259637248 Apr 27 14:23 iso-3
-rw------- 1 259637248 Apr 27 14:23 iso-4
-rw------- 1 259637248 Apr 27 14:23 iso-5
-rw------- 1 259637248 Apr 27 14:23 iso-6
-rw------- 1 259637248 Apr 27 14:23 iso-7
-rw------- 1     90112 Apr 27 12:20 iso-8 <<== done

It is 2/3 done now and 2 hours in.

Could you link to pcopy for reference?

Link?  no.  Copy?  yes.  But it is a long way from being ready for prime time.
And I think it belongs in "cp". :)

Attachment: pcopy-0.1.tar.xz
Description: application/xz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]