LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-07-2008, 07:57 AM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Issues moving large number of files


Hey all,

I'm going to give you the short version of this long-winded problem I've been having. Initially, I was trying to back up a bunch of files from a SATA drive to an IDE drive on the same Suse 10 machine. During the copy (using bacula, rsync, or just cp) the machine would hang. It took about 10 minutes to log in with SSH and unmount the drive. I pretty much had to reboot at that point.

I switched the IDE drive to a USB bay. Same issue. I've since bought a SATA drive so I'm copying from SATA to SATA. Same issue. I've tried ReiserFS and ext3. Same issue.

So, I've found that if I boot the machine in "fail safe" mode in GRUB, the backup runs fine with rsync, but it's quite slow. I'm watching my MP3s back up now, and it's maybe 1 file every second or two. So, that's roughly 3MB/s or so. That's quite slow for a local SATA to SATA copy.

I'm not really sure what all the options in the kernel line of the "Fail Safe" entry in GRUB mean. Any ideas which of these resolved the issue? Any ideas if one of those options would be causing the slow copy speed, or do you think it's just the nature of rsync (which I've never used)?


Thanks very much in advance for any responses. This issue is killing me.
 
Old 05-07-2008, 09:23 AM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
rsync is as fast as cp, it's just a wrapper. There's no reason rsync should be slow unless it's during the phase that it's figuring out what to copy. Note that if you have fancy control statements for rsync and you are changing files on the drive at the same time, rsync will try to make sure it does what you want and it *can* slow down.

do rsync with the -v option (or maybe even -vv) and you can see where the delay is.
 
Old 05-07-2008, 09:45 AM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
The options I'm using on the rsync command are -vxrpogtc.

I started looking through the kernel parms used in the fail safe grub entry, and I noticed two that seem relevent; edd=off and ide=nodma. I'm sure the ide=nodma is going to have a very serious impact on speed. The only question is whether or not that option is the same one that kept it from locking up on me.

I just rebooted the box with edd=off but without ide=nodma. I'm re-running the backup and will see if it runs any faster and if it crashes again.
 
Old 05-07-2008, 02:47 PM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Having DMA off will ruin your performance for sure as you said. I don't know what all those rsync options are without looking at the man page again. I use -ax which I believe includes *most* of your -xrpogtc but not all of them.
 
Old 05-07-2008, 10:45 PM   #5
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Well, this issue continues to piss in my Cherios, it seems. I've eliminated rsync as a possible issue as the problem occurs with a simple cp -Rv now. Here are some errors showing up in the messages file that are meaningless to me but might shed some light on the subject for you gurus:

Code:
May  7 22:35:14 fileserver kernel: sdb: Write Protect is off
May  7 22:35:14 fileserver kernel: sdb: Mode Sense: 00 3a 00 00
May  7 22:35:14 fileserver kernel: SCSI device sdb: drive cache: write back
May  7 22:37:25 fileserver kernel: ata1.01: limiting speed to PIO2
May  7 22:37:25 fileserver kernel: ata1.01: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
May  7 22:37:25 fileserver kernel: ata1.01: cmd 24/00:00:3f:64:d5/00:04:00:00:00/f0 tag 0 cdb 0x0 data 524288 in
May  7 22:37:25 fileserver kernel:          res 50/01:01:01:00:00/01:00:00:00:00/10 Emask 0x202 (HSM violation)
May  7 22:37:25 fileserver kernel: ata1: soft resetting port
May  7 22:37:26 fileserver kernel: ata1.00: configured for UDMA/133
May  7 22:37:26 fileserver kernel: ata1.01: configured for PIO2
May  7 22:37:26 fileserver kernel: ata1: EH complete
May  7 22:37:26 fileserver kernel: SCSI device sda: 586114704 512-byte hdwr sectors (300091 MB)
May  7 22:37:26 fileserver kernel: sda: Write Protect is off
May  7 22:37:26 fileserver kernel: sda: Mode Sense: 00 3a 00 00
May  7 22:37:26 fileserver kernel: SCSI device sda: drive cache: write back
May  7 22:37:26 fileserver kernel: SCSI device sdb: 586114704 512-byte hdwr sectors (300091 MB)
May  7 22:37:26 fileserver kernel: sdb: Write Protect is off
May  7 22:37:26 fileserver kernel: sdb: Mode Sense: 00 3a 00 00
May  7 22:37:26 fileserver kernel: SCSI device sdb: drive cache: write back
May  7 22:37:26 fileserver kernel: SCSI device sda: 586114704 512-byte hdwr sectors (300091 MB)
May  7 22:37:26 fileserver kernel: sda: Write Protect is off
May  7 22:37:26 fileserver kernel: sda: Mode Sense: 00 3a 00 00
May  7 22:37:26 fileserver kernel: SCSI device sda: drive cache: write back
May  7 22:37:26 fileserver kernel: SCSI device sdb: 586114704 512-byte hdwr sectors (300091 MB)
May  7 22:37:26 fileserver kernel: sdb: Write Protect is off
May  7 22:37:26 fileserver kernel: sdb: Mode Sense: 00 3a 00 00
May  7 22:37:26 fileserver kernel: SCSI device sdb: drive cache: write back
May  7 22:40:20 fileserver gconfd (root-5045): starting (version 2.12.1), pid 5045 user 'root'
May  7 22:40:21 fileserver gconfd (root-5045): Resolved address "xml:readonly:/etc/opt/gnome/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
May  7 22:40:21 fileserver gconfd (root-5045): Resolved address "xml:readwrite:/root/.gconf" to a writable configuration source at position 1
May  7 22:40:21 fileserver gconfd (root-5045): Resolved address "xml:readonly:/etc/opt/gnome/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
May  7 22:42:07 fileserver smbd[3968]: [2008/05/07 22:42:07, 0] printing/print_cups.c:cups_cache_reload(85)
May  7 22:42:07 fileserver smbd[3968]:   Unable to connect to CUPS server localhost - Connection refused
May  7 22:42:07 fileserver smbd[3968]: [2008/05/07 22:42:07, 0] printing/print_cups.c:cups_cache_reload(85)
May  7 22:42:07 fileserver smbd[3968]:   Unable to connect to CUPS server localhost - Connection refused
 
Old 05-08-2008, 04:57 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
IDE-/SATA chipset, kernel version?
 
Old 05-08-2008, 08:15 AM   #7
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
This is Suse 10.1 with kernel version 2.6.16.46-0.12-bigsmp. The mobo is an ABIT IC7-MAX3 with the 875P chipset which uses the ICH5R south bridge which includes an SiS SATA controller. I hope this is enough info. Thanks for the replies!
 
Old 05-08-2008, 01:23 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Can you post the output of lspci?

And I'm not too familiar with SuSEs kernel version numbers,
but that looks dreadfully old to me (going by the stock
kernel 2.6.25.2 I'm using), the last (official) 2.6.16 was
published in Apr 2006. And I seem to recall that around
that version number some bug was introduced that not only
caused slow transfers under certain circumstance, but also
data corruption on some chipsets (my boss was telling me
that he had the problem).


Cheers,
Tink
 
  


Reply



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
Renaming large number of files. checkmate3001 Linux - General 16 06-20-2009 11:16 AM
Deleting a large number of files msteudel Linux - General 4 01-26-2005 01:36 AM
moving large files mnauta Linux - General 2 04-27-2004 07:47 AM
Large Number of files? mikeshn Linux - Security 2 01-10-2004 06:11 AM
Java: Compile Large number of source files ? mikeshn Programming 7 10-07-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration