3ware 9550SX problems - mke2fs incredibly slow writing last third of inode tables
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Alex Bligh - linux-kernel
All seems to go well until I try and do mke2fs. This appears to work, and tries to write the inode tables. However, at (about) 3400 inodes (of 11176), it slows to a crawl, writing one table every 10 seconds. strace shows it is still running, and no errors are being reported. However, it seems very sick.
Do you have cache turned on or off? If it's off, try turning it on.
Quoted 19 lines
No debug messages indicating any errors.
The only other clue as to what may be wrong is in the boot sequence. I see lots of bad LUN messages (detail below). However, it does appear to be detecting the disks right in the end.
Anyone got any ideas?
Oct 30 20:09:09 localhost kernel: [ 138.688249] /dev/scsi/host4/bus0/target0/lun0: p1 < p5 > Oct 30 20:09:09 localhost kernel: [ 138.712496] Attached scsi disk sdb at scsi4, channel 0, id 0, lun 0 Oct 30 20:09:09 localhost kernel: [ 138.712814] scsi: On host 4 channel 0 id 0 only 511 (max_scsi_report_luns) of 214715501 luns reported, try increasing max_scsi_report_luns. Oct 30 20:09:09 localhost kernel: [ 138.712817] scsi: host 4 channel 0 id 0
Quoted 1 line
lun
0x383438203636202dhas a LUN larger than currently supported.
There were some changes to scsi_scan.c between 2.6.12 and 2.6.14 that seem to have fixed this issue. Reproduce with 2.6.14.
-Adam
Adam,
Quoted 7 lines
Quoted 5 lines
All seems to go well until I try and do mke2fs. This appears to work, and tries to write the inode tables. However, at (about) 3400 inodes (of 11176), it slows to a crawl, writing one table every 10 seconds. strace shows it is still running, and no errors are being reported. However, it seems very sick.
Do you have cache turned on or off? If it's off, try turning it on.
On. I started again (deleted the units etc.) which I'd done before. I am not sure quite what I did different this time. Now I get 270Mb/s on dbench, 100Mb/s (approx) on a solid contiguous write (dd), which is well into the field of uninspiring but not as daft as 7Mb/s. I had rather expected that h/w RAID 5 would give me faster reads, and only slightly degraded writes, compared to a single disk of the same type plugged into the motherboard SATA.
However, dbench puts the (dual opteron 275) machine into 99% system state. Is that normal? Surely it should be in i/o wait.
I /think/ what had happened is this: When I press F8 to exit the BIOS, it did not initialize the array (this is in accordance with the manual, it being deferred). Despite leaving the machine idle in the O/S for 2 days, it didn't start initializing the array. Running the mkfs started the initialization (would that make sense)? The second time I ran mkfs, I may have already (somehow) triggered it to start earlier.
I shall try and work out some soak test I can run on it this w/e.
--
Alex Bligh
Quoted 23 lines · Alex Bligh - linux-kernel
Adam,
Quoted 8 lines
Quoted 5 lines
All seems to go well until I try and do mke2fs. This appears to work, and tries to write the inode tables. However, at (about) 3400 inodes (of 11176), it slows to a crawl, writing one table every 10 seconds. strace shows it is still running, and no errors are being reported. However, it seems very sick.
Do you have cache turned on or off? If it's off, try turning it on.
On. I started again (deleted the units etc.) which I'd done before. I am not sure quite what I did different this time. Now I get 270Mb/s on dbench, 100Mb/s (approx) on a solid contiguous write (dd), which is well into the field of uninspiring but not as daft as 7Mb/s. I had rather expected that h/w RAID 5 would give me faster reads, and only slightly degraded writes, compared to a single disk of the same type plugged into the motherboard SATA.
However, dbench puts the (dual opteron 275) machine into 99% system state. Is that normal? Surely it should be in i/o wait.
Quoted 8 lines
I /think/ what had happened is this: When I press F8 to exit the BIOS, it did not initialize the array (this is in accordance with the manual, it being deferred). Despite leaving the machine idle in the O/S for 2 days, it didn't start initializing the array. Running the mkfs started the initialization (would that make sense)? The second time I ran mkfs, I may have already (somehow) triggered it to start earlier.
I shall try and work out some soak test I can run on it this w/e.
This is what I reported earlier and is the same behavior I am seeing on he 9500. I don't think its related to the firmwae, but something in the driver because I can reproduce it on 8000 series controllers as well. What's common between the two is it's on a 2.6.9 kernel with the drivers. Eventually, the init proceeds and completes, but it's related to the INIT state not getting tripped into running.
Jeff
Quoted 9 lines
Signature · 7 lines
-- Alex Bligh - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
* Alex Bligh:
Quoted 8 lines
I /think/ what had happened is this: When I press F8 to exit the BIOS, it did not initialize the array (this is in accordance with the manual, it being deferred). Despite leaving the machine idle in the O/S for 2 days, it didn't start initializing the array. Running the mkfs started the initialization (would that make sense)? The second time I ran mkfs, I may have already (somehow) triggered it to start earlier.
I shall try and work out some soak test I can run on it this w/e.
Please check the write cache settings and report the results. (There's a closed-source command line utility which can report the status in an unambiguous way.)
If the system doesn't wait on I/O, this means that all I/O is cached by the controller, which in turn suggests that the write cache is turned on (with obvious consequences).