Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237791 - hdd perfomance low and strange message in dmesg
Summary: hdd perfomance low and strange message in dmesg
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 21:24 UTC by Enrique Domínguez
Modified: 2008-10-03 18:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrique Domínguez 2008-09-15 21:24:01 UTC
dmesg output (relevant):
...
Uniform Multi-Platform E-IDE driver
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ALI15X3: IDE controller (0x10b9:0x5229 rev 0xc4) at  PCI slot 0000:00:04.0
ACPI: Unable to derive IRQ for device 0000:00:04.0
ALI15X3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xd400-0xd407, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xd408-0xd40f, BIOS settings: hdc:DMA, hdd:PIO
Probing IDE interface ide0...
Switched to NOHz mode on CPU #0
hda: ST3250820A, ATA DISK drive
hdb: HL-DT-STDVD-RAM GSA-H54L, ATAPI CD/DVD-ROM drive
hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/100 mode selected
hdb: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hdb: UDMA/66 mode selected
Probing IDE interface ide1...
hdc: ST3250824A, ATA DISK drive
hdc: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/100 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: cannot use LBA48 DMA - PIO mode will be used for accessing sectors > 268435456
hda: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4
hdc: max request size: 128KiB
hdc: cannot use LBA48 DMA - PIO mode will be used for accessing sectors > 268435456
hdc: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63
hdc: cache flushes supported
 hdc: hdc1 hdc2
hdb: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
...
look at line saying: hdc: cannot use LBA48 DMA - PIO mode will be used for accessing sectors > 268435456
I updated my BIOS and able to recognize hdd on BIOS but same message reported in dmesg

I got that on another machines... Livecd report same problem

hdparm -Tt /dev/hdc output:
/dev/hdc:
 Timing cached reads:   388 MB in  2.01 seconds = 193.07 MB/sec
 Timing buffered disk reads:  142 MB in  3.03 seconds =  46.89 MB/sec
(I want to get something above 500MB/sec)

#lspci
00:00.0 Host bridge: ALi Corporation M1647 Northbridge [MAGiK 1 / MobileMAGiK 1] (rev 04)
00:01.0 PCI bridge: ALi Corporation PCI to AGP Controller
00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:04.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
00:05.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:06.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:07.0 ISA bridge: ALi Corporation M1533/M1535 PCI to ISA Bridge [Aladdin IV/V/V+]
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0c.0 Serial controller: Rockwell International HCF 56k Data/Fax Modem (rev 01)
00:11.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
01:00.0 VGA compatible controller: nVidia Corporation NV4 [RIVA TNT] (rev 04)


#uname -a
Linux LinuxServer 2.6.25-gentoo-r6 #10 Mon Sep 15 20:44:08 CEST 2008 i686 AMD Athlon(TM) XP1600+ AuthenticAMD GNU/Linux

#emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r6 i686)
=================================================================
System uname: 2.6.25-gentoo-r6 i686 AMD Athlon(TM) XP1600+
Timestamp of tree: Fri, 12 Sep 2008 08:20:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon -pipe -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon -pipe -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext apic berkdb bzip2 cli cracklib crypt cups fortran gdbm gpm iconv isdnlog loop-aes mmx mmxext mudflap ncurses nptl nptlonly openmp pcre perl pppd python readline reflection session spl sse ssl symlink sysfs tcpd unicode x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS



Reproducible: Always

Steps to Reproduce:
1. Compile kernel on ALI chipset
2. Test harddrive with hdparm
3.

Actual Results:  
Low transfer rate and dmesg strange message: 'cannot use LBA48 DMA - PIO mode will be used for accessing sectors > 268435456'

Expected Results:  
above 500MB/s and no dmesg message

I have read on google there is a kernel problem, is it true?
Comment 1 Enrique Domínguez 2008-09-15 21:42:20 UTC
similar to
Bug 88977 but don't fixed again
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-15 22:34:24 UTC
Is the hardware set up properly as in, are the cables connected correctly and are the master/slave/cable-select jumpers on the hard drivers in the correct places?

This looks like a problem where the chipset detects devices on the two ends of the flatcable one way, but the drives themselves report the devices the other way round (because of the jumper settings).
Comment 3 Enrique Domínguez 2008-09-15 23:06:29 UTC
(In reply to comment #2)
> Is the hardware set up properly as in, are the cables connected correctly and
> are the master/slave/cable-select jumpers on the hard drivers in the correct
> places?
> 
> This looks like a problem where the chipset detects devices on the two ends of
> the flatcable one way, but the drives themselves report the devices the other
> way round (because of the jumper settings).
> 
Thanks for so fast reply.
Bios have detected well drives, that are 'on cable select' hda,hdb with 80 pin cable and 'master only' for hdc with 80 pin cable too.
i found that related info:
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/119730
http://osdir.com/ml/ide/2005-03/msg00064.html
Hope it helps

Comment 4 Mike Pagano gentoo-dev 2008-09-17 12:26:17 UTC
Have you tested with gentoo-sources-2.6.26-r1 or the latest development kernel (git-sources).

Comment 5 Enrique Domínguez 2008-09-20 10:28:16 UTC
(In reply to comment #4)
> Have you tested with gentoo-sources-2.6.26-r1 or the latest development kernel
> (git-sources).
> 
Yesterday I have tested gentoo-sources-2.6.26-r1, next days I have to test vanilla kernel sources (Maybe bug being upstream)

Thanks for replies.
Comment 6 Enrique Domínguez 2008-09-24 08:20:58 UTC
(In reply to comment #4)
> Have you tested with gentoo-sources-2.6.26-r1 or the latest development kernel
> (git-sources).
> 
Tested with kernel-2.6.25-gentoo-r6, kernel-2.6.26-gentoo-r1 and (vanilla) kernel-2.6.26.1. This bug is upstream.
All kernel showing:
hda: cannot use LBA48 DMA - PIO mode will be used for accessing sectors > 268435456
hda: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4
hdc: max request size: 128KiB
hdc: cannot use LBA48 DMA - PIO mode will be used for accessing sectors > 268435456
hdc: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63

First time I fpund a kernel issue. Please what I have to do now?
Comment 7 Mike Pagano gentoo-dev 2008-10-03 18:00:30 UTC
Resolved upstream