LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-08-2006, 11:39 AM   #1
webno
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
Two identical disks, different performance


I'm building a server and I've put in two identical Hitachi 250GB SATA drives. I've set up my system (debian, xen, raid1 and lvm2) and noticed something strange when I started to tweak it.

/dev/sda reads perform bad while /dev/sdb reads perform normal.
Code:
raksuki:~# hdparm -t /dev/sda
/dev/sda:
 Timing buffered disk reads:   38 MB in  3.22 seconds =  11.80 MB/sec

raksuki:~# hdparm -t /dev/sdb
/dev/sdb:
 Timing buffered disk reads:  172 MB in  3.02 seconds =  56.95 MB/sec
When I time de RAID1 device with
Code:
hdparm -t /dev/md0
then the performance alternates between sda's performance and sdb's performance which is probably logical. Both disks received the same treatments during the installation.
Anyone know what is going on?
Extra info: SuperMicro p4SCi, with a P4 3GHz and 1GB of memory running debian sarge and software RAID on ICH5R.
 
Old 04-08-2006, 06:14 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Might check the bios and make sure the sata channel is running in sata mode and not pata or something. Type ' hdparm -i /dev/sda ' and ' hdparm -i /dev/sdb ' and see if both using the same settings.

Brian1
 
Old 04-10-2006, 10:48 AM   #3
webno
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Original Poster
Rep: Reputation: 0
The hdparm -i are the same for both drives.
All dmesg output regarding both drives are equal. There is one line that might be of interest:
Code:
ICH5 not 100% native mode: will probe irqs later.
I played around in the BIOS and there is an option:

Serial ATA Port0 Mode-> SATA0 Master
Serial ATA Port1 Mode-> SATA1 Master

The first one can be set, and the second one follows automatically.
If I switch Port0 Mode to SATA1 Master, then the second drive becomes faster. So whichever drive is on serial ata port1 mode becomes the slower drive.

I pretty much tried all SATA modes and settings, switching between IDE and RAID or between enhanced mode, combined mode sata only mode but every time one drive underperforms.

..?
 
Old 04-11-2006, 04:46 AM   #4
thermite_1033
Member
 
Registered: May 2004
Location: Antwerp, Belgium
Distribution: slackware
Posts: 112

Rep: Reputation: 18
the 2 disk are running on the same controler, that way the master will be served first en the second will underperform

try to use the disks on different controllers
 
Old 04-11-2006, 08:17 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
SATA isn't supposed to have a master and slave situation like the old PATA drives..
if that's the cause then the Manufacturer (Intel) must have taken some shortcuts when making that controller chip.

I searched around a bit and found nothing on this problem.. very bizarre, and I'm really curious what the answer is.
 
Old 04-11-2006, 02:31 PM   #6
webno
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Good news, I found it. The Port0 Port1 thing basically switched the drives names. The second drive for example would only appear as /dev/sda. So it was the same drive that underperformed every time afterall. Next logical step was to replace the drive but that didn't help. And after some switching and testing I finaly found it: It was the SATA cable. Geez.
 
Old 04-11-2006, 10:08 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Thanks for posting back the solution.. If I run across that problem in the future I'll swap out my cables before I go crazy chasing phantoms
 
  


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
performance of various disks... ronanio Linux - Enterprise 1 03-13-2006 07:00 AM
Identical disks that are not identical staphanes Linux - Hardware 8 03-11-2006 11:50 AM
Installation Disks not recognized as official disks when booting with floppy coal-fire-ice Mandriva 13 12-09-2004 04:29 PM
Two identical computers but different OS-es OlympusHermes Linux - General 19 01-23-2004 02:18 PM
2 Identical ethernet cards vwhk Linux - Networking 2 02-08-2002 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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