Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
The "very slow" is because the default block size is pretty small (the default is usually 512 bytes). You can increase this in multiples of 512 for better throughput.
You can use, for example, an additional argument to cpio, --block-size=4096, and see what that does, if it helps, great, or double it to --block-size=8192. You can increase the size of block-size using either blocks or bytes; e.g., 10MB, and you'll get increased speed. Just be careful to not go "too big" (there is a point of decreasing returns). 10MB - 20MB is probably useable for acceptable speed. Note that some versions of cpi will accept "-bs=20MB" and some won't.
Hope this helps some.
Last edited by tronayne; 12-07-2012 at 12:35 PM.
Reason: Forgot default block size
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
I note that you're using copy-pass mode, where cpio copies files from one directory tree to another without actually using an archive. Too, because you're talking about Ethernet, I suspect you're copying to a network file system (rather than a physical drive on the same platform)?
Many people report slow throughput to NAS (I suspect that /mnt/NAS/15 is a NAS file system). I'm no expert but some reading of descriptions of similar speed problems (there are a lot of discussions about NAS speed problems) get to turning off HTTPS on the LAN, one in particular at http://arstechnica.com/civis/viewtop...ef28#p22044068 might be interesting to you. It's part of a long discussion of similar problems with speed to yours (read above and below the posts).
You may want to search through the Linux Networking forum here at LQ plus take a look at results from Google searching for "copy to nas slow" for more information. I don't the expertise to help, sorry.
yes i connect a ibm server with centos 6.3 with a netgear readynas 2100 with a cross cable. the link has a bandwidth of 1 gbps but the bandwidth in copy process is only 10 Mbps. on this link there isn't another traffic only traffic from cpio command
hello,
i test all options and i search on internet any solution, but don't work nothing.
i am not expert of linux, someone can help me?
thanks very very much
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.