Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56739 - Any Kernel >= 2.6.x is slow with Asus Cusl2-C
Summary: Any Kernel >= 2.6.x is slow with Asus Cusl2-C
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-11 17:35 UTC by Dark Avenger
Modified: 2004-07-13 22:38 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 Dark Avenger 2004-07-11 17:35:10 UTC
I've tryed to upgrade to the new 2.6.x kernels from 2.4.2x (2.4.26 exactly), mantaining the same configuration of the old kernel (ofcourse updated to the new one), but I obtained disastrous results in terms of performances:

With kernel 2.4.26:

 hdparm -Tt /dev/hda1

/dev/hda1:
 Timing buffer-cache reads:   620 MB in  2.00 seconds = 310.00 MB/sec
 Timing buffered disk reads:   38 MB in  1.84 seconds =  20.65 MB/sec
(which is not much, but acceptable)

with kernel 2.6.x:
 hdparm -Tt /dev/hda1

/dev/hda1:
 Timing buffer-cache reads:   240 MB in  6.00 seconds = 40.00 MB/sec
 Timing buffered disk reads:   20 MB in  10.07 seconds =  2.01 MB/sec

which is a total loss of performance...
---
The built-in kernel driver I used is the PIIX as this motherboard has a i815 chipset onboard...

The most strange thing, is that the speed is very fast until PIIX driver gets loaded during the boot, then there is a drop down in terms of speed of 100%.
This doesnt happens with 2.4.2x kernels.
In both kernel,anyway, there is a non-100% native error on boot:
ICH2: IDE controller at PCI slot 00:1f.1
ICH2: chipset revision 2
ICH2: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:DMA
but the drives have DMA correctly enabled.



Reproducible: Always
Steps to Reproduce:
1. emerge a 2.6.x kernel
2. install
3. reboot


Actual Results:  
My system is 100% slower than with a 2.4.2x kernel

Expected Results:  
Mantain at least 60% of the speed

0000:00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory 
Controller Hub (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82815 815 Chipset AGP Bridge (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI 
Bridge (rev 02)
0000:00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 02)
0000:00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 02)
0000:00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 02)
0000:01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP 
(rev 04)
0000:02:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-
8139/8139C/8139C+ (rev 10)
0000:02:0b.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] 
(rev 30)
0000:02:0c.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] 
(rev 78)
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-07-12 06:16:09 UTC
Does this also happen on a kernel from kernel.org?

Odds are it's a combo of wrong .config settings, and possibly wrong hdparm
settings.

What is the output of hdparm for this disk on both 2.4 and 2.6?
Comment 2 Dark Avenger 2004-07-13 19:00:23 UTC
the outputs are the same on both kernels:

hdparm -i /dev/hda 

/dev/hda:

 Model=QUANTUM FIREBALLlct20 20, FwRev=APL.0900, SerialNo=552035375517
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
 BuffType=DualPortCache, BuffSize=418kB, MaxMultSect=8, MultSect=8
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=39876480
 IORDY=on/off, tPIO={min:120,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=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1: 

 * signifies the current active mode
--------------
The .config and the hdparm settings are the same for both kernels, anyway here's the IDE section of one of the 2.6.x i tried:

# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
CONFIG_BLK_DEV_IDESCSI=y
# CONFIG_IDE_TASK_IOCTL is not set
# CONFIG_IDE_TASKFILE_IO is not set

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set
Comment 3 Dark Avenger 2004-07-13 19:04:43 UTC
I forgot to mention:

1) I use udma2 on this HD because it is quite old and the speed is acceptable as is (at least on 2.4.x)

2) It seems it happens also from kernel.org kernels
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-07-13 22:38:29 UTC
This looks to be a kernel.org issue.  Please open this at bugzilla.kernel.org
as there's nothing we can do here.