Freebsd Stable 6.x ipsec slower than with 4.9

Stephen Clark Stephen.Clark at seclark.us
Tue Apr 25 13:32:54 UTC 2006


Hello List,

I have to dualcore Athlon 64 4800+ systems. Initially I was running 4.9 
on both of them an was able to get 54mbits thru direct connected realtek 
10/100 cards as measured by nttcp.

I put stable on one of the system and now can on get 37mbits as measured 
by nttcp when going thru an ipsec tunnel.

Eliminating the tunnel I get 94mbit/sec.

Ideas as to why this is happening?


Also with 6.x I get some failed messages from dmesg:
Copyright (c) 1992-2006 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 6.1-RC #1: Mon Apr 24 16:43:40 EDT 2006
    root at fbsd6.netwolvesrd.com:/usr/src/sys/i386/compile/WOLFPAC6SMP
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
ACPI APIC Table: <Nvidia AWRDACPI>
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (2410.99-MHz 
686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20f32  Stepping = 2
  
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x1<SSE3>
  AMD Features=0xe2500800<SYSCALL,NX,MMX+,<b25>,LM,3DNow+,3DNow>
real memory  = 938409984 (894 MB)
avail memory = 908996608 (866 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <Nvidia AWRDACPI> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: reservation of 1bf00000, 100000 (3) failed
acpi0: reservation of 2bf00000, 100000 (3) failed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**********************************************************************
While on 4.9 i get:
Copyright (c) 1992-2003 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 4.9-STABLE #1: Wed Apr 19 20:56:30 EST 2006
    root at A1234.netwolves.com:/mnt2/src/sys/compile/WOLFPACSMP
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (2400.02-MHz 
686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20f32  Stepping = 2
  
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Hyperthreading: 2 logical CPUs
  AMD Features=0xe0500000<<b20>,AMIE,<b29>,DSP,3DNow!>
real memory  = 1005584384 (982016K bytes)
avail memory = 975286272 (952428K bytes)
Changing APIC ID for IO APIC #0 from 0 to 2 on chip
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00040010, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00040010, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc038a000.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
IOAPIC #0 intpin 9 -> irq 2
IOAPIC #0 intpin 11 -> irq 5
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x10de, dev=0x02f1) at 0.0
pci0: <unknown card> (vendor=0x10de, dev=0x02fa) at 0.1
pci0: <unknown card> (vendor=0x10de, dev=0x02fe) at 0.2
pci0: <unknown card> (vendor=0x10de, dev=0x02f8) at 0.3
pci0: <unknown card> (vendor=0x10de, dev=0x02f9) at 0.4
pci0: <unknown card> (vendor=0x10de, dev=0x02ff) at 0.5
pci0: <unknown card> (vendor=0x10de, dev=0x027f) at 0.6
pci0: <unknown card> (vendor=0x10de, dev=0x027e) at 0.7
pcib4: <PCI to PCI bridge (vendor=10de device=02fc)> at device 2.0 on pci0
pci1: <PCI bus> on pcib4
pcib5: <PCI to PCI bridge (vendor=10de device=02fd)> at device 3.0 on pci0
pci2: <PCI bus> on pcib5
pcib6: <PCI to PCI bridge (vendor=10de device=02fb)> at device 4.0 on pci0
pci3: <PCI bus> on pcib6
pci0: <NVidia model 0242 graphics accelerator> at 5.0 irq 2
pci0: <unknown card> (vendor=0x10de, dev=0x0270) at 9.0
isab0: <PCI to ISA bridge (vendor=10de device=0261)> at device 10.0 on pci0
isa0: <ISA bus> on isab0
pci0: <unknown card> (vendor=0x10de, dev=0x0264) at 10.1 irq 2
pci0: <unknown card> (vendor=0x10de, dev=0x0272) at 10.2
atapci0: <Generic PCI ATA controller> port 0xf400-0xf40f at device 13.0 
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
atapci1: <Generic PCI ATA controller> port 
0xe000-0xe00f,0xb70-0xb73,0x970-0x977
,0xbf0-0xbf3,0x9f0-0x9f7 mem 0xfe02e000-0xfe02efff irq 5 at device 14.0 
on pci0
ata2: at 0x9f0 on atapci1
ata3: at 0x970 on atapci1
pcib7: <PCI to PCI bridge (vendor=10de device=026f)> at device 16.0 on pci0
IOAPIC #0 intpin 10 -> irq 9
IOAPIC #0 intpin 5 -> irq 10

Regards,
Steve



-- 

"They that give up essential liberty to obtain temporary safety, 
deserve neither liberty nor safety."  (Ben Franklin)

"The course of history shows that as a government grows, liberty 
decreases."  (Thomas Jefferson)





More information about the freebsd-stable mailing list