Re: cp taking 24 hours for 200Gigs of data
From: Logan Shaw (lshaw-usenet_at_austin.rr.com)
Date: 03/31/04
- Next message: Michael Laajanen: "Re: MAC ADDRESS TO ALL ZEROS"
- Previous message: Morten Green Hermansen: "HW RAID PCI controller natively supported in Solaris9"
- In reply to: Liam Carey: "cp taking 24 hours for 200Gigs of data"
- Next in thread: Brendan Gregg: "Re: cp taking 24 hours for 200Gigs of data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 07:36:40 GMT
Liam Carey wrote:
> We are having to wait over 24 hours for cp to complete the job of
> copying 200Gig of data from one filesystem to another. Any help is
> greatly appreciated. Both machines are Solaris 8, with Gigabit
> ethernet cards. We have mounted the filesytem via NFS over the network
> and are currently copying 3 directories we need using cp -r.
First recommendation is to turn on the "logging" mount option for
the destination filesystem if you haven't done that.
Second recommendation is to not use NFS for bulk copying. For
small files, you will always have to contend with the fact that
there is turnaround time for every file that is created, and that
turnaround time is going to be increased by not only the latency
of the network (which is low) but also the latency of the software
answering a queue of network requests. And yes, you can have
multiple requests in progress at once and reduce the effect of
this turnaround time, but since this is (probably) the one
factor that dominates, that is just going to reduce the slowness
rather than eliminating it.
I personally would do something like this:
ufsdump 0f - /source/filesystem |
rsh destination-host "cd /dest/dir && ufsrestore rf -"
It is longer and more work, but I would almost bet money it
will go a LOT faster.
Of course Joerg will probably pop up and point out that the
performance will be even better with "star", which is
probably true, but you may find that ufsdump is adequate
for your needs.
- Logan
- Next message: Michael Laajanen: "Re: MAC ADDRESS TO ALL ZEROS"
- Previous message: Morten Green Hermansen: "HW RAID PCI controller natively supported in Solaris9"
- In reply to: Liam Carey: "cp taking 24 hours for 200Gigs of data"
- Next in thread: Brendan Gregg: "Re: cp taking 24 hours for 200Gigs of data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|