On Sun, Apr 19, 2009 at 3:32 AM, Angelin Lalev <[email protected]>
wrote:
> Solved, but I'm still curious:
>
>>>>>>>>>>>>> dmesg output
>
> OpenBSD 4.4-stable (GENERIC) #0: Sat Apr 18 20:09:50 EEST 2009
>    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) 4 CPU 2.40GHz ("GenuineIntel" 686-class) 2.40 GHz
> cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
> real mem  = 259551232 (247MB)
> avail mem = 242520064 (231MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 08/15/02, BIOS32 rev. 0 @
> 0xeba00, SMBIOS rev. 2.3 @ 0xfd486 (46 entries)
> bios0: vendor Compaq version "686O2 v2.14" date 08/15/2002
> bios0: Compaq Evo D510 SFF
> acpi0 at bios0: rev 0
> acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT SSDT SSDT SSDT APIC SSDT
> SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT
> acpi0: wakeup devices PCI0(S4) HUB_(S4) COM1(S4) COM2(S4) USB1(S3)
> USB2(S3) USB3(S3) EUSB(S3) PBTN(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpiprt0 at acpi0: bus 5 (HUB_)
> acpiprt1 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0
> acpibtn0 at acpi0: PBTN
> bios0: ROM list: 0xc0000/0xac00! 0xcac00/0x1800 0xe1c00/0x9000!
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82845G Host" rev 0x01
> vga1 at pci0 dev 2 function 0 "Intel 82845G Video" rev 0x01
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> agp0 at vga1: aperture at 0xf0000000, size 0x8000000
> drm at vga1 unsupported
> uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x01: irq 10
> uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x01: irq 11
> ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x01: irq 5
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb0 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x81
> pci1 at ppb0 bus 5
> fxp0 at pci1 dev 8 function 0 "Intel PRO/100 VM" rev 0x81, i82562: irq
> 5, address 00:0b:cd:1e:e4:de
> inphy0 at fxp0 phy 1: i82562EM 10/100 PHY, rev. 0
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801DB LPC" rev 0x01
> pciide0 at pci0 dev 31 function 1 "Intel 82801DB IDE" rev 0x01: DMA,
> channel 0 configured to compatibility, channel 1 configured to
> compatibility
> wd0 at pciide0 channel 0 drive 0: <HDS728040PLAT20>
> wd0: 16-sector PIO, LBA48, 39265MB, 80416127 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> pciide0: channel 1 ignored (disabled)
> auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x01: irq 5, ICH4
AC97
> ac97: codec id 0x41445372 (Analog Devices AD1981A)
> ac97: codec features headphone, 20 bit DAC, No 3D Stereo
> audio0 at auich0
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> biomask fd65 netmask fd65 ttymask ffff
> mtrr: Pentium Pro MTRR support
> softraid0 at root
> root on wd0a swap on wd0b dump on wd0b
> umass0 at uhub0 port 1 configuration 1 interface 0 "PQI PQI USB Flash
> Drive" rev 2.00/1.00 addr 2
> umass0: using SCSI over Bulk-Only
> scsibus0 at umass0: 2 targets, initiator 0
> sd0 at scsibus0 targ 1 lun 0: <Generic, USB Flash Disk, 0.00> SCSI2
> 0/direct removable
> sd0: 7712MB, 983 cyl, 255 head, 63 sec, 512 bytes/sec, 15794176 sec total
>
>>>>>>>>>>>>>>>>>>old hostname.fxp0 / 20 Kbit/s
>
> inet 192.168.1.6 255.255.255.0 NONE media 100baseTX mediaopt full-duplex
>
>>>>>>>>>>>>>>>>>>new hostname.fxp0 / 10+Mbit/s
>
> inet 192.168.1.6 255.255.255.0 NONE
>
>>>>>>>>>>>>>>>>>ifconfig output
>
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33204
>        groups: lo
>        inet 127.0.0.1 netmask 0xff000000
>        inet6 ::1 prefixlen 128
>        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>        lladdr 00:0b:cd:1e:e4:de
>        groups: egress
>        media: Ethernet autoselect (100baseTX full-duplex)
>        status: active
>        inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255
>        inet6 fe80::20b:cdff:fe1e:e4de%fxp0 prefixlen 64 scopeid 0x1
> enc0: flags=0<> mtu 1536
>
> I've read somewhere that autonegotiation may fail, but never seen it.
> I'll get another switch and try that again tomorrow.
>
> On Sun, Apr 19, 2009 at 3:09 AM, Ariane van der Steldt <[email protected]>
wrote:
>> On Sun, Apr 19, 2009 at 02:43:02AM +0300, Angelin Lalev wrote:
>>> Earlier today mostly out of curiosity I installed OpenBSD for the
>>> first time. I used it to replace perfectly sound installation of
>>> debian+lighttpd which served some big files in my home network.
>>> Unfortunately I'm noticing drastic performance degradation.
>>> The debian server achieved speeds that were well into the megabyte per
>>> second range. Now
>>>  OpenBSD + httpd (the included apache 1.3) on the same machine (P4
>>> 2,4) gives me only 20Kbit/sec traffic on 100Mbit Ethernet which is
>>> rather weird and actually had me checking cables, switches and duplex
>>> modes. It seems that everything is ok with them.
>>>
>>> Is it possible this limitation to be result of some OpenBSD
>>> configuration option that I'm missing?
>>
>> As a rule, openbsd doesn't need extensive kernel tweaking, even minor
>> kernel tweaking is very rare.
>>
>> You didn't post a dmesg, so I can't comment on anything in hardware
>> support that would affect performance. Posting a dmesg when you have a
>> problem or are asking a question is a very good idea, because it
>> contains a ton of information.
>>
>> Note that your test-case changes two variables: you changed operating
>> system (linux/debian vs openbsd) and http server (lighttpd vs apache
>> 1.3). Also, the circumstances under which the performance was measured
>> is not specified; measured performance often tests very different to
>> real world traffic.
>>
>> Anyway, insufficient information to process your question, more input
>> required. :)
>> --
>> Ariane

Reply via email to