LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-31-2004, 01:03 AM   #1
BlueKnight
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
Old SCSI drive is too slow?


Hi,

I have an old server with dual PII and SCSI, I think it is Ultra Wide SCSI, but I'm not sure about this. It is an IBM Pc Server 325, so if someone knows better what is inside it, please tell me.

The problem is that my SCSI drive seems too slow and I really don't know what could be done about it. Well, hdparm said the speed was a little more than 8MB/sec and this seems low as the driver informs be 40MB/s during boot.

hdparm -t -T /dev/sda

Code:
/dev/sda:
 Timing buffer-cache reads:   156 MB in  2.01 seconds =  77.47 MB/sec
 Timing buffered disk reads:   26 MB in  3.14 seconds =   8.28 MB/sec
This is from dmesg:

Code:
Detecting Adaptec I2O RAID controllers...
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
        <Adaptec aic7880 Ultra SCSI adapter>
        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

Using anticipatory io scheduler
(scsi0:A:0): 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
  Vendor: IBM-PCCO  Model: DDRS-34560W   !#  Rev: S97B
  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 32
(scsi0:A:6): 10.000MB/s transfers (10.000MHz, offset 15)
  Vendor: IBM       Model: CDRM00203     !K  Rev: 1.01
  Type:   CD-ROM                             ANSI SCSI revision: 02
SCSI device sda: 8813870 512-byte hdwr sectors (4513 MB)
SCSI device sda: drive cache: write through
 sda: sda1 sda2 sda3
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 6, lun 0
As I have not any real specs for my machine it is difficult to know what the SCSI in use is and what the rest of the hardware is. Now I would like to know whether there is someone with more knowledge about this machine or how to "fix" the SCSI thing. Please help as I am quite new to SCSI and have tried to search the Internet for help in this matter, but without luck.

Thank you in advance!
 
Old 09-05-2004, 03:06 AM   #2
BlueKnight
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 32

Original Poster
Rep: Reputation: 15
Is there noone with knowledge about SCSI?

I would just want to know what the speed should be as I think it is too low. Please tell me what speeds you are experiencing with similar SCSI buses.

Thanks!
 
Old 09-06-2004, 01:26 AM   #3
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
I have 2 SCSI computers, one is similar to yours. Here are my results if you're interested

Computer is a P2 333 MHz, AHA-2940UW (40MB/s bus)
# hdparm -t -T /dev/sda
/dev/sda:
Timing buffer-cache reads: 128 MB in 1.44 seconds = 88.89 MB/sec
Timing buffered disk reads: 64 MB in 2.93 seconds = 21.84 MB/sec

Computer is a 1.83GHz Athlon AHA-19160 (160MB/s bus)
# /sbin/hdparm -t -T /dev/sda
/dev/sda:
Timing buffer-cache reads: 1780 MB in 2.00 seconds = 890.00 MB/sec
Timing buffered disk reads: 204 MB in 3.01 seconds = 67.77 MB/sec
 
Old 09-07-2004, 02:40 AM   #4
BlueKnight
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks randyding for giving me at least something to start with. Well, the first thing that comes to my mind is why are you having so much better results than i have? This was exactly the thing I was suspecting all along.

Could it be so that the driver is the same for both of us - that's why it prints 40MB/s - but the bus is not the same?! Or is this totally impossible?

Any other ideas?
 
Old 09-07-2004, 11:16 PM   #5
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
I wouldn't rule out software problems yet but there are some hardware problems that can cause poor performance. The 4 big ones that I've run accross in some of my systems has been
1. bad scsi cable or connector
2. improper bus termination
3. bad hard drive
4. bad controller card
I've sometimes seen degraded performance just before a drive failure. Most of the time you start to hear unusual sounds of head movement on the drive.

I personally have not seen the diagnostic software for linux, but there is some adaptec software that does diagnostics on others where they print out scsi bus and drive error logs and codes.

You may take a look at the SCSI bios screen, you hit some key on bootup to get into it. Depending on the adaptec card there usually is some diagnostic programs that can be run from there too.

You may also check that your hardware really is the speed you think it is. SCSI drives come in speeds from 5 to 320 MB/s, and the bus speed is going to negotiate to the slowest device on the bus. I'd also double check that all your drives are the same bus, like you don't want to mix LVD and Single Ended drives (both have the same 68 pin connector) and that you have the right controller type, like my 2940UW is single ended only and some newer LVD don't work for some reason... they are usually backward compatable but I have a Maxtor that shows problems (runs very slow) with that controller.

If all else fails, try Adaptec tech support. I've called them a couple times for various things and they've always been helpful.
 
Old 09-08-2004, 03:59 AM   #6
BlueKnight
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 32

Original Poster
Rep: Reputation: 15
Thank you very much for the answer!

So, you mean that if I have the SCSI CD-ROM connected to the same cable and this has a speed of 10MB/s the speed of the SCSI harddrive will be 10MB/s even if it says 40MB/s when it boots? If this is the case it can easily be checked when I get home from work.
 
Old 09-08-2004, 01:18 PM   #7
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Well kind of, if your SCSI cd-rom(s) are like mine then they have the 50 pin connector. Which is single ended 8 bit ultra SCSI (20MB/s).
I don't know your exact setup, but the 40MB/s scsi bus is ultra-wide and it usually has the 68 pin connector on the drives. So they can't be plugged into the same SCSI cable unless you are running the ultra-wide drive on the ultra bus using a scsi adaptor.
Normally, the adaptec controllers have 2 different SCSI busses and two different connectors, one is ultra scsi for cdrom's, etc, and a different one that is faster for hard drives. They are usually on separate cables but don't necessarily have to be, depending on your card and the cables/adapters you are using.
You probably should take it all apart and write down what you have and how its all connected to troubleshoot it more. The adaptec web site has lots of good scsi diagrams that explain everything and what's compatible with what. I've got a lot of those PDF files and reference them everytime I have to work on stuff. It helps a lot to know the part numbers and get the data sheets for each part in your system too.
 
  


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
scsi write slow HellBunni Programming 0 04-06-2005 03:03 PM
GRUB or LILO boot to SCSI drive on SCSI system w/ IDE card mkl838 Linux - General 1 03-06-2005 09:01 PM
SCSI slow? jago25_98 Linux - Hardware 2 12-25-2004 11:29 PM
dual boot when linux on 1 drive, win on other drive, both scsi? nornad Red Hat 3 04-08-2004 08:44 AM
additional scsi drive setup-not boot drive serat Linux - Newbie 3 04-03-2004 11:44 AM

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

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