View previous topic :: View next topic |
Author |
Message |
Chineseyes n00b
Joined: 22 Oct 2003 Posts: 49
|
Posted: Wed Oct 22, 2003 3:32 am Post subject: raid 0 and general ide drive problems |
|
|
I have 3 120 WD 8MB cache drives in a raid 0 array and an HP ide cd-burner anytime that I perform any kind of drive operation (read/write from disk or read/write to cd) my proc usage goes damn near 80% and my desktop lags to the point where my machine is useless. I have never had these problems with any other OS freebsd, netbsd, debian, or mandrake so I am not sure exactly what the problem is.
I am using the gaming-sources kernel and I played around with hdparm settings and kernel options with no luck I have a more than powerful enoguh cpu and plenty of ram. Is there any reason that this happen that I might not have thought of and if there are any suggestions form anyone I would greatly appreciate it.
here is my dmseg output and hdparm settings in case it helps
On node 0 totalpages: 196592
zone(0): 4096 pages.
zone(1): 192496 pages.
zone(2): 0 pages.
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
Processor #0 Pentium(tm) Pro APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Processors: 1
Kernel command line: root=/dev/md0 hde=ide-scsi hdf=ide-scsi
ide_setup: hde=ide-scsi
ide_setup: hdf=ide-scsi
Initializing CPU#0
Detected 1470.058 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 2929.45 BogoMIPS
Memory: 769404k/786368k available (2482k kernel code, 12352k reserved, 695k data, 148k init, 0k highmem)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
Buffer-cache hash table entries: 65536 (order: 6, 262144 bytes)
Page-cache hash table entries: 262144 (order: 8, 1048576 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: Common caps: 0383fbff c1c3fbff 00000000 00000000
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU0: AMD Athlon(tm) XP 1700+ stepping 01
per-CPU timeslice cutoff: 731.14 usecs.
task migration cache decay timeout: 10 msecs.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Error: only one processor found.
ENABLING IO-APIC IRQs
Setting 2 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 2 ... ok.
init IO_APIC IRQs
IO-APIC (apicid-pin) 2-0, 2-5, 2-11, 2-20, 2-23 not connected.
..TIMER: vector=0x31 pin1=2 pin2=0
number of MP IRQ sources: 25.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................
IO APIC #2......
.... register #00: 02000000
....... : physical APIC id: 02
.... register #01: 00178003
....... : max redirection entries: 0017
....... : PRQ implemented: 1
....... : IO APIC version: 0003
WARNING: unexpected IO-APIC, please mail
to linux-smp@vger.kernel.org
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
00 000 00 1 0 0 0 0 0 0 00
01 001 01 0 0 0 0 0 1 1 39
02 001 01 0 0 0 0 0 1 1 31
03 001 01 0 0 0 0 0 1 1 41
04 001 01 0 0 0 0 0 1 1 49
05 000 00 1 0 0 0 0 0 0 00
06 001 01 0 0 0 0 0 1 1 51
07 001 01 0 0 0 0 0 1 1 59
08 001 01 0 0 0 0 0 1 1 61
09 001 01 0 0 0 0 0 1 1 69
0a 001 01 0 0 0 0 0 1 1 71
0b 000 00 1 0 0 0 0 0 0 00
0c 001 01 0 0 0 0 0 1 1 79
0d 001 01 0 0 0 0 0 1 1 81
0e 001 01 0 0 0 0 0 1 1 89
0f 001 01 0 0 0 0 0 1 1 91
10 001 01 1 1 0 1 0 1 1 99
11 001 01 1 1 0 1 0 1 1 A1
12 001 01 1 1 0 1 0 1 1 A9
13 001 01 1 1 0 1 0 1 1 B1
14 000 00 1 0 0 0 0 0 0 00
15 001 01 1 1 0 1 0 1 1 B9
16 001 01 1 1 0 1 0 1 1 C1
17 000 00 1 0 0 0 0 0 0 00
IRQ to pin mappings:
IRQ0 -> 0:2
IRQ1 -> 0:1
IRQ3 -> 0:3
IRQ4 -> 0:4
IRQ6 -> 0:6
IRQ7 -> 0:7
IRQ8 -> 0:8
IRQ9 -> 0:9
IRQ10 -> 0:10
IRQ12 -> 0:12
IRQ13 -> 0:13
IRQ14 -> 0:14
IRQ15 -> 0:15
IRQ16 -> 0:16
IRQ17 -> 0:17
IRQ18 -> 0:18
IRQ19 -> 0:19
IRQ21 -> 0:21
IRQ22 -> 0:22
.................................... done.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1469.9075 MHz.
..... host bus clock speed is 267.2558 MHz.
cpu: 0, clocks: 2672558, slice: 1336279
CPU0<T0:2672544,T1:1336256,D:9,S:1336279,C:2672558>
migration_task 0 on cpu=0
PCI: PCI BIOS revision 2.10 entry at 0xfb350, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
PCI->APIC IRQ transform: (B0,I9,P0) -> 17
PCI->APIC IRQ transform: (B0,I10,P0) -> 18
PCI->APIC IRQ transform: (B0,I11,P0) -> 19
PCI->APIC IRQ transform: (B0,I12,P0) -> 18
PCI->APIC IRQ transform: (B0,I12,P0) -> 18
PCI->APIC IRQ transform: (B0,I16,P0) -> 21
PCI->APIC IRQ transform: (B0,I16,P1) -> 21
PCI->APIC IRQ transform: (B0,I16,P2) -> 21
PCI->APIC IRQ transform: (B0,I16,P3) -> 19
PCI->APIC IRQ transform: (B0,I17,P0) -> 22
PCI->APIC IRQ transform: (B0,I17,P2) -> 22
PCI->APIC IRQ transform: (B1,I0,P0) -> 16
PCI: Via IRQ fixup for 00:10.0, from 11 to 5
PCI: Via IRQ fixup for 00:10.1, from 11 to 5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
SGI XFS snapshot 2.4.20-2003-01-14_00:43_UTC with ACLs, quota, no debug enabled
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-0 with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 48
CMD680: chipset revision 2
CMD680: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xa000-0xa007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xa008-0xa00f, BIOS settings: hdc:pio, hdd:pio
VP_IDE: IDE controller on PCI bus 00 dev 89
VP_IDE: detected chipset, but driver not compiled in!
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide2: BM-DMA at 0xbc00-0xbc07, BIOS settings: hde:DMA, hdf:DMA
ide3: BM-DMA at 0xbc08-0xbc0f, BIOS settings: hdg:pio, hdh:pio
hda: IC35L120AVVA07-0, ATA DISK drive
hdc: WDC WD1200JB-00DUA3, ATA DISK drive
hdd: WDC WD1200JB-00DUA3, ATA DISK drive
hde: Hewlett-Packard CD-Writer Plus 9100, ATAPI CD/DVD-ROM drive
hdf: CD-RW 48X24, ATAPI CD/DVD-ROM drive
ide0 at 0x9000-0x9007,0x9402 on irq 17
ide1 at 0x9800-0x9807,0x9c02 on irq 17
ide2 at 0x1f0-0x1f7,0x3f6 on irq 14
blk: queue c04aa724, I/O limit 4095Mb (mask 0xffffffff)
hda: 241254720 sectors (123522 MB) w/1863KiB Cache, CHS=239340/16/63, (U)DMA
blk: queue c04aaa90, I/O limit 4095Mb (mask 0xffffffff)
hdc: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, (U)DMA
blk: queue c04aabe0, I/O limit 4095Mb (mask 0xffffffff)
hdd: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, (U)DMA
ide-floppy driver 0.99.newide
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 >
/dev/ide/host0/bus1/target0/lun0: p1
/dev/ide/host0/bus1/target1/lun0: p1
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 690M
agpgart: Detected Via Apollo Pro KT400 chipset
agpgart: AGP aperture is 128M @ 0xd0000000
[drm] Initialized tdfx 1.0.0 20010216 on minor 0
[drm] AGP 0.99 on VIA Apollo KT400 @ 0xd0000000 128MB
[drm] Initialized radeon 1.1.1 20010405 on minor 1
[drm] AGP 0.99 on VIA Apollo KT400 @ 0xd0000000 128MB
[drm] Initialized i810 1.2.0 20010920 on minor 2
ide-floppy driver 0.99.newide
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB UHCI at I/O 0xb000, IRQ 21
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: USB UHCI at I/O 0xb400, IRQ 21
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: USB UHCI at I/O 0xb800, IRQ 21
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 2246.000 MB/sec
32regs : 1658.000 MB/sec
pIII_sse : 3488.800 MB/sec
pII_mmx : 3445.200 MB/sec
p5_mmx : 4420.000 MB/sec
raid5: using function: pIII_sse (3488.800 MB/sec)
md: multipath personality registered as nr 7
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
[events: 0000002f]
[events: 0000002f]
[events: 0000002f]
md: autorun ...
md: considering ide/host0/bus1/target1/lun0/part1 ...
md: adding ide/host0/bus1/target1/lun0/part1 ...
md: adding ide/host0/bus1/target0/lun0/part1 ...
md: adding ide/host0/bus0/target0/lun0/part5 ...
md: created md0
md: bind<ide/host0/bus0/target0/lun0/part5,1>
md: bind<ide/host0/bus1/target0/lun0/part1,2>
md: bind<ide/host0/bus1/target1/lun0/part1,3>
md: running: <ide/host0/bus1/target1/lun0/part1><ide/host0/bus1/target0/lun0/part1><ide/host0/bus0/target0/lun0/part5>
md: ide/host0/bus1/target1/lun0/part1's event counter: 0000002f
md: ide/host0/bus1/target0/lun0/part1's event counter: 0000002f
md: ide/host0/bus0/target0/lun0/part5's event counter: 0000002f
md0: max total readahead window set to 3072k
md0: 3 data-disks, max readahead per data-disk: 1024k
raid0: looking at ide/host0/bus0/target0/lun0/part5
raid0: comparing ide/host0/bus0/target0/lun0/part5(120371712) with ide/host0/bus0/target0/lun0/part5(120371712)
raid0: END
raid0: ==> UNIQUE
raid0: 1 zones
raid0: looking at ide/host0/bus1/target0/lun0/part1
raid0: comparing ide/host0/bus1/target0/lun0/part1(117218048) with ide/host0/bus0/target0/lun0/part5(120371712)
raid0: NOT EQUAL
raid0: comparing ide/host0/bus1/target0/lun0/part1(117218048) with ide/host0/bus1/target0/lun0/part1(117218048)
raid0: END
raid0: ==> UNIQUE
raid0: 2 zones
raid0: looking at ide/host0/bus1/target1/lun0/part1
raid0: comparing ide/host0/bus1/target1/lun0/part1(117218048) with ide/host0/bus0/target0/lun0/part5(120371712)
raid0: NOT EQUAL
raid0: comparing ide/host0/bus1/target1/lun0/part1(117218048) with ide/host0/bus1/target0/lun0/part1(117218048)
raid0: EQUAL
raid0: FINAL 2 zones
raid0: zone 0
raid0: checking ide/host0/bus0/target0/lun0/part5 ... contained as device 0
(120371712) is smallest!.
raid0: checking ide/host0/bus1/target0/lun0/part1 ... contained as device 1
(117218048) is smallest!.
raid0: checking ide/host0/bus1/target1/lun0/part1 ... contained as device 2
raid0: zone->nb_dev: 3, size: 351654144
raid0: current zone offset: 117218048
raid0: zone 1
raid0: checking ide/host0/bus0/target0/lun0/part5 ... contained as device 0
(120371712) is smallest!.
raid0: checking ide/host0/bus1/target0/lun0/part1 ... nope.
raid0: checking ide/host0/bus1/target1/lun0/part1 ... nope.
raid0: zone->nb_dev: 1, size: 3153664
raid0: current zone offset: 120371712
raid0: done.
raid0 : md_size is 354807808 blocks.
raid0 : conf->smallest->size is 3153664 blocks.
raid0 : nb_zone is 113.
raid0 : Allocating 904 bytes for hash.
md: updating md0 RAID superblock on device
md: ide/host0/bus1/target1/lun0/part1 [events: 00000030]<6>(write) ide/host0/bus1/target1/lun0/part1's sb offset: 117218176
md: ide/host0/bus1/target0/lun0/part1 [events: 00000030]<6>(write) ide/host0/bus1/target0/lun0/part1's sb offset: 117218176
md: ide/host0/bus0/target0/lun0/part5 [events: 00000030]<6>(write) ide/host0/bus0/target0/lun0/part5's sb offset: 120371712
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ds: no socket drivers loaded!
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting. Commit interval 5 seconds
EXT3-fs: md(9,0): orphan cleanup on readonly fs
ext3_orphan_cleanup: deleting unreferenced inode 13516879
ext3_orphan_cleanup: deleting unreferenced inode 13516874
EXT3-fs: md(9,0): 2 orphan inodes deleted
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 148k freed
EXT3 FS 2.4-0.9.19, 19 August 2002 on md(9,0), internal journal
8139too Fast Ethernet driver 0.9.26
eth0: RealTek RTL8139 Fast Ethernet at 0xf0834000, 00:20:18:8b:b3:30, IRQ 18
eth0: Identified 8139 chip type 'RTL-8139A'
0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4496 Wed Jul 16 19:03:09 PDT 2003
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: HP Model: CD-Writer+ 9100 Rev: 1.0c
Type: CD-ROM ANSI SCSI revision: 02
Vendor: ATAPI Model: CD-RW 48X24 Rev: D.LC
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
sr1: mmc-3 profile capable, current profile: 9h
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.
sr1: mmc-3 profile: 0h
sr1: mmc-3 profile: 9h
hdparm for each drive in the raid 0 array:
bash-2.05b# hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 239340/16/63, sectors = 241254720, start = 0
/dev/hdc:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 14593/255/63, sectors = 234441648, start = 0
/dev/hdd:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 14593/255/63, sectors = 234441648, start = 0
performance of the raid 0 array via hdparm:
Timing buffer-cache reads: 1140 MB in 2.00 seconds = 570.00 MB/sec
Timing buffered disk reads: 14 MB in 3.72 seconds = 3.76 MB/sec
As you can see this is pretty low for a 3 disk raid array any help would appreciate it |
|
Back to top |
|
|
Chineseyes n00b
Joined: 22 Oct 2003 Posts: 49
|
Posted: Thu Oct 23, 2003 7:01 pm Post subject: figured it out |
|
|
In case anyone else has a raid/ide controller with the sil0680 chipset the drivers for it are terrible and you will get a significant loss in performance using them either with the cmd680 drivers from the 2.4 kernels or the sil680 drivers from the 2.6 kernels
as evidence my performance with the cmd680 drivers on the sil0680 chipset form the 2.4 kernel
Timing buffer-cache reads: 1140 MB in 2.00 seconds = 570.00 MB/sec
Timing buffered disk reads: 14 MB in 3.72 seconds = 3.76 MB/sec
my performance with the sil680 drivers on the sil0680 chipset fromt he 2.6 kernel
Timing buffer-cache reads: 1100 MB in 2.00 seconds = 550.00 MB/sec
Timing buffered disk reads: 11 MB in 3.00 seconds = 3.67 MB/sec
my performance with the the the VIA82CXXX drivers with my VIA chipset
Timing buffer-cache reads: 1220 MB in 2.00 seconds = 610.00 MB/sec
Timing buffered disk reads: 218 MB in 3.00 seconds = 72.67 MB/sec
yes thats right a performance increase of over 70 MB/sec in buffered disk reads!!
and 40 to 60 MB/sec in buffer-cache reads. Either the hardware stinks or the drivers do. I don't have the time to figure out which but you decide just a heads up for anyone thinking of buying a card with the sil0680 exclusively for a linux system they work great for windows but for linux no way good thing i am still within my 30 day return period. |
|
Back to top |
|
|
Martian21 n00b
Joined: 21 Aug 2003 Posts: 26
|
Posted: Sat Oct 25, 2003 8:33 pm Post subject: I think I see your problem |
|
|
I think the problem you are having is right here:
Quote: | Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 48
CMD680: chipset revision 2
CMD680: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xa000-0xa007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xa008-0xa00f, BIOS settings: hdc:pio, hdd:pio
VP_IDE: IDE controller on PCI bus 00 dev 89
VP_IDE: detected chipset, but driver not compiled in!
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later |
Looks like you don't have the proper chipset drivers for your IDE controller enabled in your kernel. It dosn't matter what settings you use with hdparm if you don't have proper chipset drivers.
Hope this helps,
Marvin |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|