Gentoo Archives: gentoo-user

From: David Bourgeois <jaguarondi.c@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Extremely slow sata with IDE interface: Intel Corporation 82801I (ICH9 Family)
Date: Tue, 30 Dec 2008 13:22:58
Message-Id: 39b691a00812300522g4013e7b1i2035e3ab69635569@mail.gmail.com
1 Hi,
2
3 I have much trouble to get sata working with an Intel 82801I (ICH9 Family)
4 interface from a Compaq dc5800. The minimal CD 2008.0 uses the ata driver
5 and not sata so harddisks are registered as /dev/hda. After installation, my
6 custom kernel does the same and I had to disable ata completely (CONFIG_IDE)
7 before the sata driver was loaded correctly. (followed thread:
8 http://bugs.gentoo.org/show_bug.cgi?id=184825)
9
10 Now the sata driver loads correctly (it seems) but my hardisk is extremely
11 slow:
12 /dev/sda:
13 Timing cached reads: 3746 MB in 2.00 seconds = 1874.11 MB/sec
14 Timing buffered disk reads: 6 MB in 3.20 seconds = 1.88 MB/sec
15
16 while when CONFIG_IDE is set, I have the following performace with the ata
17 driver:
18 /dev/hda:
19 Timing cached reads: 7550 MB in 2.00 seconds = 3779.94 MB/sec
20 Timing buffered disk reads: 14 MB in 3.46 seconds = 4.05 MB/sec
21
22 Any idea on what I can try to do next? Some more info on my setting below.
23
24 Thanks for any suggestion,
25 David
26
27 My .config is at http://pastebin.ca/1296359
28
29 grub.conf:
30 title Gentoo Linux 2.6.26-r4
31 root (hd0,1)
32 kernel /boot/kernel-2.6.26-gentoo-r4 root=/dev/sda5
33
34 dmesg:
35 3ware Storage Controller device driver for Linux v1.26.02.002.
36 Driver 'sd' needs updating - please use bus_type methods
37 Driver 'sr' needs updating - please use bus_type methods
38 ata_piix 0000:00:1f.2: version 2.12
39 ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 18 (level, low) -> IRQ 18
40 ata_piix 0000:00:1f.2: MAP [ P0 -- P1 -- ]
41 PCI: Setting latency timer of device 0000:00:1f.2 to 64
42 scsi0 : ata_piix
43 scsi1 : ata_piix
44 ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x1200 irq 14
45 ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0x1208 irq 15
46 ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
47 ata1.00: ATA-8: WDC WD1600AAJS-60B4A0, 02.03A02, max UDMA/100
48 ata1.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
49 ata1.00: configured for UDMA/100
50 ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
51 ata2.00: ATAPI: HL-DT-ST DVD-RAM GH15L, RA02, max UDMA/100
52 ata2.00: configured for UDMA/100
53 scsi 0:0:0:0: Direct-Access ATA WDC WD1600AAJS-6 02.0 PQ: 0 ANSI: 5
54 sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors (160042 MB)
55 sd 0:0:0:0: [sda] Write Protect is off
56 sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
57 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
58 DPO or FUA
59 sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors (160042 MB)
60 sd 0:0:0:0: [sda] Write Protect is off
61 sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
62 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
63 DPO or FUA
64 sda: sda1 sda2 sda3 sda4 < sda5 >
65 sd 0:0:0:0: [sda] Attached SCSI disk
66 sd 0:0:0:0: Attached scsi generic sg0 type 0
67 scsi 1:0:0:0: CD-ROM HL-DT-ST DVD-RAM GH15L RA02 PQ: 0 ANSI: 5
68 sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
69 Uniform CD-ROM driver Revision: 3.20
70 sr 1:0:0:0: Attached scsi CD-ROM sr0
71 sr 1:0:0:0: Attached scsi generic sg1 type 5
72 ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 18 (level, low) -> IRQ 18
73 ata_piix 0000:00:1f.5: MAP [ P0 -- P1 -- ]
74 PCI: Setting latency timer of device 0000:00:1f.5 to 64
75 scsi2 : ata_piix
76 scsi3 : ata_piix
77 ata3: SATA max UDMA/133 cmd 0x1258 ctl 0x1270 bmdma 0x1220 irq 18
78 ata4: SATA max UDMA/133 cmd 0x1260 ctl 0x1274 bmdma 0x1228 irq 18
79 ata3: SATA link down (SStatus 0 SControl 300)
80 ata4: SATA link down (SStatus 0 SControl 300)
81
82 # hdparm -I /dev/sda
83
84 /dev/sda:
85 ATA device, with non-removable media
86 Model Number: WDC WD1600AAJS-60B4A0
87 Serial Number: WD-WCAT22716601
88 Firmware Revision: 02.03A02
89 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5
90 Standards:
91 Supported: 8 7 6 5
92 Likely used: 8
93 Configuration:
94 Logical max current
95 cylinders 16383 16383
96 heads 16 16
97 sectors/track 63 63
98 --
99 CHS current addressable sectors: 16514064
100 LBA user addressable sectors: 268435455
101 LBA48 user addressable sectors: 312581808
102 device size with M = 1024*1024: 152627 MBytes
103 device size with M = 1000*1000: 160041 MBytes (160 GB)
104 cache/buffer size = 8192 KBytes
105 Capabilities:
106 LBA, IORDY(can be disabled)
107 Queue depth: 32
108 Standby timer values: spec'd by Standard, with device specific minimum
109 R/W multiple sector transfer: Max = 16 Current = 16
110 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
111 Cycle time: min=120ns recommended=120ns
112 PIO: pio0 pio1 pio2 pio3 pio4
113 Cycle time: no flow control=120ns IORDY flow control=120ns
114 Commands/features:
115 Enabled Supported:
116 * SMART feature set
117 Security Mode feature set
118 * Power Management feature set
119 * Write cache
120 * Look-ahead
121 * WRITE_BUFFER command
122 * READ_BUFFER command
123 * NOP cmd
124 * DOWNLOAD_MICROCODE
125 * 48-bit Address feature set
126 * Device Configuration Overlay feature set
127 * Mandatory FLUSH_CACHE
128 * FLUSH_CACHE_EXT
129 * SMART error logging
130 * SMART self-test
131 * General Purpose Logging feature set
132 * 64-bit World wide name
133 * WRITE_UNCORRECTABLE_EXT command
134 * Segmented DOWNLOAD_MICROCODE
135 * SATA-I signaling speed (1.5Gb/s)
136 * SATA-II signaling speed (3.0Gb/s)
137 * Native Command Queueing (NCQ)
138 * Phy event counters
139 DMA Setup Auto-Activate optimization
140 Device-initiated interface power management
141 * Software settings preservation
142 * SMART Command Transport (SCT) feature set
143 * SCT Long Sector Access (AC1)
144 * SCT LBA Segment Access (AC2)
145 * SCT Error Recovery Control (AC3)
146 * SCT Features Control (AC4)
147 * SCT Data Tables (AC5)
148 unknown 206[12] (vendor specific)
149 unknown 206[13] (vendor specific)
150 Security:
151 Master password revision code = 65534
152 supported
153 not enabled
154 not locked
155 frozen
156 not expired: security count
157 supported: enhanced erase
158 28min for SECURITY ERASE UNIT. 28min for ENHANCED SECURITY ERASE UNIT.
159 Logical Unit WWN Device Identifier: 50014ee1abeda4c4
160 NAA : 5
161 IEEE OUI : 0014ee
162 Unique ID : 1abeda4c4
163 Checksum: correct
164
165 lspci:
166 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
167 00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface
168 Controller (rev 02)
169 00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA IDE
170 Controller (rev 02)
171 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA
172 IDE Controller (rev 02)
173
174 Portage 2.1.6.2 (default/linux/x86/2008.0, gcc-4.1.2,
175 glibc-2.9_p20081201-r0, 2.6.26-gentoo-r4 i686)
176 =================================================================
177 System uname: Linux-2.6.26-gentoo-r4-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@
178 _3.00GHz-with-glibc2.0
179 Timestamp of tree: Mon, 29 Dec 2008 08:45:01 +0000
180 app-shells/bash: 3.2_p48
181 dev-java/java-config: 1.3.7-r1, 2.1.6-r1
182 dev-lang/python: 2.4.4-r14, 2.5.2-r8
183 dev-python/pycrypto: 2.0.1-r6
184 dev-util/cmake: 2.6.2
185 sys-apps/baselayout: 2.0.0
186 sys-apps/openrc: 0.4.0
187 sys-apps/sandbox: 1.2.18.1-r3
188 sys-devel/autoconf: 2.13, 2.63
189 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
190 sys-devel/binutils: 2.19
191 sys-devel/gcc-config: 1.4.0-r4
192 sys-devel/libtool: 1.5.26
193 virtual/os-headers: 2.6.27-r2
194 ACCEPT_KEYWORDS="x86"
195 CBUILD="i686-pc-linux-gnu"
196 CFLAGS="-O2 -march=prescott -msse3 -fomit-frame-pointer -pipe"
197 CHOST="i686-pc-linux-gnu"
198 CONFIG_PROTECT="/etc"
199 CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
200 /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
201 /etc/terminfo /etc/udev/rules.d"
202 CXXFLAGS="-O2 -march=prescott -msse3 -fomit-frame-pointer -pipe"
203 DISTDIR="/usr/portage/distfiles"
204 FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox
205 sfperms strict unmerge-orphans userfetch"
206 GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/
207 ftp://mirror.ovh.net/gentoo-distfiles/ http://de-mirror.org/distro/gentoo/
208 ftp://de-mirror.org/distro/gentoo/ "
209 LDFLAGS="-Wl,-O1"
210 LINGUAS="en"
211 MAKEOPTS="-j3"
212 PKGDIR="/usr/portage/packages"
213 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
214 --compress --force --whole-file --delete --stats --timeout=180
215 --exclude=/distfiles --exclude=/local --exclude=/packages"
216 PORTAGE_TMPDIR="/var/tmp"
217 PORTDIR="/usr/portage"
218 SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
219 USE="X a52 aac acl acpi alsa avahi bash-completion berkdb bzip2 cairo cdda
220 cdr cjk cli cracklib crypt cups dbus directfb dri dvb dvd dvdr encode exif
221 fbcon ffmpeg fglrx flac fortran gdbm gif gnome gphoto2 gpm gtk gtk2 hal
222 httpd ibitmap-fonts iconv imagemagick isdnlog jpeg ladspa matroska midi mmx
223 mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf
224 perl png ppds pppd python readline reflection samba session spl sqlite sse
225 ssl stream svg sysfs tcpd theora threads tiff truetype-fonts type1-fonts
226 unicode v4l v4l2 vim-syntax vorbis win32codecs x264 x86 xcomposite xorg xv
227 xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy
228 dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
229 linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
230 APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
231 authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
232 authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
233 disk_cache env expires ext_filter file_cache filter headers include info
234 log_config logio mem_cache mime mime_magic negotiation rewrite setenvif
235 speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
236 INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad
237 cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
238 USERLAND="GNU" VIDEO_CARDS="intel i810"
239 Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG,
240 LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
241 PORTDIR_OVERLAY

Replies