Re: Copy with SCP - low performance

From: Jean-Eric Cuendet (jec_at_rptec.ch)
Date: 03/30/04

  • Next message: Jonathan B. Horen: "Packet "Mixing" Between Multiple NICs on Host"
    Date: Tue, 30 Mar 2004 12:28:38 +0200
    To: fedora-list@redhat.com
    
    

    > Horacio Reyes wrote:
    >
    > >>- The files are copied in batch of 100 tif images, in a directory with
    > >>more than 5 million files.
    > >>- the server that initiate the scp is a 1.2Ghz P3 with 2G in ram, the
    > >>receiver is a double Xeon 2.6ghz with 2G in ram. The first server takes
    > >>no time to send the file, but the receiver takes more than 200segs to
    > >>copy. They are in a 100mb lan.
    > >>- the top comand shows 98% free cpu before the scp, when scp start it
    > >>takes 100% of the 2 xeon cpu. The problem is not the ram, both servers
    > >>have more than 1G free when scp starts.
    > >>
    >
    > I have found thet SCP does not like lots of small files, if you can tar
    > the files together into on big file it will probably transfer much
    > quicker..

    Do you know a command to tar through SSH which is the same as scp but
    kepps better permissions and is quicker?
    Here it is:

    You have bar/foo and you'd like to copy dir foo to server blabla:
       cd bar && tar c foo | ssh user@blabla "cd /dir_on_blabla && tar x"

    Great isn't it?
    -jec

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jonathan B. Horen: "Packet "Mixing" Between Multiple NICs on Host"

    Relevant Pages

    • Re: Question about bzip2 and bzip2recover and tar
      ... Then tar can get everything except the bad section and a little bit before and after the bad section... ... Question about bzip2 and bzip2recover and tar ... >with a subject of "unsubscribe". ... Trouble? ...
      (Debian-User)
    • Re: Question about bzip2 and bzip2recover and tar
      ... cat the results sequentially into a tar file or stream and then extract.... ... If this listing script works, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
      (Debian-User)
    • Re: RAR under linux: any alternative?
      ... delete your Windows partition TODAY! ... You can get my public key from any of the ... I have to explain to them what tar is how to find a window's ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Using tar to extract files from tape
      ... The question is a simple one: can I use tar to extract a file ... "Tape ARchive" most probably doesn't ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... gpg: ...
      (Debian-User)
    • Re: WARNING! New GNU Tar in 5-CURRENT could erroneously createworld writeable dirs
      ... >> other lowel level dirs). ... anybody who runs 5.0-CURRENT with the new tar is advised to ... clean up all ports' WRKDIRs she might have, ... To Unsubscribe: send mail to majordomo@FreeBSD.org ...
      (freebsd-current)