hdparm -i /dev/hda produces identical results under 2.4.24 and 2.6.7:—
linverse at KOS-MOS-2.6.7:~$ sudo hdparm -i /dev/hda
/dev/hda:
Model=HITACHI_DK23EB-40, FwRev=00K0A0C0, SerialNo=727825
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78140160
IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3:
- signifies the current active mode
linverse at KOS-MOS-2.4.24:~$ sudo hdparm -i /dev/hda
Password:
/dev/hda:
Model=HITACHI_DK23EB-40, FwRev=00K0A0C0, SerialNo=727825
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78140160
IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3:
- signifies the current active mode
hdparm -t -T /dev/hda does show 2.4.24 having a moderate advantage, but
nothing on the order of the problems I have been seeing.
linverse at KOS-MOS-2.6.7:~$ sudo hdparm -t -T /dev/hda
/dev/hda:
Timing buffer-cache reads: 1132 MB in 2.01 seconds = 564.39 MB/sec
Timing buffered disk reads: 84 MB in 3.06 seconds = 27.49 MB/sec
linverse at KOS-MOS-2.4.24:~$ sudo hdparm -t -T /dev/hda
/dev/hda:
Timing buffer-cache reads: 1276 MB in 2.00 seconds = 638.00 MB/sec
Timing buffered disk reads: 84 MB in 3.05 seconds = 27.54 MB/sec
I would expect the program to draw perfectly fast (though load things
slowly) if hda were slow under 2.4.24, because I’m loading things in
seperate threads, so the main thread is free to draw as quickly as
possible, without waiting for the hard drive. In 2.6.7, though, it’s
exactly as if I were loading from the main thread.
Does anybody know how §threads are supposed to be handled with 2.4 vs
2.6, with respect to blocking the entire process on disk access? I can’t
imagine they’d intentionally change this for the worse. Does anybody
else, with certainty, NOT have this problem with 2.6?
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040623/2b8ffa49/attachment.pgp