LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-08-2010, 01:29 PM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
Copying files over a network - Strange behaviour


Hi,

While copying a large amount of data between two linux computers I noticed strange behaviour. The network card activity (computer copying the files) would be dormant for 30 second to a minute and then flash rapidly for just 5 second or so. This repeated for the duration of the copying progress (approx 2 hours at a supposedly constant 5-7MB/s).

The share that I was copying to was via SSH using "connect to server" from the GNOME menu.

I was expecting the see the network card activity light constantly flash. I wondered if someone could explain this strange behaviour that I have witnessed.

Thank you
 
Old 01-08-2010, 02:30 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
What do you see when you do an 'ifconfig -a' any errors or similar?
 
Old 01-08-2010, 02:32 PM   #3
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Computer has not rebooted since the copying and eth0 shows the following:

RX packets:17878 errors:0 dropped:0 overruns:0 frame:0
TX packets:21568 errors:0 dropped:0 overruns:0 carrier:0

... so that looks normal.

Last edited by jsteel; 01-08-2010 at 05:57 PM.
 
Old 01-08-2010, 06:01 PM   #4
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
I'm copying more data over (near enough the same amount as last time) and it seems fine this time. It makes me worried that there was an issue with the last copy.

I assume any issues would have been reported to me visually via GNOME's Nautilus during the copy?
 
Old 01-08-2010, 06:20 PM   #5
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,432

Rep: Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192
Quote:
Originally Posted by jsteel View Post
I'm copying more data over (near enough the same amount as last time) and it seems fine this time. It makes me worried that there was an issue with the last copy.

I assume any issues would have been reported to me visually via GNOME's Nautilus during the copy?
I wouldn't trust that Nautilus does the right thing: but I hate GUI file managers. If you want to really see what is going on, do the transfer with rsync from the command line:

For "pushing" data:
Code:
rsync -auv --progress -e ssh /path/to/source/directory/data remotehost:/path/to/dest/directory
Or for "pulling" data
Code:
rsync -auv --progress -e ssh remotehost:/path/to/source/directory/data /path/to/dest/directory
You may not need the '-e ssh' since these days ssh is usually the default transfer method for rsync.

With these flags rsync will only copy files that have change, and also, it automatically runs checksums to ensure that the data really has be copied correctly.

Cheers,

Evo2.
 
Old 01-11-2010, 01:32 PM   #6
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Also you could md5sum the file on each host, if they match it's likely a clean transfer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behaviour >>..files are not listing . sheikhsa Linux - General 3 12-02-2007 12:11 PM
Strange scp issue while copying files gettons_slack Linux - Software 2 08-26-2006 06:33 AM
Strange scp issue while copying files gettons_slack Slackware 7 08-25-2006 02:53 PM
Appending files in star - strange behaviour billymayday Linux - Software 3 05-05-2006 11:13 AM
Odd behaviour when copying files from cdrom to hard drive... pdmackenzie Linux - Hardware 9 03-21-2003 06:34 PM


All times are GMT -5. The time now is 06:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration