* SCSI bus/disk problem? - slow disk
@ 1998-02-18 3:44 Mark Brown
0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 1998-02-18 3:44 UTC (permalink / raw)
Hi,
Having discovered that there is no difference between the Personal
Workstation 'au series' and 'a series' - it comes with both BOTH SRM
and AlphaBios installed and changing an environment variable in either
switches to the other - I am now booting with AlphaBios.
However the scsi disk is extemely slow (4.1GB Quantum UW with Qlogic
(PCI) controller). A process sits around for ages apparently waiting
for the disk to respond - there is no load on the system.
eg to dd a 100MB file to /dev/null takes <2 secs process time but
about 135 secs real time!! The same operation on the same box with
Digital Unix took <10secs real time (and about 1 sec total process
time).
This is slower than linux on a 120MHz pentium with an old IDE disk.
More importantly dumping from the SCSI disk is much slower than dumping
from the IDE CDROM on the Alpha! by a factor of 3!!
This is using RH5.0, it is the same using the Miata kernel from the
RH CD and with one I compiled (from the RH sources).
Other possibly relevent info:
There is a long pause (about 30secs) during start up after the line
'Mounting local file systems' which is not very surprising given the
slowness of the disk. It then complains about /proc being already
mounted for some reason when it tries to mount it here via the last line
of /etc/fstab.
The only other other strange thing I see during startup is
Feb 18 11:44:28 angst kernel: kernel: unaligned trap at
fffffc000042a5c4: fffffc000029e4e1 29 16
Feb 18 11:44:28 angst kernel: kernel: unaligned trap at
fffffc000042a5c4: fffffc000029e4e1 29 16
I don't know what this is about?
Does this behaviour sound familiar to anyone?
Any suggestions?
Mark Brown.
PS the SCSI driver/disk info from the startup log looks like:
Feb 18 11:44:28 angst kernel: qlogicisp : new isp1020 revision ID (5)
Feb 18 11:44:28 angst kernel: scsi0 : QLogic ISP1020 SCSI on PCI bus 1
device 9 irq 0 base 0x9000
Feb 18 11:44:28 angst kernel: scsi : 1 host.
Feb 18 11:44:28 angst kernel: Vendor: DEC Model: RZ1CC-BA (C)
DEC Rev: 883F
Feb 18 11:44:28 angst kernel: Type:
Direct-Access ANSI SCSI revision: 02
Feb 18 11:44:28 angst kernel: Detected scsi disk sda at scsi0, channel
0, id 0, lun 0
Feb 18 11:44:28 angst kernel: scsi : detected 1 SCSI disk total.
Feb 18 11:44:28 angst kernel: SCSI device sda: hdwr sector= 512 bytes.
Sectors= 8380080 [4091 MB] [4.1 GB]
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <34EA590E.E633AE15@psychology.adelaide.edu.au>]
* Re: SCSI bus/disk problem? - slow disk
[not found] <34EA590E.E633AE15@psychology.adelaide.edu.au>
@ 1998-02-18 4:06 ` Jeffrey Demaagd
1998-02-18 10:17 ` Loic Prylli
1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey Demaagd @ 1998-02-18 4:06 UTC (permalink / raw)
> Having discovered that there is no difference between the Personal
> Workstation 'au series' and 'a series' - it comes with both BOTH SRM
> and AlphaBios installed and changing an environment variable in either
> switches to the other - I am now booting with AlphaBios.
Teeny point - I've read that the 'u' has something to do with Unix -
wether it is a licenced DU box or it includes firmware not found in the
'a' box, I don't remember.
Of course, the source that I remember this from may be speaking from the
wrong end of said persons body.
Sorry for going off track here.
Jeff D.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread* SCSI bus/disk problem? - slow disk
[not found] <34EA590E.E633AE15@psychology.adelaide.edu.au>
1998-02-18 4:06 ` Jeffrey Demaagd
@ 1998-02-18 10:17 ` Loic Prylli
1 sibling, 0 replies; 3+ messages in thread
From: Loic Prylli @ 1998-02-18 10:17 UTC (permalink / raw)
Mark Brown writes:
> However the scsi disk is extemely slow (4.1GB Quantum UW with Qlogic
> (PCI) controller). A process sits around for ages apparently waiting
> for the disk to respond - there is no load on the system.
> eg to dd a 100MB file to /dev/null takes <2 secs process time but
> about 135 secs real time!! The same operation on the same box with
> Digital Unix took <10secs real time (and about 1 sec total process
> time).
I had this problem some time ago, the problem is that the irq of the
scsi controller is not detected correctly by the linux kernel. It
binds it to irq 0, the only very strange thing is that it works at
all!! (maybe irq0 is the timer interrupt, so the scsi interrupt
handler is called at each tick instead of as soon as an scsi request
is completed, that could explain the slowness).
Here is what I have understood (for 2.0.3x, I have not looked at
2.1.x): The PWS have two PCI bus on motherboard, the SCSI controller
is on the second one, there is code in bios32.c to find the number of
the interrupt depending on a "global slot number", computed in
function of the PCI slot number, and the PCI bus of the device. For
device on the second PCI bus you have to add 5 to the PCI slot number
to find the "global slot number".
To differentiate between devices on the second PCI bus and PCI bus
behind other add-on bridge that could have been added, the comparison
PCI_SLOT(dev->bus->self->devfn) == 8 is hardcoded in the code, which
assume the PCI bridge is on PCI slot 8. Perhaps on previous PWS it was
true, but on mine and probably on yours, the bridge is in PCI slot 20
(as reported by /proc/pci):
Bus 0, device 20, function 0:
PCI bridge: DEC DC21052 (rev 2).
So I have change the code to determine if a device is on the second
PCI bus. Here is the small patch that should solve your problem:
--- linux/arch/alpha/kernel/bios32.c.std Sun Jan 18 12:10:59 1998
+++ linux/arch/alpha/kernel/bios32.c Sun Jan 18 12:10:59 1998
@@ -756,7 +756,7 @@
/* follow the chain of bridges, swizzling as we go */
#if defined(CONFIG_ALPHA_MIATA)
/* check first for the built-in bridge */
- if (PCI_SLOT(dev->bus->self->devfn) == 8) {
+ if ( PCI_SLOT(dev->bus->self->devfn) == 20 || PCI_SLOT(dev->bus->self->devfn) == 8) {
slot = PCI_SLOT(dev->devfn) + 5;
#if 0
printk("MIATA: bus 1 slot %d pin %d irq %d "
Best regards,
Loic
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-02-18 10:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-18 3:44 SCSI bus/disk problem? - slow disk Mark Brown
[not found] <34EA590E.E633AE15@psychology.adelaide.edu.au>
1998-02-18 4:06 ` Jeffrey Demaagd
1998-02-18 10:17 ` Loic Prylli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox