Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 16:17:12 -0500 (EST)
From:      Craig Reyenga <creyenga@connectmail.carleton.ca>
To:        freebsd-current@freebsd.org
Subject:   Re: Network is crazy slow in DP2
Message-ID:  <22416832.1038604632896.JavaMail.creyenga@connectmail.carleton.ca>

next in thread | raw e-mail | index | archive | help
Sure. The cards at both ends are realtek 8139B's and according to 
ifconfig, they have negotiated a 100mbit full-duplex link. 
Uploads AND downloads are slow, using HTTP, FTP and SMB. When I 
installed DP2, I simply copied my httpd.conf and smb.conf, so I
can't imagine that configuration of the daemons is an issue.

I don't recall changing _anything_ at all when I setup DP2.
Here's dmesg output:
boss# dmesg
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights 
reserved.
FreeBSD 5.0-DP2 #0: Fri Nov 29 02:10:15 EST 2002
    craig@boss.sewer.org:/usr/src/sys/i386/compile/BOSSKERN
Preloaded elf kernel "/boot/kernel/kernel" at 0xc03d9000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc03d90a8.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 350797838 Hz
CPU: AMD-K6(tm) 3D processor (350.80-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
  Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
  AMD Features=0xffffffff80000800<SYSCALL,3DNow!>
real memory  = 268369920 (255 MB)
avail memory = 256626688 (244 MB)
Initializing GEOMetry subsystem
K6-family MTRR support enabled (2 registers)
netsmb_dev: loaded
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <FIC    VA503P  > on motherboard
Using $PIR table, 6 entries at 0xc00fdd60
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe"  frequency 3579545 Hz
can't fetch resources for \\_SB_.PCI0.ISA_.FDC0 - AE_AML_BUFFER_LIMIT
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x6008-0x600b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 
0x6080-0x60ff,0x6000-0x607f,0xcf8-0xcff on acpi0
---- initial configuration ------------------------
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.0
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.1
\\_SB_.PCI0.ISA_.LNKC irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.2
\\_SB_.PCI0.ISA_.LNKD irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.3
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.0
\\_SB_.PCI0.ISA_.LNKC irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.1
\\_SB_.PCI0.ISA_.LNKD irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.2
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.3
\\_SB_.PCI0.ISA_.LNKC irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.0
\\_SB_.PCI0.ISA_.LNKD irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.1
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.2
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.3
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.0
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.1
\\_SB_.PCI0.ISA_.LNKC irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.2
\\_SB_.PCI0.ISA_.LNKD irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.3
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.0
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.1
\\_SB_.PCI0.ISA_.LNKC irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.2
\\_SB_.PCI0.ISA_.LNKD irq   0: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.3
---- before setting priority for links ------------
\\_SB_.PCI0.ISA_.LNKC:
        interrupts:          1     3     4     5     6     7    10    
11    12    14    15
        penalty:        101100  2100  2100  1600  2100  2100  1600  
1100  2100 11100 11100
        references:     5
        priority:       0
\\_SB_.PCI0.ISA_.LNKD:
        interrupts:          1     3     4     5     6     7    10    
11    12    14    15
        penalty:        101100  2100  2100  1600  2100  2100  1600  
1100  2100 11100 11100
        references:     5
        priority:       0
---- before fixup boot-disabled links -------------
\\_SB_.PCI0.ISA_.LNKC:
        interrupts:          1     3     4     5     6     7    10    
11    12    14    15
        penalty:        101100  2100  2100  1600  2100  2100  1600  
1100  2100 11100 11100
        references:     5
        priority:       62772
\\_SB_.PCI0.ISA_.LNKD:
        interrupts:          1     3     4     5     6     7    10    
11    12    14    15
        penalty:        101100  2100  2100  1600  2100  2100  1600  
1100  2100 11100 11100
        references:     5
        priority:       62772
---- after fixup boot-disabled links --------------
---- arbitrated configuration ---------------------
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.0
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.1
\\_SB_.PCI0.ISA_.LNKC irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.2
\\_SB_.PCI0.ISA_.LNKD irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.8.3
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.0
\\_SB_.PCI0.ISA_.LNKC irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.1
\\_SB_.PCI0.ISA_.LNKD irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.2
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.9.3
\\_SB_.PCI0.ISA_.LNKC irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.0
\\_SB_.PCI0.ISA_.LNKD irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.1
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.2
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.10.3
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.0
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.1
\\_SB_.PCI0.ISA_.LNKC irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.2
\\_SB_.PCI0.ISA_.LNKD irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.7.3
\\_SB_.PCI0.ISA_.LNKA irq   5: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.0
\\_SB_.PCI0.ISA_.LNKB irq  10: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.1
\\_SB_.PCI0.ISA_.LNKC irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.2
\\_SB_.PCI0.ISA_.LNKD irq  11: [  1  3  4  5  6  7 10 11 12 14 15] 
low,level,sharable 0.1.3
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 82C597 (Apollo VP3) host to PCI bridge> mem 
0xe0000000-0xe0ffffff at device 0.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C586 ATA33 controller> port 0xe000-0xe00f at device 7.1 
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <serial bus, USB> at device 7.2 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 7.3 on pci0
pcib2: could not get PCI interrupt routing table for \\_SB_.PCI0.VTAC - 
AE_NOT_FOUND
pci0: couldn't attach pci bus
device_probe_and_attach: pcib2 attach returned 6
rl0: <RealTek 8139 10/100BaseTX> port 0xe800-0xe8ff mem 
0xe4000000-0xe40000ff irq 5 at device 8.0 on pci0
rl0: Realtek 8139B detected. Warning, this may be unstable in 
autoselect mode
rl0: Ethernet address: 00:50:bf:5a:eb:c9
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xec00-0xec1f irq 10 at 
device 9.0 on pci0
ed0: address 00:60:67:3a:b1:70, type NE2000 (16 bit)
pci0: <display, VGA> at device 10.0 (no driver attached)
fdc0: cannot reserve I/O port range (1 ports)
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
fdc0: cannot reserve I/O port range (1 ports)
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 on isa0
fdc0: cannot reserve I/O port range (6 ports)
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on 
isa0
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled, 
default to accept, logging disabled
ad0: 1668MB <FUJITSU MPA3017ATU> [3390/16/63] at ata0-master UDMA33
ad2: 39083MB <Maxtor 34098H4> [79408/16/63] at ata1-master UDMA33
acd0: DVD-ROM <LG DVD-ROM DRD-8160B> at ata0-slave PIO4
Mounting root from ufs:/dev/ad0s1a
uhci0: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 11 at device 
7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 7.3 on pci0
pcib2: could not get PCI interrupt routing table for \\_SB_.PCI0.VTAC - 
AE_NOT_FOUND
pci0: couldn't attach pci bus
device_probe_and_attach: pcib2 attach returned 6
pcib2: <ACPI PCI-PCI bridge> at device 7.3 on pci0
pcib2: could not get PCI interrupt routing table for \\_SB_.PCI0.VTAC - 
AE_NOT_FOUND
pci0: couldn't attach pci bus
device_probe_and_attach: pcib2 attach returned 6
pid 7767 (conftest), uid 0: exited on signal 12 (core dumped)
smb_maperror: Unmapped error 1:71
smb_maperror: Unmapped error 1:71
smb_maperror: Unmapped error 1:71
smb_maperror: Unmapped error 1:71
smb_maperror: Unmapped error 1:71
smb_maperror: Unmapped error 1:71
pid 89820 (conftest), uid 0: exited on signal 12 (core dumped)


Kernel config:
boss# cat BOSSKERN
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.369 2002/10/19 16:54:07 
rwatson Exp $

machine         i386
cpu             I586_CPU
ident           BOSSKERN
maxusers        0

options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_ACL                 #Support for access control 
lists
options         UFS_DIRHASH             #Improve performance on big 
directories
options         MD_ROOT                 #MD is a potential root device
options         CD9660                  #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem (requires 
PSEUDOFS)
options         PSEUDOFS                #Pseudo-filesystem framework
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP 
THIS!]
options         COMPAT_FREEBSD4         #Compatible with FreeBSD4
options         SCSI_DELAY=15000        #Delay (in ms) before probing 
SCSI
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time 
extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev

#
# DP2-specific Options:
#
# Disable certain VM optimizations as they currently cause memory 
corruption
# on newer Pentium4 and Athlon systems.
#
options         DISABLE_PSE
options         DISABLE_PG_G

device          isa
device          eisa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk                 # ATA disk drives
device          atapicd                 # ATAPI CDROM drives
device          atapifd                 # ATAPI floppy drives
device          atapist                 # ATAPI tape drives
options         ATA_STATIC_ID           #Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc

device          agp             # support several AGP chipsets

# Floating point support - do not disable.
device          npx

# Power management support (see NOTES for more options)
#device         apm
# Add suspend/resume support for the i8254.
device          pmtimer

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# Parallel port
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          ppi             # Parallel port interface device

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these 
NICs!
device          miibus          # MII bus support
device          rl              # RealTek 8129/8139
device          ed              # NE[12]000, SMC Ultra, 3c503, DS8390 
cards

# Pseudo devices - the number indicates how many units to allocate.
device          random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device          bpf             # Berkeley packet filter

options         DEVICE_POLLING
options         IPFIREWALL
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPFIREWALL_FORWARD
options         IPDIVERT
options         IPSTEALTH
options         ACCEPT_FILTER_DATA
options         ACCEPT_FILTER_HTTP
options         NETSMB
options         NETSMBCRYPTO
options         LIBMCHAIN
options         SMBFS
options         LIBICONV

Thanks for your help.

-Craig


Maxime Henrion wrote:
>Craig Reyenga wrote:
>> Yesterday I installed 5.0-DP2 without problems, however my 100mbit 
link 
>> to my desktop computer goes extremely slowly using HTTP, FTP or SMB 
and 
>> proabably others. I used to be able to tranfer files using FTP at over 
>> 7.9MB/sec in 4.7 but now the best that I can do is 800KB/sec. When I 
>> look at 'top' it appears that the computer isn't even "trying" i.e. 
the 
>> cpu usage is very low.
>> The network adapter in question is a Realtek 8139B. The problem exists 
>> in polling or non-polling mode.
>
>Are you seeing this performance problems both in send and receive mode ?
>Can you give us a bit more info about your environment, like the type of
>cards at both ends, the output of ifconfig <interface> (to check if the
>interface successfully negotiated a 100MB link), dmesg, etc...  Also,
>-CURRENT debugging malloc flags may be relevant though that's truly a
>huge performance loss...
>
>Can you confirm that these problems arise whatever protocol/software you
>use to transfer data ?
>
>Thanks in advance,
>Maxime
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-current" in the body of the message
>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22416832.1038604632896.JavaMail.creyenga>