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