Gentoo Archives: gentoo-user

From: Florian Philipp <f.philipp@××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Absymal IDE performance with gentoo-sources-2.6.22 and why hda instead of sda?
Date: Wed, 11 Jul 2007 20:47:28
Message-Id: 200707111430.16675.f.philipp@addcom.de
In Reply to: [gentoo-user] Absymal IDE performance with gentoo-sources-2.6.22 and why hda instead of sda? by Alexander Skwar
1 Am Mittwoch 11 Juli 2007 10:01 schrieb Alexander Skwar:
2 > Hello.
3 >
4 > Yesterday, I installed gentoo-sources-2.6.22. When I now boot this new
5 > kernel, I notice that all of a sudden my SATA disk is addressed with
6 > /dev/hda, whereas it used to be addressed with /dev/sda in 2.6.21. Why's
7 > that?
8 >
9 > But much more important: The IDE performance is now extremely bad.
10 >
11 > ,----[ hdparm -tT /dev/hda, kernel 2.6.22 ]
12 >
13 > | /dev/hda:
14 > | Timing cached reads: 2414 MB in 2.00 seconds = 1208.28 MB/sec
15 > | Timing buffered disk reads: 8 MB in 3.99 seconds = 2.00 MB/sec
16 >
17 > `----
18 >
19 > With 2.6.21, it's A LOT faster:
20 >
21 > ,----[ hdparm -tT /dev/sda, kernel 2.6.21 ]
22 >
23 > | /dev/sda:
24 > | Timing cached reads: 2414 MB in 2.00 seconds = 1207.80 MB/sec
25 > | Timing buffered disk reads: 150 MB in 3.01 seconds = 49.76 MB/sec
26 >
27 > `----
28 >
29 > The drive is (is?) running with udma5 in both cases, according to
30 > hdparm:
31 >
32 > ,----[ hdparm -Him /dev/sda, kernel 2.6.21 ]
33 >
34 > | /dev/sda:
35 > | drive temperature (celsius) is: 42
36 > | drive temperature in range: yes
37 > | HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
38 > |
39 > | Model=Hitachi HTS721010G9SA00 , FwRev=MCZOC10H,
40 > | SerialNo= MPCZN7Y0H7E5VL Config={ HardSect NotMFM HdSw>15uSec Fixed
41 > | DTR>10Mbs }
42 > | RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
43 > | BuffType=DualPortCache, BuffSize=7538kB, MaxMultSect=16, MultSect=?8?
44 > | CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=195371568
45 > | IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
46 > | PIO modes: pio0 pio1 pio2 pio3 pio4
47 > | DMA modes: mdma0 mdma1 mdma2
48 > | UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
49 > | AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
50 > | Drive conforms to: ATA/ATAPI-7 T13 1532D revision 1:
51 > | ATA/ATAPI-2,3,4,5,6,7
52 > |
53 > | * signifies the current active mode
54 >
55 > `----
56 >
57 > ,----[ hdparm -Him /dev/hda, kernel 2.6.22 ]
58 >
59 > | /dev/hda:
60 > | drive temperature (celsius) is: 41
61 > | drive temperature in range: yes
62 > | multcount = 16 (on)
63 > |
64 > | Model=Hitachi HTS721010G9SA00, FwRev=MCZOC10H, SerialNo=MPCZN7Y0H7E5VL
65 > | Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
66 > | RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
67 > | BuffType=DualPortCache, BuffSize=7538kB, MaxMultSect=16, MultSect=16
68 > | CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=195371568
69 > | IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
70 > | PIO modes: pio0 pio1 pio2 pio3 pio4
71 > | DMA modes: mdma0 mdma1 mdma2
72 > | UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
73 > | AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
74 > | Drive conforms to: ATA/ATAPI-7 T13 1532D revision 1:
75 > | ATA/ATAPI-2,3,4,5,6,7
76 > |
77 > | * signifies the current active mode
78 >
79 > `----
80 >
81 > What do I have to do, so that the drive is fast in kernel 2.6.22 as
82 > well?
83 >
84 > I'm booting the 2.6.22 kernel with this entry in grub menu.lst:
85 >
86 > ,----[ kernel 2.6.22 ]
87 >
88 > | title Gentoo GNU/Linux (zuletzt gebauter Kernel mit hda)
89 > | root (hd0,2)
90 > | kernel /vmlinuz root=/dev/hda6 lapic libata.atapi_enabled=1
91 > | combined_mode=libata
92 >
93 > `----
94 >
95 > Kernel 2.6.21 is started with the following entry in grub:
96 >
97 > ,----[ kernel 2.6.21 ]
98 >
99 > | title Gentoo GNU/Linux (vorletzter gebauter Kernel)
100 > | root (hd0,2)
101 > | kernel /vmlinuz.old root=/dev/sda6 lapic libata.atapi_enabled=1
102 > | combined_mode=libata
103 >
104 > `----
105
106 I had the same problem on my laptop. You have to deactivate generic drivers in
107 your kernel. (Stuff like Generic ATA Support)

Replies