Skip to contentSkip to conversation

hdparm and disc errors

DISCUSSION Jiri Masik 2 participants 3 messages Sep 21, 2001 – Sep 24, 2001

lore
Share & tools
lore

Jiri Masik

author
#0 lore raw

Hi,

I've been using hdparm -a16 -u1 /dev/hda (internal disc, Pismo) in attempt to speed up my jobs analyzing large amounts of data (~1GB). The jobs were utilizing just small fraction of CPU (20%) while spending most of the time in disc-wait state. I thought this might improve the performance a bit and for a long time there were no problems with older kernels (2.2 series and first versions of 2.4). However I'm getting disc errors nowadays.

I've been running version 2.4.8-ben0 (root@pbuk) (gcc version 2.95.4 20010721 (Debian prerelease)) #2 Wed Aug 15 13:23:41 CEST 2001 for the last month mostly without touching the disc with hdparm and haven't noticed any malfunction of the disc (I have also run badblocks many times). When hdparm -a16 -u1 is invoked high disc load leads to the following disc errors quite often

Sep 18 22:42:06 localhost kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Sep 18 22:42:06 localhost kernel: hda: dma_intr: error=0x40 { UncorrectableError }, CHS=45642/0/88, sector=99376
Sep 18 22:42:06 localhost kernel: end_request: I/O error, dev 03:0d (hda), sector 99376

with about 10 faulty sectors reported.

Also moving back to 2.2 kernel there are no disc problems either (even with hdparm).

Do you think it is a real disc failure or is anything wrong with the hdparm setting? Is the unmasking dangerous for Pismo? Thanks,
Jiri

/dev/hda:

 multcount    =  0 (off)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)

geometry = 12416/15/63, sectors = 11733120, start = 0

Model=BI-MADAR2-6000 0 , FwRev=RAA25AA1, SerialNo= A 0FFAA02909
Config={ SoftSect DTR>5Mbs RotSpdTol>.5% dStbOff FmtGapReq } RawCHS=32816/3840/16128, TrkSize=0, SectSize=0, ECCbytes=1024 BuffType=768, BuffSize=8705kB, MaxMultSect=16, MultSect=off
(maybe): CurCHS=32816/3840/16128, CurSects=-2146913536, LBA=yes, LBAsects=-2146913536 IORDY=on/off
PIO modes: pio0 pio1 pio2
DMA modes: ***

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines

Do you think it is a real disc failure or is anything wrong with the hdparm setting? Is the unmasking dangerous for Pismo?

That's weird. Note that there are chances that 2.2 lockup on such IDE errors.

The driver did evolve slightly, but not in a way that explains your problem.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

author
#2 lore raw
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 2 lines

Do you think it is a real disc failure or is anything wrong with the hdparm setting? Is the unmasking dangerous for Pismo?

That's weird. Note that there are chances that 2.2 lockup on such IDE errors.

The driver did evolve slightly, but not in a way that explains your problem.

Ben.

Hi Ben,

it does not happen with 2.2 at all. I think there was a change in the driver before 2.4.8-ben0. This is the first kernel I tried which actually reports the error. Before that I had 2.4.7-ben0 and 2.4.6-pre8 which were crashing without anything reported. I guess it was caused by the disc as well as the crash was accompanied by the sound of repeated access to a faulty floppy disc.

Jiri

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/