- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Multi tasking in unix shell
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 05:42 AM
12-27-2007 05:42 AM
We periodically transfer files from our production box to our DR box throughout the day. Each file is about 50M and it had been taking about 3-4 seconds per file to rcp to DR.
Now our DR site has moved to Seattle (across the US for me). The same process is now taking 3 minutes per file. I wasn't expecting that much of a delay. Our network people say that it is not a bandwidth issue and I should try transfering, say, 5 files at a time rather than one at a time. Transfering 5 files at the same time should also take 3 minutes. The only way I have thought to do this was to put 5 rcp commands in the background and then monitor the progress.
Is there a better way?
Please withhold security concerns about using rcp!
Solved! Go to Solution.
- Tags:
- background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 06:29 AM
12-27-2007 06:29 AM
SolutionThere are two ways to read that. Do what they said or change to batch up N files and send them at once. But this assumes that the delay is due to finding the files.
Of course doing a tar and somehow doing the untar on the other end is doable.
>The only way I have thought to do this was to put 5 rcp commands in the background and then monitor the progress. Is there a better way?
If your bottleneck is the CPU/DISK, doing it is parallel won't speed up your network traffic, unless you have a CPU to spare. If you are disk limited, you need to fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 06:37 AM
12-27-2007 06:37 AM
Re: Multi tasking in unix shell
This is a network latenecy problem pure and simple. Move the DR center further away and the latency gets worse.
A simple ping command run to the old DR site will how less ms delay than the new.
You can ask your Internet provider to check the line and see if the issue can be addressed.
Probably not though. If you are willing to put a network device called a WAN accelerator at both ends of the connection (Base price $40,000 per unit) you can significantly improve the performance of your current system.
rcp is the fastest and least secure way of doing the transfer. Using a different program or script methodology will probably not help.
You could also buy a large bandwitdh from the Internet provide. That might be very expensive as well.
Surely taring the files up and compressing them before transfer should help the performance issue somethat. It is possible however that due to latency you are exceeding your line capacity and there is nothing you can do to fix it that doesn't cost a lot of money.
If you use the unix shell to tranfer files in the background the nice value is automatically 24 versus 20 for a foreground process. In summary, it will make things take longer.
witholding my concern that its not smart to send critical data across the country unencrypted.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Tags:
- compression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 06:59 AM
12-27-2007 06:59 AM
Re: Multi tasking in unix shell
Thanks. Going to try tar and then compress.
Good idea.
Steven:
Thanks for the reminder on the nice value for background processes. Also going to mention your comments to my director...and claim them as my own!
Many thanks to you both!
Happy New Year.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 07:11 AM
12-27-2007 07:11 AM
Re: Multi tasking in unix shell
Here's a good way to measure your bandwidth *without* involving your filesystems:
...Open a BINARY FTP session and do:
# put "| dd id=/dev/zero bs=1024k count=1024" /dev/null
...this would transfer 1GB without involving any filesystems.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 07:12 AM
12-27-2007 07:12 AM
Re: Multi tasking in unix shell
If this is a problem you can change it by: set +o bgnice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 07:17 AM
12-27-2007 07:17 AM
Re: Multi tasking in unix shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 07:31 AM
12-27-2007 07:31 AM
Re: Multi tasking in unix shell
gzip does a better job.
- Tags:
- gzip