2002-08-25 09:11:57

by joerg.beyer

[permalink] [raw]
Subject: <no subject>

Hi,

I see high latencies on a new medion (MD9788) laptop.

I had to use tha acpi patch to get a NIC module
loaded into the kernel. There is a realtec 8139 chip
onboard. I tried both Donald Beckers and the usual
kernel module for that chip - with similar results:

There are a lot lines in /var/log/messages like this:
kernel: eth0: Too much work at interrupt, IntrStatus=0x0040.

The NIC has a lot errors:
eth0 Link encap:Ethernet HWaddr 00:07:CA:00:AC:A3
inet addr:10.0.0.30 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:802 errors:5860 dropped:290 overruns:5860 frame:0
TX packets:802 errors:0 dropped:0 overruns:0 carrier:0
collisions:3 txqueuelen:100
RX bytes:1116143 (1.0 Mb) TX bytes:63846 (62.3 Kb)
Interrupt:10 Base address:0xf000

Disk access, like untaring a big tar file (e.g. kernel sources)
are really slow.

I see this effect with 2.4.18, 2.4.19, 2.4.20-pre4 kernels (with the
matching acpi patch. without acpi patch the NIC is not usable).

Could anybody tell me why there are such high IRQ latencies?
Or are my assumptions wrong?


For reference, here is a lspci:
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 80)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:06.0 Communication controller: Ambient Technologies Inc: Unknown device 4000 (rev 02)
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40 )
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 1a)
00:07.4 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio Controlle r (rev 50)
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
00:0c.0 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
00:0c.1 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
01:00.0 VGA compatible controller: S3 Inc.: Unknown device 8d02 (rev 01)

here is /proc/interrupts:
CPU0
0: 175728 XT-PIC timer
1: 684 XT-PIC keyboard
2: 0 XT-PIC cascade
9: 0 XT-PIC acpi
10: 1965 XT-PIC eth0
14: 4011 XT-PIC ide0
15: 2 XT-PIC ide1
NMI: 0
ERR: 0


I have very limited knowledge about IRQs. Does anybody see how
to fix the high IRQ latencies?

If you need further informations, please drop me a mail.

TIA
Joerg

and below is the dmesg:
>pci_link-0183 [0001] [08] acpi_pci_link_get_curr: ----Entry
pci_link-0259 [0001] [08] acpi_pci_link_get_curr: Link at IRQ 10
pci_link-0264 [0001] [08] acpi_pci_link_get_curr: ----Exit- 0000000000000000
ACPI: PCI Interrupt Link [LNKA] (IRQs *10)
pci_link-0546 [0001] [07] acpi_pci_link_add : ----Exit- 0000000000000000
pci_link-0501 [0001] [07] acpi_pci_link_add : ----Entry
pci_link-0099 [0001] [08] acpi_pci_link_get_poss: ----Entry
pci_link-0164 [0001] [08] acpi_pci_link_get_poss: Found 1 possible IRQs
pci_link-0169 [0001] [08] acpi_pci_link_get_poss: ----Exit- 0000000000000000
pci_link-0183 [0001] [08] acpi_pci_link_get_curr: ----Entry
pci_link-0259 [0001] [08] acpi_pci_link_get_curr: Link at IRQ 10
pci_link-0264 [0001] [08] acpi_pci_link_get_curr: ----Exit- 0000000000000000
ACPI: PCI Interrupt Link [LNKB] (IRQs *10)
pci_link-0546 [0001] [07] acpi_pci_link_add : ----Exit- 0000000000000000
pci_link-0501 [0001] [07] acpi_pci_link_add : ----Entry
pci_link-0099 [0001] [08] acpi_pci_link_get_poss: ----Entry
pci_link-0164 [0001] [08] acpi_pci_link_get_poss: Found 1 possible IRQs
pci_link-0169 [0001] [08] acpi_pci_link_get_poss: ----Exit- 0000000000000000
pci_link-0183 [0001] [08] acpi_pci_link_get_curr: ----Entry
pci_link-0259 [0001] [08] acpi_pci_link_get_curr: Link at IRQ 5
pci_link-0264 [0001] [08] acpi_pci_link_get_curr: ----Exit- 0000000000000000
ACPI: PCI Interrupt Link [LNKC] (IRQs *5)
pci_link-0546 [0001] [07] acpi_pci_link_add : ----Exit- 0000000000000000
pci_link-0501 [0001] [07] acpi_pci_link_add : ----Entry
pci_link-0099 [0001] [08] acpi_pci_link_get_poss: ----Entry
pci_link-0164 [0001] [08] acpi_pci_link_get_poss: Found 1 possible IRQs
pci_link-0169 [0001] [08] acpi_pci_link_get_poss: ----Exit- 0000000000000000
pci_link-0183 [0001] [08] acpi_pci_link_get_curr: ----Entry
pci_link-0259 [0001] [08] acpi_pci_link_get_curr: Link at IRQ 5
pci_link-0264 [0001] [08] acpi_pci_link_get_curr: ----Exit- 0000000000000000
ACPI: PCI Interrupt Link [LNKD] (IRQs *5)
pci_link-0546 [0001] [07] acpi_pci_link_add : ----Exit- 0000000000000000
pci_bind-0134 [0001] [05] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [05] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.PPB_]...
pci_bind-0176 [0001] [05] acpi_pci_bind : ...to 00:00:01.00
pci_bind-0217 [0001] [05] acpi_pci_bind : Device 00:00:01.00 is a PCI bridge
pci_bind-0260 [0001] [05] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [05] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [05] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.PPB_.VGA_]...
pci_bind-0176 [0001] [05] acpi_pci_bind : ...to 00:01:00.00
pci_bind-0260 [0001] [05] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [05] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [05] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.USB0]...
pci_bind-0176 [0001] [05] acpi_pci_bind : ...to 00:00:07.02
pci_bind-0260 [0001] [05] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [05] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [05] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.PM__]...
pci_bind-0176 [0001] [05] acpi_pci_bind : ...to 00:00:07.04
pci_bind-0260 [0001] [05] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [05] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [05] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.AUDI]...
pci_bind-0176 [0001] [05] acpi_pci_bind : ...to 00:00:07.05
pci_bind-0260 [0001] [05] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [05] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [05] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.MPC2]...
pci_bind-0176 [0001] [05] acpi_pci_bind : ...to 00:00:09.00
pci_bind-0260 [0001] [05] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [05] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [05] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.MPCI]...
pci_bind-0176 [0001] [05] acpi_pci_bind : ...to 00:00:06.00
pci_bind-0260 [0001] [05] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [06] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [06] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.CRD0]...
pci_bind-0176 [0001] [06] acpi_pci_bind : ...to 00:00:0c.00
pci_bind-0217 [0001] [06] acpi_pci_bind : Device 00:00:0c.00 is a PCI bridge
pci_bind-0260 [0001] [06] acpi_pci_bind : ----Exit- 0000000000000000
pci_bind-0134 [0001] [07] acpi_pci_bind : ----Entry
pci_bind-0146 [0001] [07] acpi_pci_bind : Binding PCI device [\_SB_.PCI0.CRD1]...
pci_bind-0176 [0001] [07] acpi_pci_bind : ...to 00:00:0c.01
pci_bind-0217 [0001] [07] acpi_pci_bind : Device 00:00:0c.01 is a PCI bridge
pci_bind-0260 [0001] [07] acpi_pci_bind : ----Exit- 0000000000000000
ACPI: Power Resource [PFAN] (on)
PCI: Probing PCI hardware
pci_irq-0376 [0001] [04] acpi_pci_irq_init : ----Entry
pci_link-0385 [0001] [05] acpi_pci_link_check : ----Entry
pci_link-0446 [0001] [05] acpi_pci_link_check : ----Exit- 0000000000000000
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0318 [0001] [05] acpi_pci_irq_enable : No interrupt pin configured for device 00:00.0
pci_irq-0319 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000000
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0318 [0001] [05] acpi_pci_irq_enable : No interrupt pin configured for device 00:01.0
pci_irq-0319 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000000
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0001] [06] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [06] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:06[A]
pci_irq-0066 [0001] [07] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0080 [0001] [07] acpi_pci_irq_find_prt_: ----Exit- c129fac0
pci_link-0459 [0001] [07] acpi_pci_link_get_irq : ----Entry
pci_link-0484 [0001] [07] acpi_pci_link_get_irq : ----Exit- 000000000000000A
pci_irq-0264 [0001] [06] acpi_pci_irq_lookup : Found IRQ 10
pci_irq-0266 [0001] [06] acpi_pci_irq_lookup : ----Exit- 000000000000000A
pci_irq-0354 [0001] [05] acpi_pci_irq_enable : Device 00:06.0 using IRQ 10
pci_irq-0361 [0001] [05] acpi_pci_irq_enable : Setting IRQ 10 as level-triggered
pci_irq-0367 [0001] [05] acpi_pci_irq_enable : ----Exit- 000000000000000A
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0318 [0001] [05] acpi_pci_irq_enable : No interrupt pin configured for device 00:07.0
pci_irq-0319 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000000
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0318 [0001] [05] acpi_pci_irq_enable : No interrupt pin configured for device 00:07.1
pci_irq-0319 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000000
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0001] [06] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [06] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:07[D]
pci_irq-0066 [0001] [07] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0080 [0001] [07] acpi_pci_irq_find_prt_: ----Exit- c129fa80
pci_link-0459 [0001] [07] acpi_pci_link_get_irq : ----Entry
pci_link-0484 [0001] [07] acpi_pci_link_get_irq : ----Exit- 0000000000000005
pci_irq-0264 [0001] [06] acpi_pci_irq_lookup : Found IRQ 5
pci_irq-0266 [0001] [06] acpi_pci_irq_lookup : ----Exit- 0000000000000005
pci_irq-0354 [0001] [05] acpi_pci_irq_enable : Device 00:07.2 using IRQ 5
pci_irq-0361 [0001] [05] acpi_pci_irq_enable : Setting IRQ 5 as level-triggered
pci_irq-0367 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000005
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0318 [0001] [05] acpi_pci_irq_enable : No interrupt pin configured for device 00:07.4
pci_irq-0319 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000000
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0001] [06] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [06] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:07[C]
pci_irq-0066 [0001] [07] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0080 [0001] [07] acpi_pci_irq_find_prt_: ----Exit- c129fa40
pci_link-0459 [0001] [07] acpi_pci_link_get_irq : ----Entry
pci_link-0484 [0001] [07] acpi_pci_link_get_irq : ----Exit- 0000000000000005
pci_irq-0264 [0001] [06] acpi_pci_irq_lookup : Found IRQ 5
pci_irq-0266 [0001] [06] acpi_pci_irq_lookup : ----Exit- 0000000000000005
pci_irq-0354 [0001] [05] acpi_pci_irq_enable : Device 00:07.5 using IRQ 5
pci_irq-0367 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000005
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0001] [06] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [06] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:09[A]
pci_irq-0066 [0001] [07] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0080 [0001] [07] acpi_pci_irq_find_prt_: ----Exit- c129fb00
pci_link-0459 [0001] [07] acpi_pci_link_get_irq : ----Entry
pci_link-0484 [0001] [07] acpi_pci_link_get_irq : ----Exit- 000000000000000A
pci_irq-0264 [0001] [06] acpi_pci_irq_lookup : Found IRQ 10
pci_irq-0266 [0001] [06] acpi_pci_irq_lookup : ----Exit- 000000000000000A
pci_irq-0354 [0001] [05] acpi_pci_irq_enable : Device 00:09.0 using IRQ 10
pci_irq-0367 [0001] [05] acpi_pci_irq_enable : ----Exit- 000000000000000A
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0001] [06] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [06] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:0c[A]
pci_irq-0066 [0001] [07] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0080 [0001] [07] acpi_pci_irq_find_prt_: ----Exit- c129fb40
pci_link-0459 [0001] [07] acpi_pci_link_get_irq : ----Entry
pci_link-0484 [0001] [07] acpi_pci_link_get_irq : ----Exit- 000000000000000A
pci_irq-0264 [0001] [06] acpi_pci_irq_lookup : Found IRQ 10
pci_irq-0266 [0001] [06] acpi_pci_irq_lookup : ----Exit- 000000000000000A
pci_irq-0354 [0001] [05] acpi_pci_irq_enable : Device 00:0c.0 using IRQ 10
pci_irq-0367 [0001] [05] acpi_pci_irq_enable : ----Exit- 000000000000000A
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0001] [06] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [06] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:0c[B]
pci_irq-0066 [0001] [07] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0080 [0001] [07] acpi_pci_irq_find_prt_: ----Exit- c129fb80
pci_link-0459 [0001] [07] acpi_pci_link_get_irq : ----Entry
pci_link-0484 [0001] [07] acpi_pci_link_get_irq : ----Exit- 000000000000000A
pci_irq-0264 [0001] [06] acpi_pci_irq_lookup : Found IRQ 10
pci_irq-0266 [0001] [06] acpi_pci_irq_lookup : ----Exit- 000000000000000A
pci_irq-0354 [0001] [05] acpi_pci_irq_enable : Device 00:0c.1 using IRQ 10
pci_irq-0367 [0001] [05] acpi_pci_irq_enable : ----Exit- 000000000000000A
pci_irq-0311 [0001] [05] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0001] [06] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [06] acpi_pci_irq_lookup : Searching for PRT entry for 00:01:00[A]
pci_irq-0066 [0001] [07] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0084 [0001] [07] acpi_pci_irq_find_prt_: ----Exit- 00000000
pci_irq-0248 [0001] [06] acpi_pci_irq_lookup : PRT entry not found
pci_irq-0249 [0001] [06] acpi_pci_irq_lookup : ----Exit- 0000000000000000
pci_irq-0278 [0001] [06] acpi_pci_irq_derive : ----Entry
pci_irq-0240 [0001] [07] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0001] [07] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:01[B]
pci_irq-0066 [0001] [08] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0084 [0001] [08] acpi_pci_irq_find_prt_: ----Exit- 00000000
pci_irq-0248 [0001] [07] acpi_pci_irq_lookup : PRT entry not found
pci_irq-0249 [0001] [07] acpi_pci_irq_lookup : ----Exit- 0000000000000000
pci_irq-0293 [0001] [06] acpi_pci_irq_derive : Unable to derive IRQ for device 01:00.0
pci_irq-0294 [0001] [06] acpi_pci_irq_derive : ----Exit- 0000000000000000
PCI: No IRQ known for interrupt pin A of device 01:00.0 - using IRQ 5
pci_irq-0349 [0001] [05] acpi_pci_irq_enable : ----Exit- 0000000000000005
pci_irq-0396 [0001] [04] acpi_pci_irq_init : ----Exit- 0000000000000000
Applying VIA southbridge workaround.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
ACPI: AC Adapter [ACAD] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Fan [FAN] (on)
ACPI: Processor [CPU0] (supports C1 C2, 16 throttling states)
ACPI: Thermal Zone [THRM] (39 C)
vesafb: framebuffer at 0xf0000000, mapped to 0xcf808000, size 15296k
vesafb: mode is 1024x768x16, linelength=2048, pages=8
vesafb: protected mode interface info at c000:7f20
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
vga16fb: initializing
vga16fb: mapped to 0xc00a0000
fb1: VGA16 VGA frame buffer device
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: HITACHI_DK23DA-20, ATA DISK drive
hdc: QSI DVD-ROM SDR-081, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 39070080 sectors (20004 MB) w/2048KiB Cache, CHS=2432/255/63
hdc: ATAPI 24X DVD-ROM drive, 512kB Cache
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 hda3
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
reiserfs: checking transaction log (device 03:01) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 240k freed
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Adding Swap: 481940k swap-space (priority 42)
8139too Fast Ethernet driver 0.9.25

**** Context Switch from TID 1 to TID 134 ****

pci_irq-0311 [0134] [04] acpi_pci_irq_enable : ----Entry
pci_irq-0240 [0134] [05] acpi_pci_irq_lookup : ----Entry
pci_irq-0244 [0134] [05] acpi_pci_irq_lookup : Searching for PRT entry for 00:00:09[A]
pci_irq-0066 [0134] [06] acpi_pci_irq_find_prt_: ----Entry
pci_irq-0080 [0134] [06] acpi_pci_irq_find_prt_: ----Exit- c129fb00
pci_irq-0264 [0134] [05] acpi_pci_irq_lookup : Found IRQ 10
pci_irq-0266 [0134] [05] acpi_pci_irq_lookup : ----Exit- 000000000000000A
pci_irq-0354 [0134] [04] acpi_pci_irq_enable : Device 00:09.0 using IRQ 10
pci_irq-0367 [0134] [04] acpi_pci_irq_enable : ----Exit- 000000000000000A
eth0: RealTek RTL8139 Fast Ethernet at 0xd07ef000, 00:07:ca:00:ac:a3, IRQ 10
eth0: Identified 8139 chip type 'RTL-8139C'



2002-08-25 10:43:13

by Zwane Mwaikambo

[permalink] [raw]
Subject: Re: <no subject>

On Sun, 25 Aug 2002 [email protected] wrote:

> Disk access, like untaring a big tar file (e.g. kernel sources)
> are really slow.

> ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
> hda: HITACHI_DK23DA-20, ATA DISK drive
> hdc: QSI DVD-ROM SDR-081, ATAPI CD/DVD-ROM drive
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> ide1 at 0x170-0x177,0x376 on irq 15
> hda: 39070080 sectors (20004 MB) w/2048KiB Cache, CHS=2432/255/63
> hdc: ATAPI 24X DVD-ROM drive, 512kB Cache

You seem to be running without DMA.

Zwane
--
function.linuxpower.ca


2002-08-25 11:03:58

by joerg.beyer

[permalink] [raw]
Subject: Re: Re: <no subject>

Zwane Mwaikambo <[email protected]> schrieb am 25.08.02 12:47:22:
> On Sun, 25 Aug 2002 [email protected] wrote:
>
> > Disk access, like untaring a big tar file (e.g. kernel sources)
> > are really slow.
>
> > ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
> > hda: HITACHI_DK23DA-20, ATA DISK drive
> > hdc: QSI DVD-ROM SDR-081, ATAPI CD/DVD-ROM drive
> > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> > ide1 at 0x170-0x177,0x376 on irq 15
> > hda: 39070080 sectors (20004 MB) w/2048KiB Cache, CHS=2432/255/63
> > hdc: ATAPI 24X DVD-ROM drive, 512kB Cache
>
> You seem to be running without DMA.

you are right, I had no dma enabled. Now I recomiled the kernel with this
dma-related options:

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_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
# CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
# CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
CONFIG_BLK_DEV_ADMA=y
# CONFIG_HPT34X_AUTODMA is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set


and I still get many many errors on the nic. Do I need something more in .config?

Joerg

2002-08-25 12:05:58

by Zwane Mwaikambo

[permalink] [raw]
Subject: Re: Re: <no subject>

On Sun, 25 Aug 2002 [email protected] wrote:

> you are right, I had no dma enabled. Now I recomiled the kernel with this
> dma-related options:
>
> 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_IDEDMA=y
> # CONFIG_IDEDMA_PCI_WIP is not set
> # CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
> # CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
> CONFIG_BLK_DEV_ADMA=y
> # CONFIG_HPT34X_AUTODMA is not set
> CONFIG_IDEDMA_AUTO=y
> # CONFIG_IDEDMA_IVB is not set
> # CONFIG_DMA_NONPCI is not set
>
>
> and I still get many many errors on the nic. Do I need something more in .config?

That should fix your slowdown during untarring/disk access, as for your
NIC problem looks like you might be having a receive FIFO overflow, so
perhaps the card stops processing incoming packets? I have no clue,
Jeff?

Zwane

--
function.linuxpower.ca



2002-08-26 10:50:35

by joerg.beyer

[permalink] [raw]
Subject: Re: Re: Re: <no subject>

Zwane Mwaikambo <[email protected]> schrieb am 25.08.02 14:10:12:
> On Sun, 25 Aug 2002 [email protected] wrote:
>
> > you are right, I had no dma enabled. Now I recomiled the kernel with this
> > dma-related options:
> >
> > 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_IDEDMA=y
> > # CONFIG_IDEDMA_PCI_WIP is not set
> > # CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
> > # CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
> > CONFIG_BLK_DEV_ADMA=y
> > # CONFIG_HPT34X_AUTODMA is not set
> > CONFIG_IDEDMA_AUTO=y
> > # CONFIG_IDEDMA_IVB is not set
> > # CONFIG_DMA_NONPCI is not set
> >
> >
> > and I still get many many errors on the nic. Do I need something more in .config?
>
> That should fix your slowdown during untarring/disk access, as for your
> NIC problem looks like you might be having a receive FIFO overflow, so
> perhaps the card stops processing incoming packets? I have no clue,
> Jeff?

is it possible, that I made a simmilar mistake at the NIC module configuration
and that I dont use dma at the NIC?

Put it the ohter way round: how could I see if the 8139too NIC module
uses DMA?

It is supposed to use DMA, right?

Joerg

2002-08-26 11:59:27

by Zwane Mwaikambo

[permalink] [raw]
Subject: Re: Re: Re: <no subject>

On Mon, 26 Aug 2002 [email protected] wrote:

> is it possible, that I made a simmilar mistake at the NIC module configuration
> and that I dont use dma at the NIC?

nope you didn't make a mistake there.

Zwane

2002-08-26 13:12:48

by joerg.beyer

[permalink] [raw]
Subject: Re: Re: Re: <no subject>

Zwane Mwaikambo <[email protected]> schrieb am 25.08.02 14:10:12:
> On Sun, 25 Aug 2002 [email protected] wrote:
>
> > you are right, I had no dma enabled. Now I recomiled the kernel with this
> > dma-related options:
> >
> > 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_IDEDMA=y
> > # CONFIG_IDEDMA_PCI_WIP is not set
> > # CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
> > # CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
> > CONFIG_BLK_DEV_ADMA=y
> > # CONFIG_HPT34X_AUTODMA is not set
> > CONFIG_IDEDMA_AUTO=y
> > # CONFIG_IDEDMA_IVB is not set
> > # CONFIG_DMA_NONPCI is not set
> >
> >
> > and I still get many many errors on the nic. Do I need something more in .config?
>
> That should fix your slowdown during untarring/disk access, as for your
> NIC problem looks like you might be having a receive FIFO overflow, so
> perhaps the card stops processing incoming packets? I have no clue,
> Jeff?

I set max_interrupt_work to higher values,
e.g. 500 (instead of the default value 20) and the message in /var/log/messages
does not appear - no wonder. But I still get large numbes of RX errors and
RX overruns (these numbers are equal most of the time). So receiving
is to slow and brings RX overruns.

Is there anything I can do about it?

It's a Athlon 1200 and that should be
fast enough to receive data on a single connection.

still confused, but now on a higher level
Joerg

2002-08-26 18:51:32

by joerg.beyer

[permalink] [raw]
Subject: Re: Re: Re: <no subject>

Zwane Mwaikambo <[email protected]> schrieb am 25.08.02 14:10:12:
> On Sun, 25 Aug 2002 [email protected] wrote:
>
> > you are right, I had no dma enabled. Now I recomiled the kernel with this
> > dma-related options:
> >
> > 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_IDEDMA=y
> > # CONFIG_IDEDMA_PCI_WIP is not set
> > # CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
> > # CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
> > CONFIG_BLK_DEV_ADMA=y
> > # CONFIG_HPT34X_AUTODMA is not set
> > CONFIG_IDEDMA_AUTO=y
> > # CONFIG_IDEDMA_IVB is not set
> > # CONFIG_DMA_NONPCI is not set
> >
> >
> > and I still get many many errors on the nic. Do I need something more in .config?
>
> That should fix your slowdown during untarring/disk access, as for your
> NIC problem looks like you might be having a receive FIFO overflow, so
> perhaps the card stops processing incoming packets? I have no clue,
> Jeff?
>
ok, now I am a step further: I have a testcase, where I used a 10MB file with random
content. I scp'd this file from another machine to the laptop:

joerg@laptop> scp otter_machine:/tmp/10mb_file /tmp/

with the 8139too NIC module this takes 8 minutes, 32 second and has
about 97500 error on the NIC, all are RC oerruns.

When I do the same with Donald Beckers rtl8139 module then the transfer
takes 10 seconds and has about 1865 errors - not perfect but much better.

I dont want to generalize, but for my case the rtl8139 module seems
to fit much better.

Thanks for your help
Joerg