Ah yes, to get the disk out of the equsion, do this with your wget: wget -O /dev/null http://192.168.1.254/bsd1
That will tell you if the disk is your bottleneck.. J On Fri, Oct 9, 2009 at 2:17 PM, Jose Fragoso <inet_use...@samerica.com>wrote: > Hi, > > I am running openbsd 4.2 on a box and I would like > help trying to identify networking bottlenecks. > > While trying to download a file from another obsd > box at the network using wget, I get very low rate. > > # wget http://192.168.1.254/bsd1 > > --18:03:29-- http://192.168.1.254/bsd1 > => `bsd1.1' > Connecting to 192.168.1.254:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 61,758,702 (59M) [text/plain] > > 100%[====================================>] 61,758,702 2.30M/s > > 18:03:55 (2.32 MB/s) - `bsd1.1' saved [61758702/61758702] > > But when I use iperf, I get quite high transfer rates: > > # iperf -i 10 -w 256K -c 192.168.1.254 -t 3002 > ------------------------------------------------------------ > Client connecting to 192.168.1.254, TCP port 5001 > TCP window size: 256 KByte > ------------------------------------------------------------ > [ 3] local 192.168.1.148 port 44687 connected with 192.168.1.254 > port 5001 > [ 3] 0.0-10.0 sec 111 MBytes 93.4 Mbits/sec > [ 3] 10.0-20.0 sec 111 MBytes 93.5 Mbits/sec > [ 3] 20.0-30.0 sec 111 MBytes 93.5 Mbits/sec > [ 3] 30.0-40.0 sec 111 MBytes 93.5 Mbits/sec > > My question is what could be causing the tcp poor performance? > > Thanks for any suggestion. > > Regards, > > Jose > > > ------------------------------------------------------------- > > > # ifconfig sk0 > sk0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 > lladdr 00:22:b0:5d:5d:08 > groups: egress > media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) > status: active > inet6 fe80::222:b0ff:fe5d:5d08%sk0 prefixlen 64 scopeid 0x2 > inet 192.168.1.148 netmask 0xffffff00 broadcast 192.168.1.255 > > > # sysctl net.inet.ip > net.inet.ip.forwarding=0 > net.inet.ip.redirect=1 > net.inet.ip.ttl=64 > net.inet.ip.sourceroute=0 > net.inet.ip.directed-broadcast=0 > net.inet.ip.portfirst=1024 > net.inet.ip.portlast=49151 > net.inet.ip.porthifirst=49152 > net.inet.ip.porthilast=65535 > net.inet.ip.maxqueue=300 > net.inet.ip.encdebug=0 > net.inet.ip.ipsec-expire-acquire=30 > net.inet.ip.ipsec-invalid-life=60 > net.inet.ip.ipsec-pfs=1 > net.inet.ip.ipsec-soft-allocs=0 > net.inet.ip.ipsec-allocs=0 > net.inet.ip.ipsec-soft-bytes=0 > net.inet.ip.ipsec-bytes=0 > net.inet.ip.ipsec-timeout=86400 > net.inet.ip.ipsec-soft-timeout=80000 > net.inet.ip.ipsec-soft-firstuse=3600 > net.inet.ip.ipsec-firstuse=7200 > net.inet.ip.ipsec-enc-alg=aes > net.inet.ip.ipsec-auth-alg=hmac-sha1 > net.inet.ip.mtudisc=1 > net.inet.ip.mtudisctimeout=600 > net.inet.ip.ipsec-comp-alg=deflate > net.inet.ip.ifq.len=0 > net.inet.ip.ifq.maxlen=550 > net.inet.ip.ifq.drops=0 > net.inet.ip.mforwarding=0 > net.inet.ip.multipath=0 > > # sysctl net.inet.tcp > net.inet.tcp.rfc1323=1 > net.inet.tcp.keepinittime=150 > net.inet.tcp.keepidle=14400 > net.inet.tcp.keepintvl=150 > net.inet.tcp.slowhz=2 > net.inet.tcp.baddynamic=587,749,750,751,871 > net.inet.tcp.recvspace=16384 > net.inet.tcp.sendspace=16384 > net.inet.tcp.sack=1 > net.inet.tcp.mssdflt=512 > net.inet.tcp.rstppslimit=100 > net.inet.tcp.ackonpush=0 > net.inet.tcp.ecn=0 > net.inet.tcp.syncachelimit=10255 > net.inet.tcp.synbucketlimit=105 > net.inet.tcp.rfc3390=1 > net.inet.tcp.reasslimit=3072 > net.inet.tcp.sackholelimit=32768 > > # pfctl -si > Status: Disabled for 0 days 00:21:26 Debug: Urgent > > > OpenBSD 4.2-stable (GENERIC) #0: Fri Mar 7 15:40:50 BRT 2008 > r...@spamd.my.domain:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: VIA C7-M Processor 6300MHz ("CentaurHauls" 686-class) 1.60 GHz > cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,CMOV,PAT, > CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,SSE3,EST,TM2,xTPR > real mem = 1004826624 (958MB) > avail mem = 963846144 (919MB) > mainbus0 at root > bios0 at mainbus0: AT/286+ BIOS, date 04/27/09, > BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.5 @ 0xfcfc0 (47 entries) > bios0: vendor American Megatrends Inc. version "080014 " date 27/04/2009 > bios0: Phitronics PC3000E+ > apm0 at bios0: Power Management spec V1.2 > apm0: AC on, battery charge unknown > apm0: flags 30102 dobusy 0 doidle 1 > pcibios0 at bios0: rev 3.0 @ 0xf0000/0x10000 > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf5d40/256 (14 entries) > pcibios0: no compatible PCI ICU found: ICU vendor 0x1106 product 0x3372 > pcibios0: Warning, unable to fix up PCI interrupt routing > pcibios0: PCI bus #128 is the last bus > bios0: ROM list: 0xc0000/0xd400 > cpu0 at mainbus0 > cpu0: Enhanced SpeedStep disabled by BIOS > pci0 at mainbus0 bus 0: configuration mode 1 (no bios) > pchb0 at pci0 dev 0 function 0 "VIA P4M900 Host" rev 0x00 > pchb1 at pci0 dev 0 function 1 "VIA P4M900 Host" rev 0x00 > pchb2 at pci0 dev 0 function 2 "VIA P4M900 Host" rev 0x00 > pchb3 at pci0 dev 0 function 3 "VIA P4M900 Host" rev 0x00 > pchb4 at pci0 dev 0 function 4 "VIA P4M900 Host" rev 0x00 > "VIA P4M900 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured > pchb5 at pci0 dev 0 function 6 "VIA P4M900 Security" rev 0x00 > pchb6 at pci0 dev 0 function 7 "VIA P4M900 Host" rev 0x00 > ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00 > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 vendor "VIA", > unknown product 0x3371 rev 0x01: aperture at 0xf8000000, size 0x10000000 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > ppb1 at pci0 dev 2 function 0 "VIA P4M900 PCI-PCI" rev 0x80 > pci2 at ppb1 bus 2 > ppb2 at pci0 dev 3 function 0 "VIA P4M900 PCI-PCI" rev 0x80 > pci3 at ppb2 bus 3 > re0 at pci3 dev 0 function 0 "Realtek 8101E" rev 0x01: RTL8101E (0x3400), > irq 10, address 00:21:97:ce:e2:d9 > rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 > skc0 at pci0 dev 8 function 0 "D-Link Systems DGE-530T B1" rev 0x11, > Yukon Lite (0x9): irq 5 > sk0 at skc0 port A: address 00:22:b0:5d:5d:08 > eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5 > pciide0 at pci0 dev 15 function 0 vendor "VIA", > unknown product 0x5372 rev 0x00: DMA (unsupported), > channel 0 configured to native-PCI, channel 1 configured to native-PCI > pciide0: using irq 5 for native-PCI interrupt > wd0 at pciide0 channel 0 drive 0: <SAMSUNG HD082GJ> > wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors > pciide0: channel 1 ignored (not responding; disabled or no drives?) > pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x07: DMA, > channel 0 configured to compatibility, channel 1 configured to > compatibility > pciide1: channel 0 disabled (no drives) > pciide1: channel 1 disabled (no drives) > uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0xb0: irq 11 > uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0xb0: irq 5 > uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0xb0: irq 10 > uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0xb0: irq 11 > ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x90: irq 10 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0: VIA EHCI root hub, rev 2.00/1.00, addr 1 > pcib0 at pci0 dev 17 function 0 vendor "VIA", unknown product 0x3372 rev > 0x00 > pchb7 at pci0 dev 17 function 7 "VIA VT8251 VLINK" rev 0x00 > ppb3 at pci0 dev 19 function 0 "VIA VT8237A PCI-PCI" rev 0x00 > pci4 at ppb3 bus 128 > azalia0 at pci4 dev 1 function 0 "VIA HD Audio" rev 0x10: irq 5 > azalia0: host: High Definition Audio rev. 1.0 > azalia0: codec: Realtek/0x0662 (rev. 1.1), HDA version 1.0 > audio0 at azalia0 > usb1 at uhci0: USB revision 1.0 > uhub1 at usb1: VIA UHCI root hub, rev 1.00/1.00, addr 1 > usb2 at uhci1: USB revision 1.0 > uhub2 at usb2: VIA UHCI root hub, rev 1.00/1.00, addr 1 > usb3 at uhci2: USB revision 1.0 > uhub3 at usb3: VIA UHCI root hub, rev 1.00/1.00, addr 1 > usb4 at uhci3: USB revision 1.0 > uhub4 at usb4: VIA UHCI root hub, rev 1.00/1.00, addr 1 > isa0 at pcib0 > isadma0 at isa0 > 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 > pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo > biomask ff65 netmask ff65 ttymask ffe7 > pctr: user-level cycle counter enabled > dkcsum: wd0 matches BIOS drive 0x80 > root on wd0a swap on wd0b dump on wd0b > > > > > -- > Be Yourself @ mail.com! > Choose From 200+ Email Addresses > Get a Free Account at www.mail.com!