LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-04-2010, 03:56 PM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
1 SATA drive very slow, other 2 are fine


Hi,

I have 3 SATA drives in my desktop computer. I recently started copying large amounts of data around and noticed that the read/write performance of one of my drives was very poor.

"hdparm -t" shows 2 of my drives to be 70 and 100MB/s and my slow drive reports back to be just 6MB/s (which is what I am getting while copying data to/from it).

I've taken a look in the BIOS and cannot see any difference between the drive settings. Any ideas?

Thanks
 
Old 06-04-2010, 05:35 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
This link covers some good troubleshooting topics related to SATA drive. It is mainly directed at Lenovo Thinkpads, but, the commands they use may help you determine what's going on.
 
Old 06-05-2010, 02:45 AM   #3
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Thanks. I found the "hdparm -m" setting is set to off on my slow drive. My other drives are set to "on", but when I try and turn it on on my slow drive, it gives a warning message saying that changing this could be dangerous. Not sure I want to risk it!
 
Old 06-05-2010, 03:39 AM   #4
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
I read that in rare cases it could cause damage to the file system, rather than the drive so I gave it ago:

# hdparm -m 16 --yes-i-know-what-i-am-doing /dev/sdc

/dev/sdc:
setting multcount to 16
HDIO_DRIVE_CMD(set_multi_count) failed: Input/output error
multcount = 0 (off)

... but it doesn't like it :\ I've tried other settings such as 8 and 32 and I always get the same error.
 
Old 06-05-2010, 04:30 PM   #5
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
I just noticed in the Disk Utility that my slow drive is being detected as a SCSI drive. It's connected to a SATA port like the other drives. How can I force this to be detected as a SATA drive? (remove SCSI support for example?)
 
Old 06-05-2010, 05:29 PM   #6
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
It could be Linux is missing the drivers to fully support that drive. Does this help.
 
Old 06-06-2010, 04:49 AM   #7
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by harry edwards View Post
It could be Linux is missing the drivers to fully support that drive. Does this help.
I'm afraid I didn't find any help there. It's a fairly new Western Digital drive. I have another similar WD drive that works fine, and the 3rd is a Seagate (also fine).
 
Old 06-06-2010, 07:33 AM   #8
ktm_kannan
LQ Newbie
 
Registered: Jan 2009
Distribution: Mandriva
Posts: 22

Rep: Reputation: 16
does your motherboard has different colored SATA ports?
 
Old 06-06-2010, 09:17 AM   #9
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Nope, all the same; 4 red. Changing ports doesn't make any difference.

I'm running Ubuntu 64 bit. I tried Ubuntu 32 bit and got an increase from 6MB/s to 13MB/s. I then tried Fedora (both 32 and 64 bit) and I get 22MB/s (with both versions). This seems far more reasonable, but still pretty slow for a hard drive.

As far as I can tell, all hdparm settings are identical in Ubuntu and Fedora. Fedora also sees this drive as SCSI.
 
Old 06-06-2010, 10:44 AM   #10
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
it may be due to aggressive power saving
 
Old 06-15-2010, 02:35 AM   #11
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
All settings related to power saving that I can find with hdparm are the same as the other drives.

I've tried Debian, and that gives about 13MB/s like Ubuntu does.

Any more ideas?
 
Old 06-15-2010, 04:26 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Are they all on the same SATA controller ? or on different ones ? They're usually color-coded on the mobo.
 
Old 06-16-2010, 04:33 PM   #13
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
They are plugged into 3 of 4 red SATA connections clustered together; 2x2. Changing them around makes no difference.

I would be partially happy if I could get a consistent speed between distributions, even if that's 20-ish MB/s.
 
Old 06-17-2010, 04:32 AM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
oops, looks like my question was asked before.

Well, if they are all plugged into the same controller, that means the drive itself must be the problem. Can you run smartctl on it. Like 'smartctl -A' and maybe do a short or long test.
 
Old 06-17-2010, 09:22 AM   #15
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Tried running tests on it with smartctl and read the SMART data; all looks fine. Can post results later if needed.

I replaced this drive with a 2.5" SATA drive (only other drive I had handy) and I get very similar results; should a 2.5" drive give between 10MB/s and 20MB/s on various Linux distributions? I thought these would give about 50MB/s?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do faster copy to internal sata drive? pax seems very slow Arodef Linux - General 8 08-29-2009 01:04 AM
Sata Raid 1 and Single Sata drive drive order issue Kvetch Linux - Hardware 5 03-19-2007 06:50 PM
Suse 9.2 & SATA - Slow, Slow, Slow jess1975 SUSE / openSUSE 6 01-28-2007 12:17 PM
red hat 9 has become slow on sata drive nesargha Red Hat 0 06-03-2006 05:03 AM
Slow SATA drive Scorper Linux - Hardware 1 04-11-2005 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:10 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