View Single Post

   
  #1 (permalink)  
Old 02-16-2008, 06:04 AM
Michael Cribbins
 
Posts: n/a
Default Slow upload speeds with OBSD 3.3

Hello All,

I'm having a problem with an OBSD 3.3 box that's acting as a firewall
for my ADSL connection. Upload speeds are about 10% of what they are
when I plug a WinXP laptop directly into the DSL modem.

WinXP: 600/200 Kbps
OBSD: 600/20 Kbps

The machine has the following hardware:

cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class, 128KB L2
cache) 565 MHz
real mem = 132423680 (129320K)
avail mem = 117112832 (114368K)

xl0 at pci1 dev 7 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 9
address 00:01:02:3e:1c:3e exphy0 at xl0 phy 24: Broadcom 3C905C internal
PHY, rev. 7
xl1 at pci1 dev 8 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 10
address 00:01:02:3e:1c:21 exphy1 at xl1 phy 24: Broadcom 3C905C internal
PHY, rev. 7

I have these sysctl parameters set:

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,760,761,871
net.inet.tcp.recvspace = 65535
net.inet.tcp.sendspace = 65535
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

ifconfig says:

xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: xx:xx:xx:xx:xx:xx
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 xxxx::xxx:xxx:xxxx:xxxx%xl0 prefixlen 64 scopeid 0x1
inet xx.xx.xx.xxnetmask 0xffffff00 broadcast xx.xx.xx.xx

xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: xx:xx:xx:xx:xx:xx
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet xx.xx.xx.xx netmask 0xffffff00 broadcast xx.xx.xx.xx
inet6 xxxx::xxx:xxx:xxxx:xxxx%xl1 prefixlen 64 scopeid 0x2
inet xx.xx.xx.xxnetmask 0xffffff00 broadcast xx.xx.xx.xx

I've tried lowering the MTU values. I've also tried all of the available
media settings.

This is the output from top during the upload portion of a speed test:

load averages: 0.07, 0.09, 0.08 08:44:21
37 processes: 1 running, 36 idle
CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.8% interrupt,
99.2% idle
Memory: Real: 15M/34M act/tot Free: 86M Swap: 0K/512M used/tot

PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
12523 michael 2 0 440K 1300K sleep select 0:01 0.00% sshd
29597 root 2 0 356K 876K idle select 0:00 0.00% sshd
27970 squid 2 0 5048K 5112K sleep poll 0:00 0.00% squid
5994 dnscache 2 0 1348K 1576K idle poll 0:00 0.00% dnscache
28731 root 10 0 68K 312K sleep nanosl 0:00 0.00% svscan
11340 root 10 0 932K 736K idle wait 0:00 0.00% bash
25500 root 4 0 368K 252K sleep bpf 0:00 0.00% pflogd

I get the same results regardless of whether or not I'm filtering
traffic, or just passing everything.

Any ideas? I can post the full dmesg or whatever else -- I was just
trying to keep it as short as possible.

Thanks,
Michael



Reply With Quote